Merge pull request #97 from madhura68/feat/story-nma6ylbl
ST-1203: Database-schema, sessie-uitbreiding & admin-routing
This commit is contained in:
commit
71281038ff
2 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
@ -15,6 +15,7 @@ enum Role {
|
||||||
PRODUCT_OWNER
|
PRODUCT_OWNER
|
||||||
SCRUM_MASTER
|
SCRUM_MASTER
|
||||||
DEVELOPER
|
DEVELOPER
|
||||||
|
ADMIN
|
||||||
}
|
}
|
||||||
|
|
||||||
enum StoryStatus {
|
enum StoryStatus {
|
||||||
|
|
@ -108,6 +109,7 @@ model User {
|
||||||
is_demo Boolean @default(false)
|
is_demo Boolean @default(false)
|
||||||
bio String? @db.VarChar(160)
|
bio String? @db.VarChar(160)
|
||||||
bio_detail String? @db.VarChar(2000)
|
bio_detail String? @db.VarChar(2000)
|
||||||
|
must_reset_password Boolean @default(false)
|
||||||
avatar_data Bytes?
|
avatar_data Bytes?
|
||||||
active_product_id String?
|
active_product_id String?
|
||||||
active_product Product? @relation("UserActiveProduct", fields: [active_product_id], references: [id], onDelete: SetNull)
|
active_product Product? @relation("UserActiveProduct", fields: [active_product_id], references: [id], onDelete: SetNull)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue