Merge pull request #97 from madhura68/feat/story-nma6ylbl

ST-1203: Database-schema, sessie-uitbreiding & admin-routing
This commit is contained in:
Janpeter Visser 2026-05-05 14:19:21 +02:00 committed by GitHub
commit 71281038ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)