/* !!! This is code generated by Prisma. Do not edit directly. !!! /* eslint-disable */ // biome-ignore-all lint: generated file Object.defineProperty(exports, "__esModule", { value: true }); const { PrismaClientKnownRequestError, PrismaClientUnknownRequestError, PrismaClientRustPanicError, PrismaClientInitializationError, PrismaClientValidationError, getPrismaClient, sqltag, empty, join, raw, skip, Decimal, Debug, DbNull, JsonNull, AnyNull, NullTypes, makeStrictEnum, Extensions, warnOnce, defineDmmfProperty, Public, getRuntime, createParam, } = require('@prisma/client/runtime/client.js') const Prisma = {} exports.Prisma = Prisma exports.$Enums = {} /** * Prisma Client JS version: 7.3.0 * Query Engine version: 9d6ad21cbbceab97458517b147a6a09ff43aa735 */ Prisma.prismaVersion = { client: "7.3.0", engine: "9d6ad21cbbceab97458517b147a6a09ff43aa735" } Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError Prisma.PrismaClientInitializationError = PrismaClientInitializationError Prisma.PrismaClientValidationError = PrismaClientValidationError Prisma.Decimal = Decimal /** * Re-export of sql-template-tag */ Prisma.sql = sqltag Prisma.empty = empty Prisma.join = join Prisma.raw = raw Prisma.validator = Public.validator /** * Extensions */ Prisma.getExtensionContext = Extensions.getExtensionContext Prisma.defineExtension = Extensions.defineExtension /** * Shorthand utilities for JSON filtering */ Prisma.DbNull = DbNull Prisma.JsonNull = JsonNull Prisma.AnyNull = AnyNull Prisma.NullTypes = NullTypes const path = require('path') /** * Enums */ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ ReadUncommitted: 'ReadUncommitted', ReadCommitted: 'ReadCommitted', RepeatableRead: 'RepeatableRead', Serializable: 'Serializable' }); exports.Prisma.TenantScalarFieldEnum = { id: 'id', name: 'name', isActive: 'isActive', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.ExportJobScalarFieldEnum = { id: 'id', tenantId: 'tenantId', status: 'status', format: 'format', scope: 'scope', progress: 'progress', filePath: 'filePath', error: 'error', expiresAt: 'expiresAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.UserScalarFieldEnum = { id: 'id', tenantId: 'tenantId', email: 'email', password: 'password', role: 'role', isActive: 'isActive', passwordResetRequired: 'passwordResetRequired', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.MailboxAccountScalarFieldEnum = { id: 'id', tenantId: 'tenantId', email: 'email', provider: 'provider', isActive: 'isActive', imapHost: 'imapHost', imapPort: 'imapPort', imapTLS: 'imapTLS', smtpHost: 'smtpHost', smtpPort: 'smtpPort', smtpTLS: 'smtpTLS', oauthToken: 'oauthToken', oauthRefreshToken: 'oauthRefreshToken', oauthAccessToken: 'oauthAccessToken', oauthExpiresAt: 'oauthExpiresAt', providerUserId: 'providerUserId', oauthLastCheckedAt: 'oauthLastCheckedAt', oauthLastErrorCode: 'oauthLastErrorCode', appPassword: 'appPassword', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.MailboxFolderScalarFieldEnum = { id: 'id', mailboxAccountId: 'mailboxAccountId', name: 'name', remoteId: 'remoteId', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.MailItemScalarFieldEnum = { id: 'id', folderId: 'folderId', messageId: 'messageId', subject: 'subject', from: 'from', receivedAt: 'receivedAt', listId: 'listId', listUnsubscribe: 'listUnsubscribe', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.RuleScalarFieldEnum = { id: 'id', tenantId: 'tenantId', name: 'name', enabled: 'enabled', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.RuleConditionScalarFieldEnum = { id: 'id', ruleId: 'ruleId', type: 'type', value: 'value' }; exports.Prisma.RuleActionScalarFieldEnum = { id: 'id', ruleId: 'ruleId', type: 'type', target: 'target' }; exports.Prisma.CleanupJobScalarFieldEnum = { id: 'id', tenantId: 'tenantId', mailboxAccountId: 'mailboxAccountId', status: 'status', dryRun: 'dryRun', unsubscribeEnabled: 'unsubscribeEnabled', routingEnabled: 'routingEnabled', startedAt: 'startedAt', finishedAt: 'finishedAt', createdAt: 'createdAt', updatedAt: 'updatedAt' }; exports.Prisma.UnsubscribeAttemptScalarFieldEnum = { id: 'id', jobId: 'jobId', mailItemId: 'mailItemId', method: 'method', target: 'target', status: 'status', createdAt: 'createdAt' }; exports.Prisma.CleanupJobEventScalarFieldEnum = { id: 'id', jobId: 'jobId', level: 'level', message: 'message', progress: 'progress', createdAt: 'createdAt' }; exports.Prisma.AppSettingScalarFieldEnum = { id: 'id', key: 'key', value: 'value', updatedAt: 'updatedAt' }; exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' }; exports.Prisma.QueryMode = { default: 'default', insensitive: 'insensitive' }; exports.Prisma.NullsOrder = { first: 'first', last: 'last' }; exports.MailProvider = exports.$Enums.MailProvider = { GMAIL: 'GMAIL', GMX: 'GMX', WEBDE: 'WEBDE' }; exports.UserRole = exports.$Enums.UserRole = { USER: 'USER', ADMIN: 'ADMIN' }; exports.JobStatus = exports.$Enums.JobStatus = { QUEUED: 'QUEUED', RUNNING: 'RUNNING', SUCCEEDED: 'SUCCEEDED', FAILED: 'FAILED', CANCELED: 'CANCELED' }; exports.RuleActionType = exports.$Enums.RuleActionType = { MOVE: 'MOVE', DELETE: 'DELETE', ARCHIVE: 'ARCHIVE', LABEL: 'LABEL' }; exports.RuleConditionType = exports.$Enums.RuleConditionType = { HEADER: 'HEADER', SUBJECT: 'SUBJECT', FROM: 'FROM', LIST_UNSUBSCRIBE: 'LIST_UNSUBSCRIBE', LIST_ID: 'LIST_ID' }; exports.ExportStatus = exports.$Enums.ExportStatus = { QUEUED: 'QUEUED', RUNNING: 'RUNNING', DONE: 'DONE', FAILED: 'FAILED' }; exports.Prisma.ModelName = { Tenant: 'Tenant', ExportJob: 'ExportJob', User: 'User', MailboxAccount: 'MailboxAccount', MailboxFolder: 'MailboxFolder', MailItem: 'MailItem', Rule: 'Rule', RuleCondition: 'RuleCondition', RuleAction: 'RuleAction', CleanupJob: 'CleanupJob', UnsubscribeAttempt: 'UnsubscribeAttempt', CleanupJobEvent: 'CleanupJobEvent', AppSetting: 'AppSetting' }; /** * Create the Client */ const config = { "previewFeatures": [], "clientVersion": "7.3.0", "engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735", "activeProvider": "postgresql", "inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum MailProvider {\n GMAIL\n GMX\n WEBDE\n}\n\nenum UserRole {\n USER\n ADMIN\n}\n\nenum JobStatus {\n QUEUED\n RUNNING\n SUCCEEDED\n FAILED\n CANCELED\n}\n\nenum RuleActionType {\n MOVE\n DELETE\n ARCHIVE\n LABEL\n}\n\nenum RuleConditionType {\n HEADER\n SUBJECT\n FROM\n LIST_UNSUBSCRIBE\n LIST_ID\n}\n\nenum ExportStatus {\n QUEUED\n RUNNING\n DONE\n FAILED\n}\n\nmodel Tenant {\n id String @id @default(cuid())\n name String\n isActive Boolean @default(true)\n exportJobs ExportJob[]\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n users User[]\n mailboxAccounts MailboxAccount[]\n rules Rule[]\n jobs CleanupJob[]\n}\n\nmodel ExportJob {\n id String @id @default(cuid())\n tenantId String\n status ExportStatus @default(QUEUED)\n format String\n scope String\n progress Int @default(0)\n filePath String?\n error String?\n expiresAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tenant Tenant @relation(fields: [tenantId], references: [id])\n\n @@index([tenantId])\n}\n\nmodel User {\n id String @id @default(cuid())\n tenantId String\n email String @unique\n password String\n role UserRole @default(USER)\n isActive Boolean @default(true)\n passwordResetRequired Boolean @default(false)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tenant Tenant @relation(fields: [tenantId], references: [id])\n}\n\nmodel MailboxAccount {\n id String @id @default(cuid())\n tenantId String\n email String\n provider MailProvider\n isActive Boolean @default(true)\n imapHost String\n imapPort Int\n imapTLS Boolean\n smtpHost String?\n smtpPort Int?\n smtpTLS Boolean?\n oauthToken String?\n oauthRefreshToken String?\n oauthAccessToken String?\n oauthExpiresAt DateTime?\n providerUserId String?\n oauthLastCheckedAt DateTime?\n oauthLastErrorCode String?\n appPassword String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tenant Tenant @relation(fields: [tenantId], references: [id])\n folders MailboxFolder[]\n jobs CleanupJob[]\n\n @@index([tenantId])\n}\n\nmodel MailboxFolder {\n id String @id @default(cuid())\n mailboxAccountId String\n name String\n remoteId String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n mailboxAccount MailboxAccount @relation(fields: [mailboxAccountId], references: [id])\n mailItems MailItem[]\n\n @@index([mailboxAccountId])\n}\n\nmodel MailItem {\n id String @id @default(cuid())\n folderId String\n messageId String\n subject String?\n from String?\n receivedAt DateTime?\n listId String?\n listUnsubscribe String?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n folder MailboxFolder @relation(fields: [folderId], references: [id])\n\n @@index([folderId])\n @@index([messageId])\n}\n\nmodel Rule {\n id String @id @default(cuid())\n tenantId String\n name String\n enabled Boolean @default(true)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tenant Tenant @relation(fields: [tenantId], references: [id])\n conditions RuleCondition[]\n actions RuleAction[]\n\n @@index([tenantId])\n}\n\nmodel RuleCondition {\n id String @id @default(cuid())\n ruleId String\n type RuleConditionType\n value String\n\n rule Rule @relation(fields: [ruleId], references: [id])\n\n @@index([ruleId])\n}\n\nmodel RuleAction {\n id String @id @default(cuid())\n ruleId String\n type RuleActionType\n target String?\n\n rule Rule @relation(fields: [ruleId], references: [id])\n\n @@index([ruleId])\n}\n\nmodel CleanupJob {\n id String @id @default(cuid())\n tenantId String\n mailboxAccountId String\n status JobStatus @default(QUEUED)\n dryRun Boolean @default(true)\n unsubscribeEnabled Boolean @default(true)\n routingEnabled Boolean @default(true)\n startedAt DateTime?\n finishedAt DateTime?\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n tenant Tenant @relation(fields: [tenantId], references: [id])\n mailboxAccount MailboxAccount @relation(fields: [mailboxAccountId], references: [id])\n unsubscribeAttempts UnsubscribeAttempt[]\n events CleanupJobEvent[]\n\n @@index([tenantId])\n @@index([mailboxAccountId])\n}\n\nmodel UnsubscribeAttempt {\n id String @id @default(cuid())\n jobId String\n mailItemId String?\n method String\n target String\n status String\n createdAt DateTime @default(now())\n\n job CleanupJob @relation(fields: [jobId], references: [id])\n\n @@index([jobId])\n}\n\nmodel CleanupJobEvent {\n id String @id @default(cuid())\n jobId String\n level String\n message String\n progress Int?\n createdAt DateTime @default(now())\n\n job CleanupJob @relation(fields: [jobId], references: [id])\n\n @@index([jobId])\n}\n\nmodel AppSetting {\n id String @id @default(cuid())\n key String @unique\n value String\n updatedAt DateTime @updatedAt\n}\n" } config.runtimeDataModel = JSON.parse("{\"models\":{\"Tenant\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"exportJobs\",\"kind\":\"object\",\"type\":\"ExportJob\",\"relationName\":\"ExportJobToTenant\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TenantToUser\"},{\"name\":\"mailboxAccounts\",\"kind\":\"object\",\"type\":\"MailboxAccount\",\"relationName\":\"MailboxAccountToTenant\"},{\"name\":\"rules\",\"kind\":\"object\",\"type\":\"Rule\",\"relationName\":\"RuleToTenant\"},{\"name\":\"jobs\",\"kind\":\"object\",\"type\":\"CleanupJob\",\"relationName\":\"CleanupJobToTenant\"}],\"dbName\":null},\"ExportJob\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"ExportStatus\"},{\"name\":\"format\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"progress\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"filePath\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tenant\",\"kind\":\"object\",\"type\":\"Tenant\",\"relationName\":\"ExportJobToTenant\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"password\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"UserRole\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"passwordResetRequired\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tenant\",\"kind\":\"object\",\"type\":\"Tenant\",\"relationName\":\"TenantToUser\"}],\"dbName\":null},\"MailboxAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"enum\",\"type\":\"MailProvider\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"imapHost\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imapPort\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"imapTLS\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"smtpHost\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"smtpPort\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"smtpTLS\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"oauthToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"oauthRefreshToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"oauthAccessToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"oauthExpiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"providerUserId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"oauthLastCheckedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"oauthLastErrorCode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"appPassword\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tenant\",\"kind\":\"object\",\"type\":\"Tenant\",\"relationName\":\"MailboxAccountToTenant\"},{\"name\":\"folders\",\"kind\":\"object\",\"type\":\"MailboxFolder\",\"relationName\":\"MailboxAccountToMailboxFolder\"},{\"name\":\"jobs\",\"kind\":\"object\",\"type\":\"CleanupJob\",\"relationName\":\"CleanupJobToMailboxAccount\"}],\"dbName\":null},\"MailboxFolder\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mailboxAccountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"remoteId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"mailboxAccount\",\"kind\":\"object\",\"type\":\"MailboxAccount\",\"relationName\":\"MailboxAccountToMailboxFolder\"},{\"name\":\"mailItems\",\"kind\":\"object\",\"type\":\"MailItem\",\"relationName\":\"MailItemToMailboxFolder\"}],\"dbName\":null},\"MailItem\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"folderId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"messageId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"subject\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"from\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"receivedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"listId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"listUnsubscribe\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"folder\",\"kind\":\"object\",\"type\":\"MailboxFolder\",\"relationName\":\"MailItemToMailboxFolder\"}],\"dbName\":null},\"Rule\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"enabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tenant\",\"kind\":\"object\",\"type\":\"Tenant\",\"relationName\":\"RuleToTenant\"},{\"name\":\"conditions\",\"kind\":\"object\",\"type\":\"RuleCondition\",\"relationName\":\"RuleToRuleCondition\"},{\"name\":\"actions\",\"kind\":\"object\",\"type\":\"RuleAction\",\"relationName\":\"RuleToRuleAction\"}],\"dbName\":null},\"RuleCondition\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ruleId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"RuleConditionType\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rule\",\"kind\":\"object\",\"type\":\"Rule\",\"relationName\":\"RuleToRuleCondition\"}],\"dbName\":null},\"RuleAction\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ruleId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"RuleActionType\"},{\"name\":\"target\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"rule\",\"kind\":\"object\",\"type\":\"Rule\",\"relationName\":\"RuleToRuleAction\"}],\"dbName\":null},\"CleanupJob\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tenantId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mailboxAccountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"JobStatus\"},{\"name\":\"dryRun\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"unsubscribeEnabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"routingEnabled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"finishedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tenant\",\"kind\":\"object\",\"type\":\"Tenant\",\"relationName\":\"CleanupJobToTenant\"},{\"name\":\"mailboxAccount\",\"kind\":\"object\",\"type\":\"MailboxAccount\",\"relationName\":\"CleanupJobToMailboxAccount\"},{\"name\":\"unsubscribeAttempts\",\"kind\":\"object\",\"type\":\"UnsubscribeAttempt\",\"relationName\":\"CleanupJobToUnsubscribeAttempt\"},{\"name\":\"events\",\"kind\":\"object\",\"type\":\"CleanupJobEvent\",\"relationName\":\"CleanupJobToCleanupJobEvent\"}],\"dbName\":null},\"UnsubscribeAttempt\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"jobId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"mailItemId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"method\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"target\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"job\",\"kind\":\"object\",\"type\":\"CleanupJob\",\"relationName\":\"CleanupJobToUnsubscribeAttempt\"}],\"dbName\":null},\"CleanupJobEvent\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"jobId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"level\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"progress\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"job\",\"kind\":\"object\",\"type\":\"CleanupJob\",\"relationName\":\"CleanupJobToCleanupJobEvent\"}],\"dbName\":null},\"AppSetting\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"key\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.compilerWasm = { getRuntime: async () => require('./query_compiler_fast_bg.js'), getQueryCompilerWasmModule: async () => { const { Buffer } = require('node:buffer') const { wasm } = require('./query_compiler_fast_bg.wasm-base64.js') const queryCompilerWasmFileBytes = Buffer.from(wasm, 'base64') return new WebAssembly.Module(queryCompilerWasmFileBytes) }, importName: './query_compiler_fast_bg.js', } const PrismaClient = getPrismaClient(config) exports.PrismaClient = PrismaClient Object.assign(exports, Prisma)