Projektstart
This commit is contained in:
34
backend/node_modules/.prisma/client/schema.prisma
generated
vendored
34
backend/node_modules/.prisma/client/schema.prisma
generated
vendored
@@ -42,11 +42,12 @@ enum RuleConditionType {
|
||||
}
|
||||
|
||||
model Tenant {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
isActive Boolean @default(true)
|
||||
exportJobs ExportJob[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
users User[]
|
||||
mailboxAccounts MailboxAccount[]
|
||||
@@ -54,6 +55,29 @@ model Tenant {
|
||||
jobs CleanupJob[]
|
||||
}
|
||||
|
||||
enum ExportStatus {
|
||||
QUEUED
|
||||
RUNNING
|
||||
DONE
|
||||
FAILED
|
||||
}
|
||||
|
||||
model ExportJob {
|
||||
id String @id @default(cuid())
|
||||
tenantId String
|
||||
status ExportStatus @default(QUEUED)
|
||||
format String
|
||||
scope String
|
||||
filePath String?
|
||||
error String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
tenant Tenant @relation(fields: [tenantId], references: [id])
|
||||
|
||||
@@index([tenantId])
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
tenantId String
|
||||
|
||||
Reference in New Issue
Block a user