feat: add disabled property for user (#1546)

This commit is contained in:
Catalin Pit
2024-12-17 13:35:59 +02:00
committed by GitHub
parent c960a48b4f
commit c161553d1d
5 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "disabled" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -42,6 +42,7 @@ model User {
roles Role[] @default([USER])
identityProvider IdentityProvider @default(DOCUMENSO)
avatarImageId String?
disabled Boolean @default(false)
accounts Account[]
sessions Session[]