feat(ST-nma6ylbl): Prisma-migratie ADMIN enum + must_reset_password + CANCELLED-status

- Role enum: ADMIN toegevoegd (na DEVELOPER)
- User model: must_reset_password Boolean @default(false) toegevoegd (na bio_detail)
- ClaudeJobStatus: CANCELLED was al aanwezig, geen wijziging nodig
- Migratie SQL: ALTER TYPE buiten transactie geplaatst (IF NOT EXISTS)
- prisma migrate deploy toegepast, prisma generate gedraaid
- lint 0 errors, 546 tests groen, build succesvol
This commit is contained in:
Scrum4Me Agent 2026-05-05 14:18:10 +02:00
parent d2601b6e9b
commit 19c458287a
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,6 @@
-- ALTER TYPE ADD VALUE cannot run inside a transaction in PostgreSQL
ALTER TYPE "Role" ADD VALUE IF NOT EXISTS 'ADMIN';
BEGIN;
ALTER TABLE "users" ADD COLUMN IF NOT EXISTS "must_reset_password" BOOLEAN NOT NULL DEFAULT false;
COMMIT;

View file

@ -15,6 +15,7 @@ enum Role {
PRODUCT_OWNER
SCRUM_MASTER
DEVELOPER
ADMIN
}
enum StoryStatus {
@ -108,6 +109,7 @@ model User {
is_demo Boolean @default(false)
bio String? @db.VarChar(160)
bio_detail String? @db.VarChar(2000)
must_reset_password Boolean @default(false)
avatar_data Bytes?
active_product_id String?
active_product Product? @relation("UserActiveProduct", fields: [active_product_id], references: [id], onDelete: SetNull)