feat(seed): split seed scripts into production and development

- Create seed.production.js with admin user, divisions, and competition types only
- Rename seed.js to seed.development.js with all test data
- Add admin@spotlight.cam account with isAdmin flag and COMFORT tier
- Update test users to use @spotlight.cam domain and SUPPORTER tier
- Remove wsdcId from test users
- Add npm scripts: prisma:seed:dev and prisma:seed:prod
- Add Makefile targets: seed-dev and seed-prod
This commit is contained in:
Radosław Gierwiało
2025-12-06 12:23:05 +01:00
parent 4066bf1081
commit b556abb854
4 changed files with 141 additions and 11 deletions

View File

@@ -10,7 +10,9 @@
"test:watch": "jest --watch",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:seed": "node prisma/seed.js",
"prisma:seed": "node prisma/seed.development.js",
"prisma:seed:dev": "node prisma/seed.development.js",
"prisma:seed:prod": "node prisma/seed.production.js",
"prisma:studio": "prisma studio",
"cli": "node src/cli/index.js"
},
@@ -65,7 +67,7 @@
}
},
"prisma": {
"seed": "node prisma/seed.js"
"seed": "node prisma/seed.development.js"
},
"overrides": {
"csurf": {