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

@@ -45,6 +45,7 @@ model Tenant {
id String @id @default(cuid())
name String
isActive Boolean @default(true)
exportJobs ExportJob[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -54,6 +55,30 @@ 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?
expiresAt DateTime?
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