Update schema.prisma
This commit is contained in:
+4
-11
@@ -15,8 +15,8 @@ model User {
|
|||||||
authentikId String? @unique
|
authentikId String? @unique
|
||||||
authentikUserId String? @unique
|
authentikUserId String? @unique
|
||||||
authentikSubject String? @unique
|
authentikSubject String? @unique
|
||||||
username String? @db.VarChar(255) @unique
|
username String? @unique @db.VarChar(255)
|
||||||
email String? @db.VarChar(320) @unique
|
email String? @unique @db.VarChar(320)
|
||||||
name String? @db.VarChar(255)
|
name String? @db.VarChar(255)
|
||||||
picture String?
|
picture String?
|
||||||
isActive Boolean @default(true)
|
isActive Boolean @default(true)
|
||||||
@@ -29,6 +29,7 @@ model User {
|
|||||||
metadata Json?
|
metadata Json?
|
||||||
userRoles UserRole[]
|
userRoles UserRole[]
|
||||||
auditLogs AuditLog[]
|
auditLogs AuditLog[]
|
||||||
|
mediaObjects MediaObject[]
|
||||||
lastGroupHash String? @db.Text
|
lastGroupHash String? @db.Text
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
@@ -127,7 +128,7 @@ model ScheduledJob {
|
|||||||
payload Json?
|
payload Json?
|
||||||
cron String?
|
cron String?
|
||||||
runAt DateTime?
|
runAt DateTime?
|
||||||
status String @db.VarChar(50) @default("pending")
|
status String @default("pending") @db.VarChar(50)
|
||||||
attempts Int @default(0)
|
attempts Int @default(0)
|
||||||
lastRunAt DateTime?
|
lastRunAt DateTime?
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
@@ -154,8 +155,6 @@ model MediaObject {
|
|||||||
@@index([storageKey])
|
@@index([storageKey])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
model Application {
|
model Application {
|
||||||
id String @id @default(uuid()) @db.Uuid
|
id String @id @default(uuid()) @db.Uuid
|
||||||
code String @unique @db.VarChar(100)
|
code String @unique @db.VarChar(100)
|
||||||
@@ -172,9 +171,3 @@ model Application {
|
|||||||
@@index([code])
|
@@index([code])
|
||||||
@@index([applicationsClaim])
|
@@index([applicationsClaim])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user