feat: bootstrap SuperAdmin from env and lock one-time seeding
Production creates the SuperAdmin from env credentials, and dashboard seeding is authenticated, SuperAdmin-only, and locked after the first run.
This commit is contained in:
@@ -138,5 +138,15 @@
|
||||
"statusCode": 400,
|
||||
"en": "File is required.",
|
||||
"fa": "ارسال فایل الزامی است."
|
||||
},
|
||||
"SEED_LOCKED": {
|
||||
"statusCode": 409,
|
||||
"en": "Database seeding has already been completed and is locked.",
|
||||
"fa": "راهاندازی پایگاه داده قبلاً انجام شده و قفل است."
|
||||
},
|
||||
"SEED_FAILED": {
|
||||
"statusCode": 500,
|
||||
"en": "Database seeding failed.",
|
||||
"fa": "راهاندازی پایگاه داده با خطا مواجه شد."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user