Projektstart

This commit is contained in:
2026-01-22 16:19:07 +01:00
parent 5174b88af9
commit bc7fbf8ce6
1553 changed files with 111281 additions and 141 deletions

View File

@@ -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