To assign roles to users for testing RBAC/admin features:
-
Edit
prisma/seed.tsand add user emails with their roles:const SEED_USERS = [ { email: "your-email@gmail.com", role: "SUPER_ADMIN", name: "Your Name" }, { email: "reviewer@example.com", role: "REVIEWER" }, { email: "ambassador@example.com", role: "AMBASSADOR" }, ];
-
Run the seed script:
npm run seed
The script uses upsert, so it's safe to re-run. Users will get their roles updated when they log in with Google.