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

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

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(),