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:
2026-08-14 23:23:06 +03:30
parent 3ca098b74d
commit 35704409ec
13 changed files with 251 additions and 34 deletions
+10
View File
@@ -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": "راه‌اندازی پایگاه داده با خطا مواجه شد."
}
}