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

File diff suppressed because one or more lines are too long

View File

@@ -130,6 +130,18 @@ exports.Prisma.TenantScalarFieldEnum = {
updatedAt: 'updatedAt'
};
exports.Prisma.ExportJobScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
status: 'status',
format: 'format',
scope: 'scope',
filePath: 'filePath',
error: 'error',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.UserScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
@@ -255,6 +267,13 @@ exports.Prisma.NullsOrder = {
first: 'first',
last: 'last'
};
exports.ExportStatus = exports.$Enums.ExportStatus = {
QUEUED: 'QUEUED',
RUNNING: 'RUNNING',
DONE: 'DONE',
FAILED: 'FAILED'
};
exports.UserRole = exports.$Enums.UserRole = {
USER: 'USER',
ADMIN: 'ADMIN'
@@ -291,6 +310,7 @@ exports.JobStatus = exports.$Enums.JobStatus = {
exports.Prisma.ModelName = {
Tenant: 'Tenant',
ExportJob: 'ExportJob',
User: 'User',
MailboxAccount: 'MailboxAccount',
MailboxFolder: 'MailboxFolder',

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"name": "prisma-client-2a5c1ba38f3256b2f353e0fcaad9b6160a215e9b44e19d797b48531a0808d33e",
"name": "prisma-client-f972eed39fc4466cb85f0349f5e72ee1d81f9351e0ae96befde50b28d520b85a",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",

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

View File

@@ -130,6 +130,18 @@ exports.Prisma.TenantScalarFieldEnum = {
updatedAt: 'updatedAt'
};
exports.Prisma.ExportJobScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
status: 'status',
format: 'format',
scope: 'scope',
filePath: 'filePath',
error: 'error',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
};
exports.Prisma.UserScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
@@ -255,6 +267,13 @@ exports.Prisma.NullsOrder = {
first: 'first',
last: 'last'
};
exports.ExportStatus = exports.$Enums.ExportStatus = {
QUEUED: 'QUEUED',
RUNNING: 'RUNNING',
DONE: 'DONE',
FAILED: 'FAILED'
};
exports.UserRole = exports.$Enums.UserRole = {
USER: 'USER',
ADMIN: 'ADMIN'
@@ -291,6 +310,7 @@ exports.JobStatus = exports.$Enums.JobStatus = {
exports.Prisma.ModelName = {
Tenant: 'Tenant',
ExportJob: 'ExportJob',
User: 'User',
MailboxAccount: 'MailboxAccount',
MailboxFolder: 'MailboxFolder',