feat: Add SUPER_ADMIN role with dedicated admin user management and updated access controls for existing admin features.

This commit is contained in:
pradeepkumar committed 2026-03-20 17:05:40 +05:30
1 parent 8e9d623f24
commit 31439c3b06
6 files changed
+104 -4

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ enum UserRole {
USER
AGENT
ADMIN
SUPER_ADMIN
}
enum UserStatus {
+1 -1
View File
@@ -1336,7 +1336,7 @@ async function main() {
data: {
email: adminEmail,
password: hashedPassword,
role: UserRole.ADMIN,
role: UserRole.SUPER_ADMIN,
status: UserStatus.ACTIVE,
emailVerified: true,
emailVerifiedAt: new Date(),