Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# BSL Platform
# BSL Platform

## How to Seed Roles

To assign roles to users for testing RBAC/admin features:

1. Edit `prisma/seed.ts` and add user emails with their roles:
```ts
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" },
];
```

2. Run the seed script:
```bash
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.
Loading