feat: distinguish managed platform users (#14207)
* feat: add isPlatformManaged property to user * do not allow deleting non managed users * refactor: rename managed user create and update inputs * refactor response code * feat: add isPlatformManaged when creating managed user * fix TS
This commit is contained in:
1 parent
bec1453148
commit
ef498c6ed6
12 files changed
+52
-27
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "isPlatformManaged" BOOLEAN NOT NULL DEFAULT false;
|
||||
@@ -300,6 +300,7 @@ model User {
|
||||
movedToProfileId Int?
|
||||
movedToProfile Profile? @relation("moved_to_profile", fields: [movedToProfileId], references: [id], onDelete: SetNull)
|
||||
secondaryEmails SecondaryEmail[]
|
||||
isPlatformManaged Boolean @default(false)
|
||||
|
||||
@@unique([email])
|
||||
@@unique([email, username])
|
||||
|
||||
Reference in new issue
Block a user