Files
2026-07-08 16:15:37 +02:00

4932 lines
141 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* WARNING: This is an internal file that is subject to change!
*
* 🛑 Under no circumstances should you import this file directly! 🛑
*
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
* While this enables partial backward compatibility, it is not part of the stable public API.
*
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
* model files in the `model` directory!
*/
import * as runtime from "@prisma/client/runtime/index-browser"
export type * from '../models.ts'
export type * from './prismaNamespace.ts'
export const Decimal = runtime.Decimal
export const NullTypes = {
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
}
/**
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const DbNull = runtime.DbNull
/**
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const JsonNull = runtime.JsonNull
/**
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
*
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
*/
export const AnyNull = runtime.AnyNull
export const ModelName = {
User: 'User',
MagicLinkToken: 'MagicLinkToken',
AdminUser: 'AdminUser',
Tenant: 'Tenant',
WorkspaceAuthProvider: 'WorkspaceAuthProvider',
ImpersonationAudit: 'ImpersonationAudit',
TenantUser: 'TenantUser',
TenantUserInvitation: 'TenantUserInvitation',
Registration: 'Registration',
Blacklist: 'Blacklist',
TenantIpAddress: 'TenantIpAddress',
TenantType: 'TenantType',
Activity: 'Activity',
AdminTenantNote: 'AdminTenantNote',
SupportTicketMessage: 'SupportTicketMessage',
AnalyticsSettings: 'AnalyticsSettings',
AnalyticsUniqueVisitor: 'AnalyticsUniqueVisitor',
AnalyticsPageView: 'AnalyticsPageView',
AnalyticsEvent: 'AnalyticsEvent',
App: 'App',
DataConnection: 'DataConnection',
AppSyncRun: 'AppSyncRun',
AppSyncRunLog: 'AppSyncRunLog',
AppSyncItem: 'AppSyncItem',
ProjektMitglied: 'ProjektMitglied',
ProjektTermin: 'ProjektTermin',
Rechnung: 'Rechnung',
ProjektChecklist: 'ProjektChecklist',
ProjektChecklistItem: 'ProjektChecklistItem',
AuftragPipelineStageConfig: 'AuftragPipelineStageConfig',
AcceptanceFormTemplate: 'AcceptanceFormTemplate',
ProjectTemplate: 'ProjectTemplate',
ScheduleEntry: 'ScheduleEntry',
ScheduleConflict: 'ScheduleConflict',
AbnahmeProtokoll: 'AbnahmeProtokoll',
AbnahmeSignatur: 'AbnahmeSignatur',
OfflineSyncMutation: 'OfflineSyncMutation',
UserSession: 'UserSession',
TrustedDevice: 'TrustedDevice',
AutomationRule: 'AutomationRule',
AutomationRuleStep: 'AutomationRuleStep',
AutomationExecution: 'AutomationExecution',
AutomationStepExecution: 'AutomationStepExecution',
AutomationCredential: 'AutomationCredential',
AutomationTemplate: 'AutomationTemplate',
AutomationTriggerMeter: 'AutomationTriggerMeter',
BookingPage: 'BookingPage',
BookingPageProvider: 'BookingPageProvider',
AvailabilityRule: 'AvailabilityRule',
AvailabilityException: 'AvailabilityException',
Appointment: 'Appointment',
CalendarConnection: 'CalendarConnection',
CalendarEvent: 'CalendarEvent',
CalendarEventMapping: 'CalendarEventMapping',
CalendarSyncCursor: 'CalendarSyncCursor',
CalendarWebhookEvent: 'CalendarWebhookEvent',
CalendarConflict: 'CalendarConflict',
CollabDoc: 'CollabDoc',
AppConfiguration: 'AppConfiguration',
Log: 'Log',
AuditEvent: 'AuditEvent',
IdempotencyKey: 'IdempotencyKey',
ApiKey: 'ApiKey',
ApiKeyLog: 'ApiKeyLog',
Event: 'Event',
EventWebhookAttempt: 'EventWebhookAttempt',
MetricLog: 'MetricLog',
FileUploadProgress: 'FileUploadProgress',
FileChunk: 'FileChunk',
FileObject: 'FileObject',
IpAddress: 'IpAddress',
IpAddressLog: 'IpAddressLog',
Widget: 'Widget',
Credential: 'Credential',
Kontakt: 'Kontakt',
KontaktRelation: 'KontaktRelation',
KontaktEmail: 'KontaktEmail',
KontaktTelefon: 'KontaktTelefon',
Adresse: 'Adresse',
CustomFieldDefinition: 'CustomFieldDefinition',
CustomFieldValue: 'CustomFieldValue',
Tag: 'Tag',
TagAssignment: 'TagAssignment',
TenantEncryptionKey: 'TenantEncryptionKey',
Dashboard: 'Dashboard',
DashboardLayout: 'DashboardLayout',
WidgetInstance: 'WidgetInstance',
EmailIntegrationMailbox: 'EmailIntegrationMailbox',
EmailIntegrationMessage: 'EmailIntegrationMessage',
EmailIntegrationSyncCursor: 'EmailIntegrationSyncCursor',
EmailIntegrationWebhookEvent: 'EmailIntegrationWebhookEvent',
TenantInboundAddress: 'TenantInboundAddress',
Email: 'Email',
EmailRead: 'EmailRead',
EmailCc: 'EmailCc',
EmailAttachment: 'EmailAttachment',
EmailSender: 'EmailSender',
Campaign: 'Campaign',
OutboundEmail: 'OutboundEmail',
OutboundEmailOpen: 'OutboundEmailOpen',
OutboundEmailClick: 'OutboundEmailClick',
TenantSendingDomain: 'TenantSendingDomain',
EmailSuppressionList: 'EmailSuppressionList',
EmailTemplate: 'EmailTemplate',
RecipientSegment: 'RecipientSegment',
SegmentSnapshotMember: 'SegmentSnapshotMember',
CampaignVariant: 'CampaignVariant',
KontaktMarketingConsent: 'KontaktMarketingConsent',
Unsubscribe: 'Unsubscribe',
EmailSequence: 'EmailSequence',
EmailSequenceRun: 'EmailSequenceRun',
EmailSequenceStepDelivery: 'EmailSequenceStepDelivery',
EntityLink: 'EntityLink',
FeatureFlag: 'FeatureFlag',
FeatureFlagFilter: 'FeatureFlagFilter',
FeatureFlagAudit: 'FeatureFlagAudit',
File: 'File',
FileEntityLink: 'FileEntityLink',
FileUpload: 'FileUpload',
FileUploadChunk: 'FileUploadChunk',
Form: 'Form',
FormSubmission: 'FormSubmission',
FormField: 'FormField',
FormFile: 'FormFile',
FormAction: 'FormAction',
FormActionLog: 'FormActionLog',
GdprExportJob: 'GdprExportJob',
TenantDeletionRequest: 'TenantDeletionRequest',
AvvAcceptance: 'AvvAcceptance',
Subprocessor: 'Subprocessor',
Feedback: 'Feedback',
SupportTicket: 'SupportTicket',
HrEmployeeProfile: 'HrEmployeeProfile',
HrLocation: 'HrLocation',
HrEmployeeDocument: 'HrEmployeeDocument',
HrResource: 'HrResource',
HrQuickLink: 'HrQuickLink',
EmployeePasswordSafeVault: 'EmployeePasswordSafeVault',
EmployeePasswordSafeEntry: 'EmployeePasswordSafeEntry',
EmployeePasswordSafeAccess: 'EmployeePasswordSafeAccess',
EmployeeVacationRequest: 'EmployeeVacationRequest',
EmployeeSickLeaveReport: 'EmployeeSickLeaveReport',
HrAnnouncement: 'HrAnnouncement',
HrAnnouncementRead: 'HrAnnouncementRead',
HrAnnouncementReaction: 'HrAnnouncementReaction',
HrAnnouncementComment: 'HrAnnouncementComment',
EmployeePayslip: 'EmployeePayslip',
EmployeeUploadReminder: 'EmployeeUploadReminder',
EmployeeUploadReminderDispatch: 'EmployeeUploadReminderDispatch',
HrRequestTemplate: 'HrRequestTemplate',
HrRequest: 'HrRequest',
HrSurvey: 'HrSurvey',
HrSurveyItem: 'HrSurveyItem',
HrSurveySubmission: 'HrSurveySubmission',
ImportJob: 'ImportJob',
KnowledgeBase: 'KnowledgeBase',
KnowledgeBaseCategory: 'KnowledgeBaseCategory',
KnowledgeBaseCategorySection: 'KnowledgeBaseCategorySection',
KnowledgeBaseArticle: 'KnowledgeBaseArticle',
KnowledgeBaseRelatedArticle: 'KnowledgeBaseRelatedArticle',
KnowledgeBaseViews: 'KnowledgeBaseViews',
KnowledgeBaseArticleViews: 'KnowledgeBaseArticleViews',
KnowledgeBaseArticleUpvotes: 'KnowledgeBaseArticleUpvotes',
KnowledgeBaseArticleDownvotes: 'KnowledgeBaseArticleDownvotes',
InboxLead: 'InboxLead',
LeadSource: 'LeadSource',
LeadAntiSpamConfig: 'LeadAntiSpamConfig',
Lead: 'Lead',
LeadEvent: 'LeadEvent',
TenantAcquisition: 'TenantAcquisition',
MarketingIntegration: 'MarketingIntegration',
McpOAuthClient: 'McpOAuthClient',
McpOAuthAuthorizationCode: 'McpOAuthAuthorizationCode',
McpOAuthAccessToken: 'McpOAuthAccessToken',
McpOAuthRefreshToken: 'McpOAuthRefreshToken',
NotificationDelivery: 'NotificationDelivery',
UserNotificationPreference: 'UserNotificationPreference',
DeviceToken: 'DeviceToken',
Onboarding: 'Onboarding',
OnboardingFilter: 'OnboardingFilter',
OnboardingStep: 'OnboardingStep',
OnboardingSession: 'OnboardingSession',
OnboardingSessionAction: 'OnboardingSessionAction',
OnboardingSessionFilterMatch: 'OnboardingSessionFilterMatch',
OnboardingSessionStep: 'OnboardingSessionStep',
OnboardingDemoProvisioning: 'OnboardingDemoProvisioning',
OutboxEvent: 'OutboxEvent',
Role: 'Role',
Permission: 'Permission',
RolePermission: 'RolePermission',
UserRole: 'UserRole',
Group: 'Group',
GroupUser: 'GroupUser',
Plugin: 'Plugin',
TenantPluginCapabilityGrant: 'TenantPluginCapabilityGrant',
PluginUserConfig: 'PluginUserConfig',
PluginInvocation: 'PluginInvocation',
PluginCapabilityUse: 'PluginCapabilityUse',
Portal: 'Portal',
PortalUser: 'PortalUser',
PortalPage: 'PortalPage',
PortalUserRegistration: 'PortalUserRegistration',
PortalSubscriptionProduct: 'PortalSubscriptionProduct',
PortalSubscriptionPrice: 'PortalSubscriptionPrice',
PortalSubscriptionFeature: 'PortalSubscriptionFeature',
PortalUserSubscription: 'PortalUserSubscription',
PortalUserSubscriptionProduct: 'PortalUserSubscriptionProduct',
PortalUserSubscriptionProductPrice: 'PortalUserSubscriptionProductPrice',
PortalCheckoutSessionStatus: 'PortalCheckoutSessionStatus',
HiveNumberSeq: 'HiveNumberSeq',
Pipeline: 'Pipeline',
PipelineStage: 'PipelineStage',
PipelineAccess: 'PipelineAccess',
PipelineFieldConfig: 'PipelineFieldConfig',
PipelineFieldVisibility: 'PipelineFieldVisibility',
LostReason: 'LostReason',
Projekt: 'Projekt',
ProjektStageChange: 'ProjektStageChange',
PipelineAggregateSnapshot: 'PipelineAggregateSnapshot',
ProjektKontakt: 'ProjektKontakt',
PublicIncomingWebhookEndpoint: 'PublicIncomingWebhookEndpoint',
PublicWebhookIngestionLog: 'PublicWebhookIngestionLog',
PublicWebhookSubscription: 'PublicWebhookSubscription',
PublicWebhookDeliveryLog: 'PublicWebhookDeliveryLog',
QueueFailedJob: 'QueueFailedJob',
ExportJob: 'ExportJob',
SearchIndexEntry: 'SearchIndexEntry',
RecentSearch: 'RecentSearch',
SignatureProviderConnection: 'SignatureProviderConnection',
ProjektSignatureDocument: 'ProjektSignatureDocument',
ProjektSignatureSigner: 'ProjektSignatureSigner',
SignatureEvent: 'SignatureEvent',
Site: 'Site',
SubscriptionProduct: 'SubscriptionProduct',
SubscriptionPrice: 'SubscriptionPrice',
SubscriptionUsageBasedPrice: 'SubscriptionUsageBasedPrice',
SubscriptionUsageBasedTier: 'SubscriptionUsageBasedTier',
SubscriptionFeature: 'SubscriptionFeature',
TenantSubscription: 'TenantSubscription',
TenantSubscriptionProduct: 'TenantSubscriptionProduct',
TenantSubscriptionProductPrice: 'TenantSubscriptionProductPrice',
TenantSubscriptionUsageRecord: 'TenantSubscriptionUsageRecord',
TenantProductConfiguration: 'TenantProductConfiguration',
TenantFeatureOverride: 'TenantFeatureOverride',
CheckoutSessionStatus: 'CheckoutSessionStatus',
BillingWebhookLog: 'BillingWebhookLog',
Credit: 'Credit',
Task: 'Task',
TaskWatcher: 'TaskWatcher',
Workflow: 'Workflow',
WorkflowBlock: 'WorkflowBlock',
WorkflowBlockConditionGroup: 'WorkflowBlockConditionGroup',
WorkflowBlockCondition: 'WorkflowBlockCondition',
WorkflowBlockToBlock: 'WorkflowBlockToBlock',
WorkflowExecution: 'WorkflowExecution',
WorkflowInputExample: 'WorkflowInputExample',
WorkflowBlockExecution: 'WorkflowBlockExecution',
WorkflowVariable: 'WorkflowVariable',
WorkflowCredential: 'WorkflowCredential'
} as const
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
/*
* Enums
*/
export const TransactionIsolationLevel = runtime.makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
} as const)
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
export const UserScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
email: 'email',
passwordHash: 'passwordHash',
firstName: 'firstName',
lastName: 'lastName',
avatar: 'avatar',
phone: 'phone',
defaultTenantId: 'defaultTenantId',
verifyToken: 'verifyToken',
verifyTokenCreatedAt: 'verifyTokenCreatedAt',
locale: 'locale',
lightOrDarkMode: 'lightOrDarkMode',
totpSecretEncrypted: 'totpSecretEncrypted',
totpPendingSecretEncrypted: 'totpPendingSecretEncrypted',
totpEnabledAt: 'totpEnabledAt',
totpPendingCreatedAt: 'totpPendingCreatedAt',
mfaRecoveryCodeHashes: 'mfaRecoveryCodeHashes',
mfaRecoveryCodesGeneratedAt: 'mfaRecoveryCodesGeneratedAt',
mfaRecoveryCodeLastUsedAt: 'mfaRecoveryCodeLastUsedAt',
active: 'active',
pendingDeletion: 'pendingDeletion',
scheduledDeletionAt: 'scheduledDeletionAt',
deletionRequestedAt: 'deletionRequestedAt',
pseudonymized: 'pseudonymized',
pseudonymizedAt: 'pseudonymizedAt',
deletionRequestId: 'deletionRequestId'
} as const
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
export const MagicLinkTokenScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
userId: 'userId',
tokenHash: 'tokenHash',
expiresAt: 'expiresAt',
consumedAt: 'consumedAt'
} as const
export type MagicLinkTokenScalarFieldEnum = (typeof MagicLinkTokenScalarFieldEnum)[keyof typeof MagicLinkTokenScalarFieldEnum]
export const AdminUserScalarFieldEnum = {
userId: 'userId',
ssoProvider: 'ssoProvider',
ssoSubjectId: 'ssoSubjectId',
ssoGroups: 'ssoGroups',
lastSsoLoginAt: 'lastSsoLoginAt'
} as const
export type AdminUserScalarFieldEnum = (typeof AdminUserScalarFieldEnum)[keyof typeof AdminUserScalarFieldEnum]
export const TenantScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
slug: 'slug',
name: 'name',
icon: 'icon',
logo: 'logo',
subscriptionId: 'subscriptionId',
active: 'active',
deactivatedReason: 'deactivatedReason',
theme: 'theme',
themeConfig: 'themeConfig',
anrede: 'anrede'
} as const
export type TenantScalarFieldEnum = (typeof TenantScalarFieldEnum)[keyof typeof TenantScalarFieldEnum]
export const WorkspaceAuthProviderScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
kind: 'kind',
name: 'name',
slug: 'slug',
enabled: 'enabled',
issuer: 'issuer',
authorizationUrl: 'authorizationUrl',
tokenUrl: 'tokenUrl',
jwksUrl: 'jwksUrl',
clientId: 'clientId',
entityId: 'entityId',
ssoUrl: 'ssoUrl',
certificateFingerprint: 'certificateFingerprint',
metadataUpdatedAt: 'metadataUpdatedAt'
} as const
export type WorkspaceAuthProviderScalarFieldEnum = (typeof WorkspaceAuthProviderScalarFieldEnum)[keyof typeof WorkspaceAuthProviderScalarFieldEnum]
export const ImpersonationAuditScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
actorUserId: 'actorUserId',
targetUserId: 'targetUserId',
tenantId: 'tenantId',
action: 'action',
reason: 'reason',
requestPath: 'requestPath',
metadata: 'metadata'
} as const
export type ImpersonationAuditScalarFieldEnum = (typeof ImpersonationAuditScalarFieldEnum)[keyof typeof ImpersonationAuditScalarFieldEnum]
export const TenantUserScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
type: 'type',
joined: 'joined',
status: 'status'
} as const
export type TenantUserScalarFieldEnum = (typeof TenantUserScalarFieldEnum)[keyof typeof TenantUserScalarFieldEnum]
export const TenantUserInvitationScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
email: 'email',
firstName: 'firstName',
lastName: 'lastName',
type: 'type',
pending: 'pending',
status: 'status',
tokenHash: 'tokenHash',
tokenPrefix: 'tokenPrefix',
expiresAt: 'expiresAt',
acceptedAt: 'acceptedAt',
revokedAt: 'revokedAt',
createdUserId: 'createdUserId',
fromUserId: 'fromUserId',
acceptedByUserId: 'acceptedByUserId',
revokedByUserId: 'revokedByUserId'
} as const
export type TenantUserInvitationScalarFieldEnum = (typeof TenantUserInvitationScalarFieldEnum)[keyof typeof TenantUserInvitationScalarFieldEnum]
export const RegistrationScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
email: 'email',
firstName: 'firstName',
lastName: 'lastName',
slug: 'slug',
token: 'token',
ipAddress: 'ipAddress',
company: 'company',
selectedSubscriptionPriceId: 'selectedSubscriptionPriceId',
leadConversionLeadId: 'leadConversionLeadId',
leadConversionToken: 'leadConversionToken',
leadConversionPlanId: 'leadConversionPlanId',
createdTenantId: 'createdTenantId'
} as const
export type RegistrationScalarFieldEnum = (typeof RegistrationScalarFieldEnum)[keyof typeof RegistrationScalarFieldEnum]
export const BlacklistScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
type: 'type',
value: 'value',
active: 'active',
registerAttempts: 'registerAttempts'
} as const
export type BlacklistScalarFieldEnum = (typeof BlacklistScalarFieldEnum)[keyof typeof BlacklistScalarFieldEnum]
export const TenantIpAddressScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
userId: 'userId',
apiKeyId: 'apiKeyId',
ip: 'ip',
fromUrl: 'fromUrl',
createdAt: 'createdAt'
} as const
export type TenantIpAddressScalarFieldEnum = (typeof TenantIpAddressScalarFieldEnum)[keyof typeof TenantIpAddressScalarFieldEnum]
export const TenantTypeScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
title: 'title',
titlePlural: 'titlePlural',
description: 'description',
isDefault: 'isDefault'
} as const
export type TenantTypeScalarFieldEnum = (typeof TenantTypeScalarFieldEnum)[keyof typeof TenantTypeScalarFieldEnum]
export const ActivityScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
createdAt: 'createdAt',
actorUserId: 'actorUserId',
actorKind: 'actorKind',
activityType: 'activityType',
subjectType: 'subjectType',
subjectId: 'subjectId',
relatedEntityRefs: 'relatedEntityRefs',
metadata: 'metadata',
summaryText: 'summaryText'
} as const
export type ActivityScalarFieldEnum = (typeof ActivityScalarFieldEnum)[keyof typeof ActivityScalarFieldEnum]
export const AdminTenantNoteScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
authorUserId: 'authorUserId',
noteText: 'noteText',
category: 'category',
pinned: 'pinned'
} as const
export type AdminTenantNoteScalarFieldEnum = (typeof AdminTenantNoteScalarFieldEnum)[keyof typeof AdminTenantNoteScalarFieldEnum]
export const SupportTicketMessageScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
supportTicketId: 'supportTicketId',
authorUserId: 'authorUserId',
body: 'body',
internalNote: 'internalNote'
} as const
export type SupportTicketMessageScalarFieldEnum = (typeof SupportTicketMessageScalarFieldEnum)[keyof typeof SupportTicketMessageScalarFieldEnum]
export const AnalyticsSettingsScalarFieldEnum = {
id: 'id',
public: 'public',
ignorePages: 'ignorePages',
onlyPages: 'onlyPages'
} as const
export type AnalyticsSettingsScalarFieldEnum = (typeof AnalyticsSettingsScalarFieldEnum)[keyof typeof AnalyticsSettingsScalarFieldEnum]
export const AnalyticsUniqueVisitorScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
cookie: 'cookie',
via: 'via',
httpReferrer: 'httpReferrer',
browser: 'browser',
browserVersion: 'browserVersion',
os: 'os',
osVersion: 'osVersion',
device: 'device',
source: 'source',
medium: 'medium',
campaign: 'campaign',
content: 'content',
term: 'term',
country: 'country',
city: 'city',
fromUrl: 'fromUrl',
fromRoute: 'fromRoute',
userId: 'userId',
portalId: 'portalId',
portalUserId: 'portalUserId'
} as const
export type AnalyticsUniqueVisitorScalarFieldEnum = (typeof AnalyticsUniqueVisitorScalarFieldEnum)[keyof typeof AnalyticsUniqueVisitorScalarFieldEnum]
export const AnalyticsPageViewScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
uniqueVisitorId: 'uniqueVisitorId',
url: 'url',
route: 'route',
portalId: 'portalId',
portalUserId: 'portalUserId'
} as const
export type AnalyticsPageViewScalarFieldEnum = (typeof AnalyticsPageViewScalarFieldEnum)[keyof typeof AnalyticsPageViewScalarFieldEnum]
export const AnalyticsEventScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
uniqueVisitorId: 'uniqueVisitorId',
action: 'action',
category: 'category',
label: 'label',
value: 'value',
url: 'url',
route: 'route',
featureFlagId: 'featureFlagId',
portalId: 'portalId',
portalUserId: 'portalUserId'
} as const
export type AnalyticsEventScalarFieldEnum = (typeof AnalyticsEventScalarFieldEnum)[keyof typeof AnalyticsEventScalarFieldEnum]
export const AppScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
key: 'key',
title: 'title',
category: 'category',
connectionType: 'connectionType',
connectionSchema: 'connectionSchema',
phase: 'phase',
icon: 'icon',
isActive: 'isActive'
} as const
export type AppScalarFieldEnum = (typeof AppScalarFieldEnum)[keyof typeof AppScalarFieldEnum]
export const DataConnectionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
appId: 'appId',
label: 'label',
credentialsCiphertext: 'credentialsCiphertext',
connectionStatus: 'connectionStatus',
lastHealthCheck: 'lastHealthCheck',
healthMessageKey: 'healthMessageKey',
tokenExpiresAt: 'tokenExpiresAt',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type DataConnectionScalarFieldEnum = (typeof DataConnectionScalarFieldEnum)[keyof typeof DataConnectionScalarFieldEnum]
export const AppSyncRunScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
dataConnectionId: 'dataConnectionId',
kind: 'kind',
status: 'status',
itemsTotal: 'itemsTotal',
itemsSucceeded: 'itemsSucceeded',
itemsFailed: 'itemsFailed',
summaryText: 'summaryText',
startedAt: 'startedAt',
completedAt: 'completedAt',
createdByUserId: 'createdByUserId'
} as const
export type AppSyncRunScalarFieldEnum = (typeof AppSyncRunScalarFieldEnum)[keyof typeof AppSyncRunScalarFieldEnum]
export const AppSyncRunLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
syncRunId: 'syncRunId',
severity: 'severity',
messageText: 'messageText',
techDetails: 'techDetails'
} as const
export type AppSyncRunLogScalarFieldEnum = (typeof AppSyncRunLogScalarFieldEnum)[keyof typeof AppSyncRunLogScalarFieldEnum]
export const AppSyncItemScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
syncRunId: 'syncRunId',
entityType: 'entityType',
entityId: 'entityId',
externalId: 'externalId',
operation: 'operation',
status: 'status',
errorText: 'errorText'
} as const
export type AppSyncItemScalarFieldEnum = (typeof AppSyncItemScalarFieldEnum)[keyof typeof AppSyncItemScalarFieldEnum]
export const ProjektMitgliedScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
userId: 'userId',
groupId: 'groupId',
rolle: 'rolle',
createdByUserId: 'createdByUserId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ProjektMitgliedScalarFieldEnum = (typeof ProjektMitgliedScalarFieldEnum)[keyof typeof ProjektMitgliedScalarFieldEnum]
export const ProjektTerminScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
createdByUserId: 'createdByUserId',
assignedToUserId: 'assignedToUserId',
assignedToGroupId: 'assignedToGroupId',
titel: 'titel',
beschreibung: 'beschreibung',
startAt: 'startAt',
endAt: 'endAt',
status: 'status',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ProjektTerminScalarFieldEnum = (typeof ProjektTerminScalarFieldEnum)[keyof typeof ProjektTerminScalarFieldEnum]
export const RechnungScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
createdByUserId: 'createdByUserId',
rechnungsnummer: 'rechnungsnummer',
betrag: 'betrag',
status: 'status',
datum: 'datum',
faelligAm: 'faelligAm',
dateiId: 'dateiId',
quelle: 'quelle',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type RechnungScalarFieldEnum = (typeof RechnungScalarFieldEnum)[keyof typeof RechnungScalarFieldEnum]
export const ProjektChecklistScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
createdByUserId: 'createdByUserId',
titel: 'titel',
typ: 'typ',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ProjektChecklistScalarFieldEnum = (typeof ProjektChecklistScalarFieldEnum)[keyof typeof ProjektChecklistScalarFieldEnum]
export const ProjektChecklistItemScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
checklistId: 'checklistId',
titel: 'titel',
status: 'status',
maengelKlasse: 'maengelKlasse',
fotoFileId: 'fotoFileId',
assignedToUserId: 'assignedToUserId',
dueAt: 'dueAt',
position: 'position',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ProjektChecklistItemScalarFieldEnum = (typeof ProjektChecklistItemScalarFieldEnum)[keyof typeof ProjektChecklistItemScalarFieldEnum]
export const AuftragPipelineStageConfigScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pipelineId: 'pipelineId',
stageId: 'stageId',
requiresAcceptanceProtocol: 'requiresAcceptanceProtocol',
acceptanceFormTemplateId: 'acceptanceFormTemplateId',
autoArchiveAfterDays: 'autoArchiveAfterDays',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type AuftragPipelineStageConfigScalarFieldEnum = (typeof AuftragPipelineStageConfigScalarFieldEnum)[keyof typeof AuftragPipelineStageConfigScalarFieldEnum]
export const AcceptanceFormTemplateScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
name: 'name',
formId: 'formId',
definition: 'definition',
isDefault: 'isDefault',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type AcceptanceFormTemplateScalarFieldEnum = (typeof AcceptanceFormTemplateScalarFieldEnum)[keyof typeof AcceptanceFormTemplateScalarFieldEnum]
export const ProjectTemplateScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
name: 'name',
defaultPipelineId: 'defaultPipelineId',
defaultStageId: 'defaultStageId',
defaultMembers: 'defaultMembers',
defaultTasks: 'defaultTasks',
customFields: 'customFields',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ProjectTemplateScalarFieldEnum = (typeof ProjectTemplateScalarFieldEnum)[keyof typeof ProjectTemplateScalarFieldEnum]
export const ScheduleEntryScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
assignedUserId: 'assignedUserId',
createdByUserId: 'createdByUserId',
title: 'title',
startAt: 'startAt',
endAt: 'endAt',
status: 'status',
calendarEventId: 'calendarEventId',
syncStatus: 'syncStatus',
conflictOverrideReason: 'conflictOverrideReason',
clientMutationId: 'clientMutationId',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ScheduleEntryScalarFieldEnum = (typeof ScheduleEntryScalarFieldEnum)[keyof typeof ScheduleEntryScalarFieldEnum]
export const ScheduleConflictScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
entryId: 'entryId',
type: 'type',
severity: 'severity',
messageKey: 'messageKey',
sourceKind: 'sourceKind',
sourceId: 'sourceId',
createdAt: 'createdAt',
resolvedAt: 'resolvedAt',
overriddenAt: 'overriddenAt'
} as const
export type ScheduleConflictScalarFieldEnum = (typeof ScheduleConflictScalarFieldEnum)[keyof typeof ScheduleConflictScalarFieldEnum]
export const AbnahmeProtokollScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
maengelChecklistId: 'maengelChecklistId',
createdByUserId: 'createdByUserId',
datum: 'datum',
acceptanceKind: 'acceptanceKind',
anwesende: 'anwesende',
druckprobe: 'druckprobe',
funktionspruefung: 'funktionspruefung',
zaehlerstaende: 'zaehlerstaende',
dokumente: 'dokumente',
bemerkungen: 'bemerkungen',
pdfFileId: 'pdfFileId',
customerEmail: 'customerEmail',
customerEmailQueuedAt: 'customerEmailQueuedAt',
clientMutationId: 'clientMutationId',
gesperrtAt: 'gesperrtAt',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type AbnahmeProtokollScalarFieldEnum = (typeof AbnahmeProtokollScalarFieldEnum)[keyof typeof AbnahmeProtokollScalarFieldEnum]
export const AbnahmeSignaturScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
protokollId: 'protokollId',
signerName: 'signerName',
signerRole: 'signerRole',
signatureFileId: 'signatureFileId',
signerIpHash: 'signerIpHash',
signedAt: 'signedAt',
createdAt: 'createdAt'
} as const
export type AbnahmeSignaturScalarFieldEnum = (typeof AbnahmeSignaturScalarFieldEnum)[keyof typeof AbnahmeSignaturScalarFieldEnum]
export const OfflineSyncMutationScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
clientMutationId: 'clientMutationId',
createdByUserId: 'createdByUserId',
operation: 'operation',
payload: 'payload',
status: 'status',
resultEntityType: 'resultEntityType',
resultEntityId: 'resultEntityId',
errorMessageKey: 'errorMessageKey',
createdAt: 'createdAt',
appliedAt: 'appliedAt'
} as const
export type OfflineSyncMutationScalarFieldEnum = (typeof OfflineSyncMutationScalarFieldEnum)[keyof typeof OfflineSyncMutationScalarFieldEnum]
export const UserSessionScalarFieldEnum = {
id: 'id',
userId: 'userId',
tokenHash: 'tokenHash',
createdAt: 'createdAt',
lastSeenAt: 'lastSeenAt',
expiresAt: 'expiresAt',
revokedAt: 'revokedAt',
trustedAt: 'trustedAt',
ipHash: 'ipHash',
userAgent: 'userAgent',
deviceLabel: 'deviceLabel',
approxLocation: 'approxLocation',
browserFingerprint: 'browserFingerprint'
} as const
export type UserSessionScalarFieldEnum = (typeof UserSessionScalarFieldEnum)[keyof typeof UserSessionScalarFieldEnum]
export const TrustedDeviceScalarFieldEnum = {
id: 'id',
userId: 'userId',
tokenHash: 'tokenHash',
createdAt: 'createdAt',
lastUsedAt: 'lastUsedAt',
expiresAt: 'expiresAt',
revokedAt: 'revokedAt',
ipHash: 'ipHash',
userAgent: 'userAgent',
deviceLabel: 'deviceLabel',
approxLocation: 'approxLocation'
} as const
export type TrustedDeviceScalarFieldEnum = (typeof TrustedDeviceScalarFieldEnum)[keyof typeof TrustedDeviceScalarFieldEnum]
export const AutomationRuleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
description: 'description',
status: 'status',
enabled: 'enabled',
createdVia: 'createdVia',
triggerKey: 'triggerKey',
flowData: 'flowData',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type AutomationRuleScalarFieldEnum = (typeof AutomationRuleScalarFieldEnum)[keyof typeof AutomationRuleScalarFieldEnum]
export const AutomationRuleStepScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
ruleId: 'ruleId',
stepKey: 'stepKey',
stepKind: 'stepKind',
nodeType: 'nodeType',
config: 'config',
parentStepIds: 'parentStepIds',
position: 'position',
sortOrder: 'sortOrder',
summaryText: 'summaryText',
isDemoData: 'isDemoData'
} as const
export type AutomationRuleStepScalarFieldEnum = (typeof AutomationRuleStepScalarFieldEnum)[keyof typeof AutomationRuleStepScalarFieldEnum]
export const AutomationExecutionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
ruleId: 'ruleId',
triggerKey: 'triggerKey',
triggerPayload: 'triggerPayload',
status: 'status',
dryRun: 'dryRun',
idempotencyKey: 'idempotencyKey',
reverseWindowExpiresAt: 'reverseWindowExpiresAt',
resumeFromStepId: 'resumeFromStepId',
summaryText: 'summaryText',
errorText: 'errorText',
queuedAt: 'queuedAt',
startedAt: 'startedAt',
endedAt: 'endedAt',
durationMs: 'durationMs',
attempt: 'attempt',
nextRetryAt: 'nextRetryAt',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData'
} as const
export type AutomationExecutionScalarFieldEnum = (typeof AutomationExecutionScalarFieldEnum)[keyof typeof AutomationExecutionScalarFieldEnum]
export const AutomationStepExecutionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
executionId: 'executionId',
ruleStepId: 'ruleStepId',
stepKey: 'stepKey',
stepKind: 'stepKind',
nodeType: 'nodeType',
status: 'status',
input: 'input',
output: 'output',
summaryText: 'summaryText',
errorText: 'errorText',
startedAt: 'startedAt',
endedAt: 'endedAt',
durationMs: 'durationMs',
attempt: 'attempt',
sortOrder: 'sortOrder'
} as const
export type AutomationStepExecutionScalarFieldEnum = (typeof AutomationStepExecutionScalarFieldEnum)[keyof typeof AutomationStepExecutionScalarFieldEnum]
export const AutomationCredentialScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
kind: 'kind',
encryptedValue: 'encryptedValue',
metadata: 'metadata',
createdByUserId: 'createdByUserId',
archivedAt: 'archivedAt'
} as const
export type AutomationCredentialScalarFieldEnum = (typeof AutomationCredentialScalarFieldEnum)[keyof typeof AutomationCredentialScalarFieldEnum]
export const AutomationTemplateScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
description: 'description',
category: 'category',
flowData: 'flowData',
isPublished: 'isPublished',
createdFromRuleId: 'createdFromRuleId',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type AutomationTemplateScalarFieldEnum = (typeof AutomationTemplateScalarFieldEnum)[keyof typeof AutomationTemplateScalarFieldEnum]
export const AutomationTriggerMeterScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
triggerKey: 'triggerKey',
windowStart: 'windowStart',
windowMinutes: 'windowMinutes',
count: 'count',
pausedUntil: 'pausedUntil',
anomalyText: 'anomalyText'
} as const
export type AutomationTriggerMeterScalarFieldEnum = (typeof AutomationTriggerMeterScalarFieldEnum)[keyof typeof AutomationTriggerMeterScalarFieldEnum]
export const BookingPageScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
slug: 'slug',
title: 'title',
description: 'description',
durationMinutes: 'durationMinutes',
bufferBeforeMinutes: 'bufferBeforeMinutes',
bufferAfterMinutes: 'bufferAfterMinutes',
slotIncrementMinutes: 'slotIncrementMinutes',
minNoticeHours: 'minNoticeHours',
maxAdvanceDays: 'maxAdvanceDays',
assignmentStrategy: 'assignmentStrategy',
confirmationEmailSubject: 'confirmationEmailSubject',
confirmationEmailBody: 'confirmationEmailBody',
internalEventTitleTemplate: 'internalEventTitleTemplate',
redirectUrlAfterBooking: 'redirectUrlAfterBooking',
intakeFormId: 'intakeFormId',
isPublished: 'isPublished',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type BookingPageScalarFieldEnum = (typeof BookingPageScalarFieldEnum)[keyof typeof BookingPageScalarFieldEnum]
export const BookingPageProviderScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
bookingPageId: 'bookingPageId',
providerUserId: 'providerUserId',
displayOrder: 'displayOrder',
isActive: 'isActive'
} as const
export type BookingPageProviderScalarFieldEnum = (typeof BookingPageProviderScalarFieldEnum)[keyof typeof BookingPageProviderScalarFieldEnum]
export const AvailabilityRuleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
providerUserId: 'providerUserId',
dayOfWeek: 'dayOfWeek',
startTime: 'startTime',
endTime: 'endTime',
timezone: 'timezone'
} as const
export type AvailabilityRuleScalarFieldEnum = (typeof AvailabilityRuleScalarFieldEnum)[keyof typeof AvailabilityRuleScalarFieldEnum]
export const AvailabilityExceptionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
providerUserId: 'providerUserId',
date: 'date',
kind: 'kind',
startTime: 'startTime',
endTime: 'endTime',
reason: 'reason',
timezone: 'timezone'
} as const
export type AvailabilityExceptionScalarFieldEnum = (typeof AvailabilityExceptionScalarFieldEnum)[keyof typeof AvailabilityExceptionScalarFieldEnum]
export const AppointmentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
bookingPageId: 'bookingPageId',
providerUserId: 'providerUserId',
startAt: 'startAt',
endAt: 'endAt',
timezone: 'timezone',
status: 'status',
kontaktId: 'kontaktId',
leadId: 'leadId',
formSubmissionId: 'formSubmissionId',
intakeAnswers: 'intakeAnswers',
internalCalendarEventId: 'internalCalendarEventId',
externalCalendarEventIds: 'externalCalendarEventIds',
cancelledAt: 'cancelledAt',
cancelledByKind: 'cancelledByKind',
cancellationReason: 'cancellationReason',
rescheduledFromId: 'rescheduledFromId',
notesInternal: 'notesInternal',
isDemoData: 'isDemoData'
} as const
export type AppointmentScalarFieldEnum = (typeof AppointmentScalarFieldEnum)[keyof typeof AppointmentScalarFieldEnum]
export const CalendarConnectionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
provider: 'provider',
externalAccountEmail: 'externalAccountEmail',
externalAccountId: 'externalAccountId',
oauthRefreshTokenCiphertext: 'oauthRefreshTokenCiphertext',
oauthAccessTokenCiphertext: 'oauthAccessTokenCiphertext',
oauthAccessTokenExpiresAt: 'oauthAccessTokenExpiresAt',
oauthScopes: 'oauthScopes',
webhookSubscriptionId: 'webhookSubscriptionId',
webhookSubscriptionExpiresAt: 'webhookSubscriptionExpiresAt',
selectedCalendars: 'selectedCalendars',
syncDirection: 'syncDirection',
status: 'status',
lastSyncAt: 'lastSyncAt',
lastErrorText: 'lastErrorText',
dataConnectionId: 'dataConnectionId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type CalendarConnectionScalarFieldEnum = (typeof CalendarConnectionScalarFieldEnum)[keyof typeof CalendarConnectionScalarFieldEnum]
export const CalendarEventScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
connectionId: 'connectionId',
source: 'source',
provider: 'provider',
externalEventId: 'externalEventId',
externalCalendarId: 'externalCalendarId',
title: 'title',
description: 'description',
location: 'location',
startsAt: 'startsAt',
endsAt: 'endsAt',
isAllDay: 'isAllDay',
timeZone: 'timeZone',
recurrenceRule: 'recurrenceRule',
attendees: 'attendees',
etag: 'etag',
lastModifiedExternal: 'lastModifiedExternal',
isBusyForAvailability: 'isBusyForAvailability',
internalEntityLink: 'internalEntityLink',
versionToken: 'versionToken',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type CalendarEventScalarFieldEnum = (typeof CalendarEventScalarFieldEnum)[keyof typeof CalendarEventScalarFieldEnum]
export const CalendarEventMappingScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
internalEventId: 'internalEventId',
externalEventId: 'externalEventId',
provider: 'provider',
externalCalendarId: 'externalCalendarId',
connectionId: 'connectionId',
lastSyncedAt: 'lastSyncedAt',
lastKnownExternalEtag: 'lastKnownExternalEtag',
lastKnownInternalVersionToken: 'lastKnownInternalVersionToken'
} as const
export type CalendarEventMappingScalarFieldEnum = (typeof CalendarEventMappingScalarFieldEnum)[keyof typeof CalendarEventMappingScalarFieldEnum]
export const CalendarSyncCursorScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
connectionId: 'connectionId',
externalCalendarId: 'externalCalendarId',
cursorToken: 'cursorToken',
lastFullSyncAt: 'lastFullSyncAt'
} as const
export type CalendarSyncCursorScalarFieldEnum = (typeof CalendarSyncCursorScalarFieldEnum)[keyof typeof CalendarSyncCursorScalarFieldEnum]
export const CalendarWebhookEventScalarFieldEnum = {
id: 'id',
receivedAt: 'receivedAt',
tenantId: 'tenantId',
connectionId: 'connectionId',
provider: 'provider',
notificationPayload: 'notificationPayload',
processingStatus: 'processingStatus',
processingErrorText: 'processingErrorText',
processedAt: 'processedAt',
externalResourceState: 'externalResourceState'
} as const
export type CalendarWebhookEventScalarFieldEnum = (typeof CalendarWebhookEventScalarFieldEnum)[keyof typeof CalendarWebhookEventScalarFieldEnum]
export const CalendarConflictScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
connectionId: 'connectionId',
userId: 'userId',
internalEventId: 'internalEventId',
externalEventId: 'externalEventId',
resolution: 'resolution',
descriptionText: 'descriptionText',
isDemoData: 'isDemoData'
} as const
export type CalendarConflictScalarFieldEnum = (typeof CalendarConflictScalarFieldEnum)[keyof typeof CalendarConflictScalarFieldEnum]
export const CollabDocScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
resourceType: 'resourceType',
resourceId: 'resourceId',
ydocState: 'ydocState',
version: 'version',
lastUpdatedAt: 'lastUpdatedAt',
lastSnapshotAt: 'lastSnapshotAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type CollabDocScalarFieldEnum = (typeof CollabDocScalarFieldEnum)[keyof typeof CollabDocScalarFieldEnum]
export const AppConfigurationScalarFieldEnum = {
id: 'id',
updatedAt: 'updatedAt',
name: 'name',
url: 'url',
theme: 'theme',
authRequireEmailVerification: 'authRequireEmailVerification',
authRequireOrganization: 'authRequireOrganization',
authRequireName: 'authRequireName',
analyticsEnabled: 'analyticsEnabled',
analyticsSimpleAnalytics: 'analyticsSimpleAnalytics',
analyticsPlausibleAnalytics: 'analyticsPlausibleAnalytics',
subscriptionRequired: 'subscriptionRequired',
subscriptionAllowSubscribeBeforeSignUp: 'subscriptionAllowSubscribeBeforeSignUp',
subscriptionAllowSignUpBeforeSubscribe: 'subscriptionAllowSignUpBeforeSubscribe',
cookiesEnabled: 'cookiesEnabled',
metricsEnabled: 'metricsEnabled',
metricsLogToConsole: 'metricsLogToConsole',
metricsSaveToDatabase: 'metricsSaveToDatabase',
metricsIgnoreUrls: 'metricsIgnoreUrls',
brandingLogo: 'brandingLogo',
brandingLogoDarkMode: 'brandingLogoDarkMode',
brandingIcon: 'brandingIcon',
brandingIconDarkMode: 'brandingIconDarkMode',
brandingFavicon: 'brandingFavicon',
headScripts: 'headScripts',
bodyScripts: 'bodyScripts',
emailProvider: 'emailProvider',
emailFromEmail: 'emailFromEmail',
emailFromName: 'emailFromName',
emailSupportEmail: 'emailSupportEmail'
} as const
export type AppConfigurationScalarFieldEnum = (typeof AppConfigurationScalarFieldEnum)[keyof typeof AppConfigurationScalarFieldEnum]
export const LogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
apiKeyId: 'apiKeyId',
url: 'url',
action: 'action',
details: 'details'
} as const
export type LogScalarFieldEnum = (typeof LogScalarFieldEnum)[keyof typeof LogScalarFieldEnum]
export const AuditEventScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
actorId: 'actorId',
actorType: 'actorType',
actorEmail: 'actorEmail',
actorIp: 'actorIp',
actorUserAgent: 'actorUserAgent',
action: 'action',
targetType: 'targetType',
targetId: 'targetId',
requestId: 'requestId',
sourceModule: 'sourceModule',
outcome: 'outcome',
dataSensitivity: 'dataSensitivity',
regulatoryScope: 'regulatoryScope',
metadata: 'metadata',
beforeDiff: 'beforeDiff',
afterDiff: 'afterDiff',
summaryText: 'summaryText',
previousHash: 'previousHash',
eventHash: 'eventHash'
} as const
export type AuditEventScalarFieldEnum = (typeof AuditEventScalarFieldEnum)[keyof typeof AuditEventScalarFieldEnum]
export const IdempotencyKeyScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
expiresAt: 'expiresAt',
scope: 'scope',
key: 'key',
requestHash: 'requestHash',
responseStatus: 'responseStatus',
responseBody: 'responseBody',
responseHeaders: 'responseHeaders'
} as const
export type IdempotencyKeyScalarFieldEnum = (typeof IdempotencyKeyScalarFieldEnum)[keyof typeof IdempotencyKeyScalarFieldEnum]
export const ApiKeyScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
createdByUserId: 'createdByUserId',
tenantId: 'tenantId',
key: 'key',
keyHash: 'keyHash',
keyPrefix: 'keyPrefix',
keyLastFour: 'keyLastFour',
hashedAt: 'hashedAt',
keyVersion: 'keyVersion',
scopes: 'scopes',
alias: 'alias',
expires: 'expires',
active: 'active'
} as const
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
export const ApiKeyLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
apiKeyId: 'apiKeyId',
tenantId: 'tenantId',
ip: 'ip',
endpoint: 'endpoint',
method: 'method',
params: 'params',
status: 'status',
duration: 'duration',
error: 'error',
type: 'type',
alias: 'alias',
tenantName: 'tenantName'
} as const
export type ApiKeyLogScalarFieldEnum = (typeof ApiKeyLogScalarFieldEnum)[keyof typeof ApiKeyLogScalarFieldEnum]
export const EventScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
name: 'name',
data: 'data',
resource: 'resource',
description: 'description'
} as const
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
export const EventWebhookAttemptScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
startedAt: 'startedAt',
finishedAt: 'finishedAt',
eventId: 'eventId',
endpoint: 'endpoint',
success: 'success',
status: 'status',
message: 'message',
body: 'body'
} as const
export type EventWebhookAttemptScalarFieldEnum = (typeof EventWebhookAttemptScalarFieldEnum)[keyof typeof EventWebhookAttemptScalarFieldEnum]
export const MetricLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
env: 'env',
type: 'type',
route: 'route',
url: 'url',
function: 'function',
duration: 'duration',
userId: 'userId',
tenantId: 'tenantId'
} as const
export type MetricLogScalarFieldEnum = (typeof MetricLogScalarFieldEnum)[keyof typeof MetricLogScalarFieldEnum]
export const FileUploadProgressScalarFieldEnum = {
id: 'id',
fileName: 'fileName',
progressServer: 'progressServer',
progressStorage: 'progressStorage',
url: 'url',
error: 'error'
} as const
export type FileUploadProgressScalarFieldEnum = (typeof FileUploadProgressScalarFieldEnum)[keyof typeof FileUploadProgressScalarFieldEnum]
export const FileChunkScalarFieldEnum = {
id: 'id',
fileUploadId: 'fileUploadId',
index: 'index',
data: 'data'
} as const
export type FileChunkScalarFieldEnum = (typeof FileChunkScalarFieldEnum)[keyof typeof FileChunkScalarFieldEnum]
export const FileObjectScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
provider: 'provider',
bucket: 'bucket',
key: 'key',
contentType: 'contentType',
byteSize: 'byteSize',
checksumSha256: 'checksumSha256',
publicUrl: 'publicUrl',
uploadedAt: 'uploadedAt',
lastSignedUploadAt: 'lastSignedUploadAt',
lastSignedDownloadAt: 'lastSignedDownloadAt',
metadata: 'metadata'
} as const
export type FileObjectScalarFieldEnum = (typeof FileObjectScalarFieldEnum)[keyof typeof FileObjectScalarFieldEnum]
export const IpAddressScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
ip: 'ip',
provider: 'provider',
type: 'type',
countryCode: 'countryCode',
countryName: 'countryName',
regionCode: 'regionCode',
regionName: 'regionName',
city: 'city',
zipCode: 'zipCode',
latitude: 'latitude',
longitude: 'longitude',
metadata: 'metadata'
} as const
export type IpAddressScalarFieldEnum = (typeof IpAddressScalarFieldEnum)[keyof typeof IpAddressScalarFieldEnum]
export const IpAddressLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
ip: 'ip',
url: 'url',
action: 'action',
description: 'description',
success: 'success',
error: 'error',
metadata: 'metadata',
ipAddressId: 'ipAddressId'
} as const
export type IpAddressLogScalarFieldEnum = (typeof IpAddressLogScalarFieldEnum)[keyof typeof IpAddressLogScalarFieldEnum]
export const WidgetScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
appearance: 'appearance',
metadata: 'metadata'
} as const
export type WidgetScalarFieldEnum = (typeof WidgetScalarFieldEnum)[keyof typeof WidgetScalarFieldEnum]
export const CredentialScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
value: 'value'
} as const
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
export const KontaktScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
kontaktTyp: 'kontaktTyp',
kontaktStatus: 'kontaktStatus',
vorname: 'vorname',
nachname: 'nachname',
orgName: 'orgName',
orgMerkmal: 'orgMerkmal',
primaerEmail: 'primaerEmail',
primaerTelefon: 'primaerTelefon',
adresseId: 'adresseId',
zustaendigerUserId: 'zustaendigerUserId',
language: 'language',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type KontaktScalarFieldEnum = (typeof KontaktScalarFieldEnum)[keyof typeof KontaktScalarFieldEnum]
export const KontaktRelationScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
vonKontaktId: 'vonKontaktId',
zuKontaktId: 'zuKontaktId',
rolle: 'rolle',
kontext: 'kontext'
} as const
export type KontaktRelationScalarFieldEnum = (typeof KontaktRelationScalarFieldEnum)[keyof typeof KontaktRelationScalarFieldEnum]
export const KontaktEmailScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
kontaktId: 'kontaktId',
email: 'email',
primaer: 'primaer'
} as const
export type KontaktEmailScalarFieldEnum = (typeof KontaktEmailScalarFieldEnum)[keyof typeof KontaktEmailScalarFieldEnum]
export const KontaktTelefonScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
kontaktId: 'kontaktId',
telefon: 'telefon',
primaer: 'primaer'
} as const
export type KontaktTelefonScalarFieldEnum = (typeof KontaktTelefonScalarFieldEnum)[keyof typeof KontaktTelefonScalarFieldEnum]
export const AdresseScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
strasse: 'strasse',
hausnummer: 'hausnummer',
plz: 'plz',
ort: 'ort',
land: 'land'
} as const
export type AdresseScalarFieldEnum = (typeof AdresseScalarFieldEnum)[keyof typeof AdresseScalarFieldEnum]
export const CustomFieldDefinitionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
entityType: 'entityType',
key: 'key',
label: 'label',
datentyp: 'datentyp',
optionen: 'optionen',
archiviert: 'archiviert',
isDemoData: 'isDemoData'
} as const
export type CustomFieldDefinitionScalarFieldEnum = (typeof CustomFieldDefinitionScalarFieldEnum)[keyof typeof CustomFieldDefinitionScalarFieldEnum]
export const CustomFieldValueScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
definitionId: 'definitionId',
entityType: 'entityType',
entityId: 'entityId',
wert: 'wert'
} as const
export type CustomFieldValueScalarFieldEnum = (typeof CustomFieldValueScalarFieldEnum)[keyof typeof CustomFieldValueScalarFieldEnum]
export const TagScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
name: 'name',
farbe: 'farbe'
} as const
export type TagScalarFieldEnum = (typeof TagScalarFieldEnum)[keyof typeof TagScalarFieldEnum]
export const TagAssignmentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
tagId: 'tagId',
entityType: 'entityType',
entityId: 'entityId'
} as const
export type TagAssignmentScalarFieldEnum = (typeof TagAssignmentScalarFieldEnum)[keyof typeof TagAssignmentScalarFieldEnum]
export const TenantEncryptionKeyScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
wrappedDek: 'wrappedDek',
keyVersion: 'keyVersion'
} as const
export type TenantEncryptionKeyScalarFieldEnum = (typeof TenantEncryptionKeyScalarFieldEnum)[keyof typeof TenantEncryptionKeyScalarFieldEnum]
export const DashboardScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
description: 'description',
role: 'role',
isDefaultForRole: 'isDefaultForRole',
isShared: 'isShared',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type DashboardScalarFieldEnum = (typeof DashboardScalarFieldEnum)[keyof typeof DashboardScalarFieldEnum]
export const DashboardLayoutScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
dashboardId: 'dashboardId',
userId: 'userId',
widgets: 'widgets',
layoutData: 'layoutData',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type DashboardLayoutScalarFieldEnum = (typeof DashboardLayoutScalarFieldEnum)[keyof typeof DashboardLayoutScalarFieldEnum]
export const WidgetInstanceScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
dashboardId: 'dashboardId',
widgetCatalogKey: 'widgetCatalogKey',
config: 'config',
position: 'position',
size: 'size',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type WidgetInstanceScalarFieldEnum = (typeof WidgetInstanceScalarFieldEnum)[keyof typeof WidgetInstanceScalarFieldEnum]
export const EmailIntegrationMailboxScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
ownerUserId: 'ownerUserId',
provider: 'provider',
emailAddress: 'emailAddress',
externalAccountId: 'externalAccountId',
displayName: 'displayName',
oauthRefreshTokenCiphertext: 'oauthRefreshTokenCiphertext',
oauthAccessTokenCiphertext: 'oauthAccessTokenCiphertext',
oauthAccessTokenExpiresAt: 'oauthAccessTokenExpiresAt',
oauthScopes: 'oauthScopes',
webhookSubscriptionId: 'webhookSubscriptionId',
webhookSubscriptionExpiresAt: 'webhookSubscriptionExpiresAt',
webhookClientState: 'webhookClientState',
isDefaultForUser: 'isDefaultForUser',
status: 'status',
lastSyncAt: 'lastSyncAt',
lastErrorText: 'lastErrorText',
dataConnectionId: 'dataConnectionId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmailIntegrationMailboxScalarFieldEnum = (typeof EmailIntegrationMailboxScalarFieldEnum)[keyof typeof EmailIntegrationMailboxScalarFieldEnum]
export const EmailIntegrationMessageScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
mailboxId: 'mailboxId',
providerMessageId: 'providerMessageId',
providerThreadId: 'providerThreadId',
internetMessageId: 'internetMessageId',
direction: 'direction',
fromAddress: 'fromAddress',
fromName: 'fromName',
toAddresses: 'toAddresses',
ccAddresses: 'ccAddresses',
bccAddresses: 'bccAddresses',
subject: 'subject',
snippet: 'snippet',
bodyHtml: 'bodyHtml',
bodyText: 'bodyText',
sentAt: 'sentAt',
receivedAt: 'receivedAt',
isRead: 'isRead',
isStarred: 'isStarred',
isNewsletter: 'isNewsletter',
hasAttachments: 'hasAttachments',
providerLabels: 'providerLabels',
matchedKontaktId: 'matchedKontaktId',
matchedLeadId: 'matchedLeadId',
matchedProjektId: 'matchedProjektId',
matchConfidence: 'matchConfidence',
manualOverrideAt: 'manualOverrideAt',
manualOverrideUserId: 'manualOverrideUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmailIntegrationMessageScalarFieldEnum = (typeof EmailIntegrationMessageScalarFieldEnum)[keyof typeof EmailIntegrationMessageScalarFieldEnum]
export const EmailIntegrationSyncCursorScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
mailboxId: 'mailboxId',
externalFolderId: 'externalFolderId',
cursorToken: 'cursorToken',
initialSyncStatus: 'initialSyncStatus',
initialSyncProgress: 'initialSyncProgress',
lastCursorAdvanceAt: 'lastCursorAdvanceAt',
lastFullSyncAt: 'lastFullSyncAt',
errorText: 'errorText'
} as const
export type EmailIntegrationSyncCursorScalarFieldEnum = (typeof EmailIntegrationSyncCursorScalarFieldEnum)[keyof typeof EmailIntegrationSyncCursorScalarFieldEnum]
export const EmailIntegrationWebhookEventScalarFieldEnum = {
id: 'id',
receivedAt: 'receivedAt',
tenantId: 'tenantId',
mailboxId: 'mailboxId',
provider: 'provider',
notificationPayload: 'notificationPayload',
processingStatus: 'processingStatus',
processingErrorText: 'processingErrorText',
processedAt: 'processedAt',
derivedMessageIds: 'derivedMessageIds'
} as const
export type EmailIntegrationWebhookEventScalarFieldEnum = (typeof EmailIntegrationWebhookEventScalarFieldEnum)[keyof typeof EmailIntegrationWebhookEventScalarFieldEnum]
export const TenantInboundAddressScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
address: 'address',
localPart: 'localPart',
fullAddress: 'fullAddress',
purpose: 'purpose',
enabled: 'enabled',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type TenantInboundAddressScalarFieldEnum = (typeof TenantInboundAddressScalarFieldEnum)[keyof typeof TenantInboundAddressScalarFieldEnum]
export const EmailScalarFieldEnum = {
id: 'id',
tenantInboundAddressId: 'tenantInboundAddressId',
messageId: 'messageId',
type: 'type',
date: 'date',
subject: 'subject',
fromEmail: 'fromEmail',
fromName: 'fromName',
toEmail: 'toEmail',
toName: 'toName',
textBody: 'textBody',
htmlBody: 'htmlBody',
purpose: 'purpose',
deliveryStatus: 'deliveryStatus',
relatedKontaktId: 'relatedKontaktId',
relatedProjektId: 'relatedProjektId'
} as const
export type EmailScalarFieldEnum = (typeof EmailScalarFieldEnum)[keyof typeof EmailScalarFieldEnum]
export const EmailReadScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
emailId: 'emailId',
userId: 'userId'
} as const
export type EmailReadScalarFieldEnum = (typeof EmailReadScalarFieldEnum)[keyof typeof EmailReadScalarFieldEnum]
export const EmailCcScalarFieldEnum = {
id: 'id',
emailId: 'emailId',
toEmail: 'toEmail',
toName: 'toName'
} as const
export type EmailCcScalarFieldEnum = (typeof EmailCcScalarFieldEnum)[keyof typeof EmailCcScalarFieldEnum]
export const EmailAttachmentScalarFieldEnum = {
id: 'id',
emailId: 'emailId',
name: 'name',
type: 'type',
length: 'length',
content: 'content',
publicUrl: 'publicUrl',
storageBucket: 'storageBucket',
storageProvider: 'storageProvider'
} as const
export type EmailAttachmentScalarFieldEnum = (typeof EmailAttachmentScalarFieldEnum)[keyof typeof EmailAttachmentScalarFieldEnum]
export const EmailSenderScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
provider: 'provider',
stream: 'stream',
apiKey: 'apiKey',
apiSecret: 'apiSecret',
fromEmail: 'fromEmail',
fromName: 'fromName',
replyToEmail: 'replyToEmail',
isDefault: 'isDefault',
isDemoData: 'isDemoData',
sendingDomainId: 'sendingDomainId'
} as const
export type EmailSenderScalarFieldEnum = (typeof EmailSenderScalarFieldEnum)[keyof typeof EmailSenderScalarFieldEnum]
export const CampaignScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
emailSenderId: 'emailSenderId',
name: 'name',
subject: 'subject',
htmlBody: 'htmlBody',
textBody: 'textBody',
status: 'status',
track: 'track',
sentAt: 'sentAt',
recipientSegmentId: 'recipientSegmentId',
scheduledAt: 'scheduledAt',
timezone: 'timezone',
previewText: 'previewText',
footerHtml: 'footerHtml',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type CampaignScalarFieldEnum = (typeof CampaignScalarFieldEnum)[keyof typeof CampaignScalarFieldEnum]
export const OutboundEmailScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
campaignId: 'campaignId',
kontaktId: 'kontaktId',
campaignVariantId: 'campaignVariantId',
unsubscribeToken: 'unsubscribeToken',
trackingToken: 'trackingToken',
email: 'email',
fromSenderId: 'fromSenderId',
isPreview: 'isPreview',
error: 'error',
sentAt: 'sentAt',
deliveredAt: 'deliveredAt',
bouncedAt: 'bouncedAt',
spamComplainedAt: 'spamComplainedAt',
unsubscribedAt: 'unsubscribedAt'
} as const
export type OutboundEmailScalarFieldEnum = (typeof OutboundEmailScalarFieldEnum)[keyof typeof OutboundEmailScalarFieldEnum]
export const OutboundEmailOpenScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
firstOpen: 'firstOpen',
ipHash: 'ipHash',
outboundEmailId: 'outboundEmailId'
} as const
export type OutboundEmailOpenScalarFieldEnum = (typeof OutboundEmailOpenScalarFieldEnum)[keyof typeof OutboundEmailOpenScalarFieldEnum]
export const OutboundEmailClickScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
link: 'link',
ipHash: 'ipHash',
outboundEmailId: 'outboundEmailId'
} as const
export type OutboundEmailClickScalarFieldEnum = (typeof OutboundEmailClickScalarFieldEnum)[keyof typeof OutboundEmailClickScalarFieldEnum]
export const TenantSendingDomainScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
domain: 'domain',
dkimSelector: 'dkimSelector',
dkimRecord: 'dkimRecord',
spfRecord: 'spfRecord',
dmarcRecord: 'dmarcRecord',
dkimPrivateKeyCiphertext: 'dkimPrivateKeyCiphertext',
verificationStatus: 'verificationStatus',
mailjetDnsId: 'mailjetDnsId',
firstProbeAt: 'firstProbeAt',
lastProbedAt: 'lastProbedAt',
lastError: 'lastError',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type TenantSendingDomainScalarFieldEnum = (typeof TenantSendingDomainScalarFieldEnum)[keyof typeof TenantSendingDomainScalarFieldEnum]
export const EmailSuppressionListScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
emailAddress: 'emailAddress',
reason: 'reason',
detail: 'detail'
} as const
export type EmailSuppressionListScalarFieldEnum = (typeof EmailSuppressionListScalarFieldEnum)[keyof typeof EmailSuppressionListScalarFieldEnum]
export const EmailTemplateScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
subject: 'subject',
htmlBody: 'htmlBody',
isDefault: 'isDefault',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmailTemplateScalarFieldEnum = (typeof EmailTemplateScalarFieldEnum)[keyof typeof EmailTemplateScalarFieldEnum]
export const RecipientSegmentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
entityType: 'entityType',
filterDefinition: 'filterDefinition',
isStaticSnapshot: 'isStaticSnapshot',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type RecipientSegmentScalarFieldEnum = (typeof RecipientSegmentScalarFieldEnum)[keyof typeof RecipientSegmentScalarFieldEnum]
export const SegmentSnapshotMemberScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
segmentId: 'segmentId',
kontaktId: 'kontaktId'
} as const
export type SegmentSnapshotMemberScalarFieldEnum = (typeof SegmentSnapshotMemberScalarFieldEnum)[keyof typeof SegmentSnapshotMemberScalarFieldEnum]
export const CampaignVariantScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
campaignId: 'campaignId',
label: 'label',
subject: 'subject',
htmlBody: 'htmlBody',
textBody: 'textBody',
weightPercent: 'weightPercent',
deliveredCount: 'deliveredCount',
openedCount: 'openedCount',
clickedCount: 'clickedCount'
} as const
export type CampaignVariantScalarFieldEnum = (typeof CampaignVariantScalarFieldEnum)[keyof typeof CampaignVariantScalarFieldEnum]
export const KontaktMarketingConsentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
kontaktId: 'kontaktId',
status: 'status',
optInSource: 'optInSource',
optInAt: 'optInAt',
doubleOptInToken: 'doubleOptInToken',
confirmedAt: 'confirmedAt',
unsubscribedAt: 'unsubscribedAt'
} as const
export type KontaktMarketingConsentScalarFieldEnum = (typeof KontaktMarketingConsentScalarFieldEnum)[keyof typeof KontaktMarketingConsentScalarFieldEnum]
export const UnsubscribeScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
kontaktId: 'kontaktId',
scope: 'scope',
campaignId: 'campaignId',
reason: 'reason'
} as const
export type UnsubscribeScalarFieldEnum = (typeof UnsubscribeScalarFieldEnum)[keyof typeof UnsubscribeScalarFieldEnum]
export const EmailSequenceScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
name: 'name',
description: 'description',
triggerEvent: 'triggerEvent',
stepsJson: 'stepsJson',
conditionsJson: 'conditionsJson',
isEnabled: 'isEnabled',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type EmailSequenceScalarFieldEnum = (typeof EmailSequenceScalarFieldEnum)[keyof typeof EmailSequenceScalarFieldEnum]
export const EmailSequenceRunScalarFieldEnum = {
id: 'id',
sequenceId: 'sequenceId',
leadId: 'leadId',
tenantId: 'tenantId',
triggerEventId: 'triggerEventId',
status: 'status',
startedAt: 'startedAt',
completedAt: 'completedAt',
stepStateJson: 'stepStateJson'
} as const
export type EmailSequenceRunScalarFieldEnum = (typeof EmailSequenceRunScalarFieldEnum)[keyof typeof EmailSequenceRunScalarFieldEnum]
export const EmailSequenceStepDeliveryScalarFieldEnum = {
id: 'id',
runId: 'runId',
stepIndex: 'stepIndex',
status: 'status',
scheduledAt: 'scheduledAt',
sentAt: 'sentAt',
openedAt: 'openedAt',
clickedAt: 'clickedAt',
bouncedAt: 'bouncedAt',
providerMessageId: 'providerMessageId',
errorMessage: 'errorMessage'
} as const
export type EmailSequenceStepDeliveryScalarFieldEnum = (typeof EmailSequenceStepDeliveryScalarFieldEnum)[keyof typeof EmailSequenceStepDeliveryScalarFieldEnum]
export const EntityLinkScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
sourceType: 'sourceType',
sourceId: 'sourceId',
targetType: 'targetType',
targetId: 'targetId',
linkRole: 'linkRole'
} as const
export type EntityLinkScalarFieldEnum = (typeof EntityLinkScalarFieldEnum)[keyof typeof EntityLinkScalarFieldEnum]
export const FeatureFlagScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
key: 'key',
scope: 'scope',
tenantId: 'tenantId',
userId: 'userId',
name: 'name',
description: 'description',
enabled: 'enabled',
rules: 'rules',
variants: 'variants',
enabledFrom: 'enabledFrom',
enabledUntil: 'enabledUntil',
parentFlagId: 'parentFlagId'
} as const
export type FeatureFlagScalarFieldEnum = (typeof FeatureFlagScalarFieldEnum)[keyof typeof FeatureFlagScalarFieldEnum]
export const FeatureFlagFilterScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
featureFlagId: 'featureFlagId',
type: 'type',
value: 'value',
action: 'action'
} as const
export type FeatureFlagFilterScalarFieldEnum = (typeof FeatureFlagFilterScalarFieldEnum)[keyof typeof FeatureFlagFilterScalarFieldEnum]
export const FeatureFlagAuditScalarFieldEnum = {
id: 'id',
flagId: 'flagId',
actorUserId: 'actorUserId',
action: 'action',
oldValue: 'oldValue',
newValue: 'newValue',
createdAt: 'createdAt'
} as const
export type FeatureFlagAuditScalarFieldEnum = (typeof FeatureFlagAuditScalarFieldEnum)[keyof typeof FeatureFlagAuditScalarFieldEnum]
export const FileScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
displayName: 'displayName',
mimeType: 'mimeType',
sizeBytes: 'sizeBytes',
storageKey: 'storageKey',
checksumSha256: 'checksumSha256',
previewStatus: 'previewStatus',
previewStorageKey: 'previewStorageKey',
thumbnailStorageKey: 'thumbnailStorageKey',
scanStatus: 'scanStatus',
assignedToUserId: 'assignedToUserId',
tags: 'tags',
notes: 'notes',
source: 'source',
createdByPortalUserId: 'createdByPortalUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type FileScalarFieldEnum = (typeof FileScalarFieldEnum)[keyof typeof FileScalarFieldEnum]
export const FileEntityLinkScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
fileId: 'fileId',
entityType: 'entityType',
entityId: 'entityId',
linkRole: 'linkRole'
} as const
export type FileEntityLinkScalarFieldEnum = (typeof FileEntityLinkScalarFieldEnum)[keyof typeof FileEntityLinkScalarFieldEnum]
export const FileUploadScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
originalFilename: 'originalFilename',
totalSizeBytes: 'totalSizeBytes',
mimeType: 'mimeType',
totalChunks: 'totalChunks',
receivedChunks: 'receivedChunks',
status: 'status',
targetFileId: 'targetFileId',
expiresAt: 'expiresAt',
failureReason: 'failureReason'
} as const
export type FileUploadScalarFieldEnum = (typeof FileUploadScalarFieldEnum)[keyof typeof FileUploadScalarFieldEnum]
export const FileUploadChunkScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
uploadId: 'uploadId',
chunkIndex: 'chunkIndex',
storageKey: 'storageKey',
sizeBytes: 'sizeBytes',
checksumSha256: 'checksumSha256',
receivedAt: 'receivedAt'
} as const
export type FileUploadChunkScalarFieldEnum = (typeof FileUploadChunkScalarFieldEnum)[keyof typeof FileUploadChunkScalarFieldEnum]
export const FormScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
key: 'key',
slug: 'slug',
name: 'name',
subtype: 'subtype',
status: 'status',
createdByUserId: 'createdByUserId',
publishedAt: 'publishedAt',
isPublic: 'isPublic',
isDemoData: 'isDemoData',
definition: 'definition',
theme: 'theme',
targetType: 'targetType',
targetEntityId: 'targetEntityId',
fieldMapping: 'fieldMapping',
allowedOrigins: 'allowedOrigins',
notifyEmails: 'notifyEmails',
webhookUrl: 'webhookUrl',
config: 'config',
isEnabled: 'isEnabled',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type FormScalarFieldEnum = (typeof FormScalarFieldEnum)[keyof typeof FormScalarFieldEnum]
export const FormSubmissionScalarFieldEnum = {
id: 'id',
formId: 'formId',
tenantId: 'tenantId',
payload: 'payload',
sourceOrigin: 'sourceOrigin',
ipHash: 'ipHash',
userAgent: 'userAgent',
status: 'status',
result: 'result',
linkedEntityType: 'linkedEntityType',
linkedEntityId: 'linkedEntityId',
idempotencyKey: 'idempotencyKey',
gdprAccepted: 'gdprAccepted',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type FormSubmissionScalarFieldEnum = (typeof FormSubmissionScalarFieldEnum)[keyof typeof FormSubmissionScalarFieldEnum]
export const FormFieldScalarFieldEnum = {
id: 'id',
formId: 'formId',
tenantId: 'tenantId',
fieldKey: 'fieldKey',
fieldType: 'fieldType',
label: 'label',
helpText: 'helpText',
placeholder: 'placeholder',
required: 'required',
position: 'position',
options: 'options',
validationRules: 'validationRules',
conditionalLogic: 'conditionalLogic',
isSystem: 'isSystem',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type FormFieldScalarFieldEnum = (typeof FormFieldScalarFieldEnum)[keyof typeof FormFieldScalarFieldEnum]
export const FormFileScalarFieldEnum = {
id: 'id',
formId: 'formId',
submissionId: 'submissionId',
tenantId: 'tenantId',
fieldKey: 'fieldKey',
fileId: 'fileId',
kind: 'kind',
createdAt: 'createdAt'
} as const
export type FormFileScalarFieldEnum = (typeof FormFileScalarFieldEnum)[keyof typeof FormFileScalarFieldEnum]
export const FormActionScalarFieldEnum = {
id: 'id',
formId: 'formId',
tenantId: 'tenantId',
actionType: 'actionType',
name: 'name',
position: 'position',
enabled: 'enabled',
fieldMapping: 'fieldMapping',
actionConfig: 'actionConfig',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type FormActionScalarFieldEnum = (typeof FormActionScalarFieldEnum)[keyof typeof FormActionScalarFieldEnum]
export const FormActionLogScalarFieldEnum = {
id: 'id',
formActionId: 'formActionId',
submissionId: 'submissionId',
formId: 'formId',
tenantId: 'tenantId',
actionType: 'actionType',
status: 'status',
attempt: 'attempt',
inputSnapshot: 'inputSnapshot',
outputSnapshot: 'outputSnapshot',
errorMessage: 'errorMessage',
targetType: 'targetType',
targetId: 'targetId',
idempotencyKey: 'idempotencyKey',
rerunOfLogId: 'rerunOfLogId',
startedAt: 'startedAt',
finishedAt: 'finishedAt',
createdAt: 'createdAt'
} as const
export type FormActionLogScalarFieldEnum = (typeof FormActionLogScalarFieldEnum)[keyof typeof FormActionLogScalarFieldEnum]
export const GdprExportJobScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
requestedByUserId: 'requestedByUserId',
targetUserId: 'targetUserId',
scope: 'scope',
status: 'status',
progressPercent: 'progressPercent',
resultFileId: 'resultFileId',
resultBucket: 'resultBucket',
resultKey: 'resultKey',
resultSizeBytes: 'resultSizeBytes',
resultExpiresAt: 'resultExpiresAt',
downloadCount: 'downloadCount',
lastDownloadedAt: 'lastDownloadedAt',
errorMessage: 'errorMessage',
processingStartedAt: 'processingStartedAt',
processingFinishedAt: 'processingFinishedAt'
} as const
export type GdprExportJobScalarFieldEnum = (typeof GdprExportJobScalarFieldEnum)[keyof typeof GdprExportJobScalarFieldEnum]
export const TenantDeletionRequestScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
requestedByUserId: 'requestedByUserId',
reason: 'reason',
reasonText: 'reasonText',
slugConfirmPhrase: 'slugConfirmPhrase',
status: 'status',
gracePeriodEndsAt: 'gracePeriodEndsAt',
cancelledAt: 'cancelledAt',
cancelledByUserId: 'cancelledByUserId',
hardDeleteStartedAt: 'hardDeleteStartedAt',
hardDeleteEndedAt: 'hardDeleteEndedAt',
errorMessage: 'errorMessage'
} as const
export type TenantDeletionRequestScalarFieldEnum = (typeof TenantDeletionRequestScalarFieldEnum)[keyof typeof TenantDeletionRequestScalarFieldEnum]
export const AvvAcceptanceScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
acceptedByUserId: 'acceptedByUserId',
acceptedIp: 'acceptedIp',
acceptedUserAgent: 'acceptedUserAgent',
avvVersion: 'avvVersion',
pdfFileId: 'pdfFileId',
signerName: 'signerName',
signerRole: 'signerRole'
} as const
export type AvvAcceptanceScalarFieldEnum = (typeof AvvAcceptanceScalarFieldEnum)[keyof typeof AvvAcceptanceScalarFieldEnum]
export const SubprocessorScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
purposeText: 'purposeText',
country: 'country',
isEuEea: 'isEuEea',
dataCategories: 'dataCategories',
dpaUrl: 'dpaUrl',
activeSince: 'activeSince',
archivedAt: 'archivedAt'
} as const
export type SubprocessorScalarFieldEnum = (typeof SubprocessorScalarFieldEnum)[keyof typeof SubprocessorScalarFieldEnum]
export const FeedbackScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
message: 'message',
fromUrl: 'fromUrl'
} as const
export type FeedbackScalarFieldEnum = (typeof FeedbackScalarFieldEnum)[keyof typeof FeedbackScalarFieldEnum]
export const SupportTicketScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
source: 'source',
status: 'status',
priority: 'priority',
subject: 'subject',
message: 'message',
fromEmail: 'fromEmail',
fromUrl: 'fromUrl',
inboundMessageId: 'inboundMessageId',
assignedToUserId: 'assignedToUserId'
} as const
export type SupportTicketScalarFieldEnum = (typeof SupportTicketScalarFieldEnum)[keyof typeof SupportTicketScalarFieldEnum]
export const HrEmployeeProfileScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
personalNumber: 'personalNumber',
hireDate: 'hireDate',
position: 'position',
team: 'team',
locationId: 'locationId',
managerUserId: 'managerUserId',
emergencyContactCiphertext: 'emergencyContactCiphertext',
isDemoData: 'isDemoData'
} as const
export type HrEmployeeProfileScalarFieldEnum = (typeof HrEmployeeProfileScalarFieldEnum)[keyof typeof HrEmployeeProfileScalarFieldEnum]
export const HrLocationScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
addressLine1: 'addressLine1',
addressLine2: 'addressLine2',
postalCode: 'postalCode',
city: 'city',
country: 'country',
phone: 'phone',
latitude: 'latitude',
longitude: 'longitude',
imageFileId: 'imageFileId',
description: 'description',
isDefault: 'isDefault',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrLocationScalarFieldEnum = (typeof HrLocationScalarFieldEnum)[keyof typeof HrLocationScalarFieldEnum]
export const HrEmployeeDocumentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
employeeUserId: 'employeeUserId',
uploadedByUserId: 'uploadedByUserId',
title: 'title',
documentKind: 'documentKind',
fileId: 'fileId',
visibility: 'visibility',
uploadedByOffice: 'uploadedByOffice',
validUntil: 'validUntil',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrEmployeeDocumentScalarFieldEnum = (typeof HrEmployeeDocumentScalarFieldEnum)[keyof typeof HrEmployeeDocumentScalarFieldEnum]
export const HrResourceScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
title: 'title',
kind: 'kind',
url: 'url',
fileId: 'fileId',
category: 'category',
audience: 'audience',
sortOrder: 'sortOrder',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrResourceScalarFieldEnum = (typeof HrResourceScalarFieldEnum)[keyof typeof HrResourceScalarFieldEnum]
export const HrQuickLinkScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
title: 'title',
url: 'url',
icon: 'icon',
audience: 'audience',
sortOrder: 'sortOrder',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrQuickLinkScalarFieldEnum = (typeof HrQuickLinkScalarFieldEnum)[keyof typeof HrQuickLinkScalarFieldEnum]
export const EmployeePasswordSafeVaultScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
description: 'description',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmployeePasswordSafeVaultScalarFieldEnum = (typeof EmployeePasswordSafeVaultScalarFieldEnum)[keyof typeof EmployeePasswordSafeVaultScalarFieldEnum]
export const EmployeePasswordSafeEntryScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
vaultId: 'vaultId',
title: 'title',
tags: 'tags',
url: 'url',
usernameCiphertext: 'usernameCiphertext',
passwordCiphertext: 'passwordCiphertext',
notesCiphertext: 'notesCiphertext',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmployeePasswordSafeEntryScalarFieldEnum = (typeof EmployeePasswordSafeEntryScalarFieldEnum)[keyof typeof EmployeePasswordSafeEntryScalarFieldEnum]
export const EmployeePasswordSafeAccessScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
vaultId: 'vaultId',
userId: 'userId',
permissionLevel: 'permissionLevel',
grantedByUserId: 'grantedByUserId'
} as const
export type EmployeePasswordSafeAccessScalarFieldEnum = (typeof EmployeePasswordSafeAccessScalarFieldEnum)[keyof typeof EmployeePasswordSafeAccessScalarFieldEnum]
export const EmployeeVacationRequestScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
employeeUserId: 'employeeUserId',
requestKind: 'requestKind',
startDate: 'startDate',
endDate: 'endDate',
note: 'note',
status: 'status',
assignedApproverUserId: 'assignedApproverUserId',
clarificationNote: 'clarificationNote',
decidedByUserId: 'decidedByUserId',
decidedAt: 'decidedAt',
decisionNote: 'decisionNote',
withdrawnAt: 'withdrawnAt',
calendarEventId: 'calendarEventId',
isDemoData: 'isDemoData'
} as const
export type EmployeeVacationRequestScalarFieldEnum = (typeof EmployeeVacationRequestScalarFieldEnum)[keyof typeof EmployeeVacationRequestScalarFieldEnum]
export const EmployeeSickLeaveReportScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
employeeUserId: 'employeeUserId',
reportedByUserId: 'reportedByUserId',
startDate: 'startDate',
expectedReturnDate: 'expectedReturnDate',
returnDate: 'returnDate',
certificateRefCiphertext: 'certificateRefCiphertext',
status: 'status',
note: 'note',
calendarEventId: 'calendarEventId',
isDemoData: 'isDemoData'
} as const
export type EmployeeSickLeaveReportScalarFieldEnum = (typeof EmployeeSickLeaveReportScalarFieldEnum)[keyof typeof EmployeeSickLeaveReportScalarFieldEnum]
export const HrAnnouncementScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
authorUserId: 'authorUserId',
title: 'title',
body: 'body',
audienceKind: 'audienceKind',
audienceRef: 'audienceRef',
requiresAcknowledgement: 'requiresAcknowledgement',
pinnedAt: 'pinnedAt',
publishAt: 'publishAt',
expiresAt: 'expiresAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrAnnouncementScalarFieldEnum = (typeof HrAnnouncementScalarFieldEnum)[keyof typeof HrAnnouncementScalarFieldEnum]
export const HrAnnouncementReadScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
announcementId: 'announcementId',
userId: 'userId',
acknowledgedAt: 'acknowledgedAt'
} as const
export type HrAnnouncementReadScalarFieldEnum = (typeof HrAnnouncementReadScalarFieldEnum)[keyof typeof HrAnnouncementReadScalarFieldEnum]
export const HrAnnouncementReactionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
announcementId: 'announcementId',
userId: 'userId',
reaction: 'reaction'
} as const
export type HrAnnouncementReactionScalarFieldEnum = (typeof HrAnnouncementReactionScalarFieldEnum)[keyof typeof HrAnnouncementReactionScalarFieldEnum]
export const HrAnnouncementCommentScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
announcementId: 'announcementId',
userId: 'userId',
body: 'body',
archivedAt: 'archivedAt'
} as const
export type HrAnnouncementCommentScalarFieldEnum = (typeof HrAnnouncementCommentScalarFieldEnum)[keyof typeof HrAnnouncementCommentScalarFieldEnum]
export const EmployeePayslipScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
employeeUserId: 'employeeUserId',
uploadedByUserId: 'uploadedByUserId',
periodYear: 'periodYear',
periodMonth: 'periodMonth',
fileId: 'fileId',
isRead: 'isRead',
readAt: 'readAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmployeePayslipScalarFieldEnum = (typeof EmployeePayslipScalarFieldEnum)[keyof typeof EmployeePayslipScalarFieldEnum]
export const EmployeeUploadReminderScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
title: 'title',
documentKind: 'documentKind',
cadenceKind: 'cadenceKind',
intervalMonths: 'intervalMonths',
audienceKind: 'audienceKind',
audienceRef: 'audienceRef',
mandatory: 'mandatory',
escalateToManager: 'escalateToManager',
linkedFormId: 'linkedFormId',
dueAt: 'dueAt',
status: 'status',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type EmployeeUploadReminderScalarFieldEnum = (typeof EmployeeUploadReminderScalarFieldEnum)[keyof typeof EmployeeUploadReminderScalarFieldEnum]
export const EmployeeUploadReminderDispatchScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
reminderId: 'reminderId',
employeeUserId: 'employeeUserId',
dueAt: 'dueAt',
status: 'status',
sentAt: 'sentAt',
acknowledgedAt: 'acknowledgedAt',
escalatedAt: 'escalatedAt'
} as const
export type EmployeeUploadReminderDispatchScalarFieldEnum = (typeof EmployeeUploadReminderDispatchScalarFieldEnum)[keyof typeof EmployeeUploadReminderDispatchScalarFieldEnum]
export const HrRequestTemplateScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
title: 'title',
requestKind: 'requestKind',
description: 'description',
defaultApproverUserId: 'defaultApproverUserId',
linkedFormId: 'linkedFormId',
isActive: 'isActive',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrRequestTemplateScalarFieldEnum = (typeof HrRequestTemplateScalarFieldEnum)[keyof typeof HrRequestTemplateScalarFieldEnum]
export const HrRequestScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
employeeUserId: 'employeeUserId',
templateId: 'templateId',
requestKind: 'requestKind',
title: 'title',
details: 'details',
formSubmissionId: 'formSubmissionId',
status: 'status',
assignedApproverUserId: 'assignedApproverUserId',
clarificationNote: 'clarificationNote',
decidedByUserId: 'decidedByUserId',
decidedAt: 'decidedAt',
decisionNote: 'decisionNote',
withdrawnAt: 'withdrawnAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrRequestScalarFieldEnum = (typeof HrRequestScalarFieldEnum)[keyof typeof HrRequestScalarFieldEnum]
export const HrSurveyScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
authorUserId: 'authorUserId',
title: 'title',
description: 'description',
isAnonymous: 'isAnonymous',
resultVisibility: 'resultVisibility',
audienceKind: 'audienceKind',
audienceRef: 'audienceRef',
status: 'status',
opensAt: 'opensAt',
closesAt: 'closesAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type HrSurveyScalarFieldEnum = (typeof HrSurveyScalarFieldEnum)[keyof typeof HrSurveyScalarFieldEnum]
export const HrSurveyItemScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
surveyId: 'surveyId',
itemType: 'itemType',
prompt: 'prompt',
required: 'required',
options: 'options',
sortOrder: 'sortOrder'
} as const
export type HrSurveyItemScalarFieldEnum = (typeof HrSurveyItemScalarFieldEnum)[keyof typeof HrSurveyItemScalarFieldEnum]
export const HrSurveySubmissionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
surveyId: 'surveyId',
submitterUserId: 'submitterUserId',
submitterHash: 'submitterHash',
answers: 'answers'
} as const
export type HrSurveySubmissionScalarFieldEnum = (typeof HrSurveySubmissionScalarFieldEnum)[keyof typeof HrSurveySubmissionScalarFieldEnum]
export const ImportJobScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
requestedByUserId: 'requestedByUserId',
importType: 'importType',
format: 'format',
status: 'status',
requestId: 'requestId',
attemptsMade: 'attemptsMade',
sourceBucket: 'sourceBucket',
sourceKey: 'sourceKey',
fileName: 'fileName',
contentType: 'contentType',
rowCount: 'rowCount',
acceptedRows: 'acceptedRows',
rejectedRows: 'rejectedRows',
errorName: 'errorName',
errorMessage: 'errorMessage',
errorReportBucket: 'errorReportBucket',
errorReportKey: 'errorReportKey',
startedAt: 'startedAt',
finishedAt: 'finishedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ImportJobScalarFieldEnum = (typeof ImportJobScalarFieldEnum)[keyof typeof ImportJobScalarFieldEnum]
export const KnowledgeBaseScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
ownerKey: 'ownerKey',
basePath: 'basePath',
slug: 'slug',
title: 'title',
description: 'description',
defaultLanguage: 'defaultLanguage',
layout: 'layout',
color: 'color',
enabled: 'enabled',
languages: 'languages',
links: 'links',
logo: 'logo',
seoImage: 'seoImage'
} as const
export type KnowledgeBaseScalarFieldEnum = (typeof KnowledgeBaseScalarFieldEnum)[keyof typeof KnowledgeBaseScalarFieldEnum]
export const KnowledgeBaseCategoryScalarFieldEnum = {
id: 'id',
knowledgeBaseId: 'knowledgeBaseId',
slug: 'slug',
order: 'order',
title: 'title',
description: 'description',
icon: 'icon',
language: 'language',
seoImage: 'seoImage'
} as const
export type KnowledgeBaseCategoryScalarFieldEnum = (typeof KnowledgeBaseCategoryScalarFieldEnum)[keyof typeof KnowledgeBaseCategoryScalarFieldEnum]
export const KnowledgeBaseCategorySectionScalarFieldEnum = {
id: 'id',
categoryId: 'categoryId',
order: 'order',
title: 'title',
description: 'description'
} as const
export type KnowledgeBaseCategorySectionScalarFieldEnum = (typeof KnowledgeBaseCategorySectionScalarFieldEnum)[keyof typeof KnowledgeBaseCategorySectionScalarFieldEnum]
export const KnowledgeBaseArticleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
knowledgeBaseId: 'knowledgeBaseId',
categoryId: 'categoryId',
sectionId: 'sectionId',
slug: 'slug',
title: 'title',
description: 'description',
order: 'order',
contentDraft: 'contentDraft',
contentPublished: 'contentPublished',
contentPublishedAsText: 'contentPublishedAsText',
contentType: 'contentType',
language: 'language',
featuredOrder: 'featuredOrder',
seoImage: 'seoImage',
publishedAt: 'publishedAt',
relatedInArticleId: 'relatedInArticleId',
createdByUserId: 'createdByUserId'
} as const
export type KnowledgeBaseArticleScalarFieldEnum = (typeof KnowledgeBaseArticleScalarFieldEnum)[keyof typeof KnowledgeBaseArticleScalarFieldEnum]
export const KnowledgeBaseRelatedArticleScalarFieldEnum = {
id: 'id',
articleId: 'articleId',
relatedArticleId: 'relatedArticleId'
} as const
export type KnowledgeBaseRelatedArticleScalarFieldEnum = (typeof KnowledgeBaseRelatedArticleScalarFieldEnum)[keyof typeof KnowledgeBaseRelatedArticleScalarFieldEnum]
export const KnowledgeBaseViewsScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
knowledgeBaseId: 'knowledgeBaseId',
userAnalyticsId: 'userAnalyticsId'
} as const
export type KnowledgeBaseViewsScalarFieldEnum = (typeof KnowledgeBaseViewsScalarFieldEnum)[keyof typeof KnowledgeBaseViewsScalarFieldEnum]
export const KnowledgeBaseArticleViewsScalarFieldEnum = {
knowledgeBaseArticleId: 'knowledgeBaseArticleId',
userAnalyticsId: 'userAnalyticsId'
} as const
export type KnowledgeBaseArticleViewsScalarFieldEnum = (typeof KnowledgeBaseArticleViewsScalarFieldEnum)[keyof typeof KnowledgeBaseArticleViewsScalarFieldEnum]
export const KnowledgeBaseArticleUpvotesScalarFieldEnum = {
createdAt: 'createdAt',
knowledgeBaseArticleId: 'knowledgeBaseArticleId',
userAnalyticsId: 'userAnalyticsId'
} as const
export type KnowledgeBaseArticleUpvotesScalarFieldEnum = (typeof KnowledgeBaseArticleUpvotesScalarFieldEnum)[keyof typeof KnowledgeBaseArticleUpvotesScalarFieldEnum]
export const KnowledgeBaseArticleDownvotesScalarFieldEnum = {
createdAt: 'createdAt',
knowledgeBaseArticleId: 'knowledgeBaseArticleId',
userAnalyticsId: 'userAnalyticsId'
} as const
export type KnowledgeBaseArticleDownvotesScalarFieldEnum = (typeof KnowledgeBaseArticleDownvotesScalarFieldEnum)[keyof typeof KnowledgeBaseArticleDownvotesScalarFieldEnum]
export const InboxLeadScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
zustaendigerUserId: 'zustaendigerUserId',
quelle: 'quelle',
quelleDetail: 'quelleDetail',
sourceId: 'sourceId',
sourceOrigin: 'sourceOrigin',
submitterIpHash: 'submitterIpHash',
status: 'status',
weiterverarbeitungFreigabe: 'weiterverarbeitungFreigabe',
vorname: 'vorname',
nachname: 'nachname',
email: 'email',
telefon: 'telefon',
message: 'message',
rohdaten: 'rohdaten',
spamScore: 'spamScore',
spamReason: 'spamReason',
isQuarantined: 'isQuarantined',
konvertiertProjektId: 'konvertiertProjektId',
verknuepfterKontaktId: 'verknuepfterKontaktId',
convertedAt: 'convertedAt',
lostAt: 'lostAt',
spamMarkedAt: 'spamMarkedAt',
autoDeleteAt: 'autoDeleteAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type InboxLeadScalarFieldEnum = (typeof InboxLeadScalarFieldEnum)[keyof typeof InboxLeadScalarFieldEnum]
export const LeadSourceScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
type: 'type',
key: 'key',
name: 'name',
displayLabel: 'displayLabel',
defaultZustaendigerUserId: 'defaultZustaendigerUserId',
defaultTags: 'defaultTags',
webhookTokenHash: 'webhookTokenHash',
pausedAt: 'pausedAt',
archivedAt: 'archivedAt',
isDemoData: 'isDemoData'
} as const
export type LeadSourceScalarFieldEnum = (typeof LeadSourceScalarFieldEnum)[keyof typeof LeadSourceScalarFieldEnum]
export const LeadAntiSpamConfigScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
perSourcePerHourLimit: 'perSourcePerHourLimit',
perIpPerHourLimit: 'perIpPerHourLimit',
anomalySpikeFactor: 'anomalySpikeFactor',
mode: 'mode',
disposableDomainEnabled: 'disposableDomainEnabled',
honeypotEnabled: 'honeypotEnabled',
fastSubmitEnabled: 'fastSubmitEnabled',
lostAutoDeleteDays: 'lostAutoDeleteDays',
isDemoData: 'isDemoData'
} as const
export type LeadAntiSpamConfigScalarFieldEnum = (typeof LeadAntiSpamConfigScalarFieldEnum)[keyof typeof LeadAntiSpamConfigScalarFieldEnum]
export const LeadScalarFieldEnum = {
id: 'id',
email: 'email',
firstName: 'firstName',
lastName: 'lastName',
phone: 'phone',
company: 'company',
source: 'source',
status: 'status',
utmSource: 'utmSource',
utmMedium: 'utmMedium',
utmCampaign: 'utmCampaign',
utmTerm: 'utmTerm',
utmContent: 'utmContent',
gclid: 'gclid',
fbclid: 'fbclid',
referrer: 'referrer',
landingPage: 'landingPage',
firstSeenAt: 'firstSeenAt',
lastTouchAt: 'lastTouchAt',
score: 'score',
notes: 'notes',
convertedToTenantId: 'convertedToTenantId',
convertedAt: 'convertedAt',
lastIpHash: 'lastIpHash',
userAgent: 'userAgent',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type LeadScalarFieldEnum = (typeof LeadScalarFieldEnum)[keyof typeof LeadScalarFieldEnum]
export const LeadEventScalarFieldEnum = {
id: 'id',
leadId: 'leadId',
type: 'type',
actorId: 'actorId',
payload: 'payload',
createdAt: 'createdAt'
} as const
export type LeadEventScalarFieldEnum = (typeof LeadEventScalarFieldEnum)[keyof typeof LeadEventScalarFieldEnum]
export const TenantAcquisitionScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
leadId: 'leadId',
source: 'source',
utmSource: 'utmSource',
utmMedium: 'utmMedium',
utmCampaign: 'utmCampaign',
utmTerm: 'utmTerm',
utmContent: 'utmContent',
gclid: 'gclid',
fbclid: 'fbclid',
referrer: 'referrer',
landingPage: 'landingPage',
capturedAt: 'capturedAt',
convertedAt: 'convertedAt',
conversionPath: 'conversionPath',
customFields: 'customFields',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type TenantAcquisitionScalarFieldEnum = (typeof TenantAcquisitionScalarFieldEnum)[keyof typeof TenantAcquisitionScalarFieldEnum]
export const MarketingIntegrationScalarFieldEnum = {
id: 'id',
type: 'type',
name: 'name',
configJson: 'configJson',
enabled: 'enabled',
triggerEvents: 'triggerEvents',
lastDeliveredAt: 'lastDeliveredAt',
lastError: 'lastError',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type MarketingIntegrationScalarFieldEnum = (typeof MarketingIntegrationScalarFieldEnum)[keyof typeof MarketingIntegrationScalarFieldEnum]
export const McpOAuthClientScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
clientId: 'clientId',
clientName: 'clientName',
redirectUris: 'redirectUris',
grantTypes: 'grantTypes',
scopes: 'scopes',
contacts: 'contacts',
metadata: 'metadata',
active: 'active'
} as const
export type McpOAuthClientScalarFieldEnum = (typeof McpOAuthClientScalarFieldEnum)[keyof typeof McpOAuthClientScalarFieldEnum]
export const McpOAuthAuthorizationCodeScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
clientId: 'clientId',
userId: 'userId',
tenantId: 'tenantId',
tenantSlug: 'tenantSlug',
codeHash: 'codeHash',
redirectUri: 'redirectUri',
scopes: 'scopes',
resource: 'resource',
codeChallenge: 'codeChallenge',
codeChallengeMethod: 'codeChallengeMethod',
expiresAt: 'expiresAt',
consumedAt: 'consumedAt'
} as const
export type McpOAuthAuthorizationCodeScalarFieldEnum = (typeof McpOAuthAuthorizationCodeScalarFieldEnum)[keyof typeof McpOAuthAuthorizationCodeScalarFieldEnum]
export const McpOAuthAccessTokenScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
clientId: 'clientId',
userId: 'userId',
tenantId: 'tenantId',
tenantSlug: 'tenantSlug',
tokenHash: 'tokenHash',
scopes: 'scopes',
resource: 'resource',
expiresAt: 'expiresAt',
revokedAt: 'revokedAt',
refreshTokenId: 'refreshTokenId'
} as const
export type McpOAuthAccessTokenScalarFieldEnum = (typeof McpOAuthAccessTokenScalarFieldEnum)[keyof typeof McpOAuthAccessTokenScalarFieldEnum]
export const McpOAuthRefreshTokenScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
rotatedAt: 'rotatedAt',
clientId: 'clientId',
userId: 'userId',
tenantId: 'tenantId',
tenantSlug: 'tenantSlug',
tokenHash: 'tokenHash',
scopes: 'scopes',
resource: 'resource',
expiresAt: 'expiresAt',
revokedAt: 'revokedAt'
} as const
export type McpOAuthRefreshTokenScalarFieldEnum = (typeof McpOAuthRefreshTokenScalarFieldEnum)[keyof typeof McpOAuthRefreshTokenScalarFieldEnum]
export const NotificationDeliveryScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
channel: 'channel',
category: 'category',
messageKey: 'messageKey',
sourceKey: 'sourceKey',
status: 'status',
attemptsMade: 'attemptsMade',
providerMessageId: 'providerMessageId',
lastError: 'lastError',
payloadMetadata: 'payloadMetadata',
sentAt: 'sentAt',
readAt: 'readAt'
} as const
export type NotificationDeliveryScalarFieldEnum = (typeof NotificationDeliveryScalarFieldEnum)[keyof typeof NotificationDeliveryScalarFieldEnum]
export const UserNotificationPreferenceScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
userId: 'userId',
channel: 'channel',
category: 'category',
enabled: 'enabled'
} as const
export type UserNotificationPreferenceScalarFieldEnum = (typeof UserNotificationPreferenceScalarFieldEnum)[keyof typeof UserNotificationPreferenceScalarFieldEnum]
export const DeviceTokenScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
userId: 'userId',
tenantId: 'tenantId',
platform: 'platform',
token: 'token',
pushProvider: 'pushProvider',
appVersion: 'appVersion',
lastSeenAt: 'lastSeenAt',
revokedAt: 'revokedAt'
} as const
export type DeviceTokenScalarFieldEnum = (typeof DeviceTokenScalarFieldEnum)[keyof typeof DeviceTokenScalarFieldEnum]
export const OnboardingScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
title: 'title',
type: 'type',
realtime: 'realtime',
active: 'active',
canBeDismissed: 'canBeDismissed',
height: 'height'
} as const
export type OnboardingScalarFieldEnum = (typeof OnboardingScalarFieldEnum)[keyof typeof OnboardingScalarFieldEnum]
export const OnboardingFilterScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
onboardingId: 'onboardingId',
type: 'type',
value: 'value'
} as const
export type OnboardingFilterScalarFieldEnum = (typeof OnboardingFilterScalarFieldEnum)[keyof typeof OnboardingFilterScalarFieldEnum]
export const OnboardingStepScalarFieldEnum = {
id: 'id',
onboardingId: 'onboardingId',
order: 'order',
block: 'block'
} as const
export type OnboardingStepScalarFieldEnum = (typeof OnboardingStepScalarFieldEnum)[keyof typeof OnboardingStepScalarFieldEnum]
export const OnboardingSessionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
onboardingId: 'onboardingId',
userId: 'userId',
tenantId: 'tenantId',
status: 'status',
startedAt: 'startedAt',
completedAt: 'completedAt',
dismissedAt: 'dismissedAt',
createdRealtime: 'createdRealtime'
} as const
export type OnboardingSessionScalarFieldEnum = (typeof OnboardingSessionScalarFieldEnum)[keyof typeof OnboardingSessionScalarFieldEnum]
export const OnboardingSessionActionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
onboardingSessionId: 'onboardingSessionId',
type: 'type',
name: 'name',
value: 'value'
} as const
export type OnboardingSessionActionScalarFieldEnum = (typeof OnboardingSessionActionScalarFieldEnum)[keyof typeof OnboardingSessionActionScalarFieldEnum]
export const OnboardingSessionFilterMatchScalarFieldEnum = {
id: 'id',
onboardingFilterId: 'onboardingFilterId',
onboardingSessionId: 'onboardingSessionId'
} as const
export type OnboardingSessionFilterMatchScalarFieldEnum = (typeof OnboardingSessionFilterMatchScalarFieldEnum)[keyof typeof OnboardingSessionFilterMatchScalarFieldEnum]
export const OnboardingSessionStepScalarFieldEnum = {
id: 'id',
onboardingSessionId: 'onboardingSessionId',
stepId: 'stepId',
seenAt: 'seenAt',
completedAt: 'completedAt'
} as const
export type OnboardingSessionStepScalarFieldEnum = (typeof OnboardingSessionStepScalarFieldEnum)[keyof typeof OnboardingSessionStepScalarFieldEnum]
export const OnboardingDemoProvisioningScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
templateCode: 'templateCode',
status: 'status',
entitiesCreated: 'entitiesCreated',
removableUntil: 'removableUntil',
deletedAt: 'deletedAt'
} as const
export type OnboardingDemoProvisioningScalarFieldEnum = (typeof OnboardingDemoProvisioningScalarFieldEnum)[keyof typeof OnboardingDemoProvisioningScalarFieldEnum]
export const OutboxEventScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
eventType: 'eventType',
payload: 'payload',
status: 'status',
createdAt: 'createdAt',
processedAt: 'processedAt',
retries: 'retries',
lastError: 'lastError',
scheduledAt: 'scheduledAt',
dispatchKey: 'dispatchKey',
priority: 'priority',
lockedUntil: 'lockedUntil'
} as const
export type OutboxEventScalarFieldEnum = (typeof OutboxEventScalarFieldEnum)[keyof typeof OutboxEventScalarFieldEnum]
export const RoleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
description: 'description',
type: 'type',
assignToNewUsers: 'assignToNewUsers',
isDefault: 'isDefault',
order: 'order'
} as const
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum]
export const PermissionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
description: 'description',
type: 'type',
isDefault: 'isDefault',
order: 'order'
} as const
export type PermissionScalarFieldEnum = (typeof PermissionScalarFieldEnum)[keyof typeof PermissionScalarFieldEnum]
export const RolePermissionScalarFieldEnum = {
id: 'id',
roleId: 'roleId',
permissionId: 'permissionId'
} as const
export type RolePermissionScalarFieldEnum = (typeof RolePermissionScalarFieldEnum)[keyof typeof RolePermissionScalarFieldEnum]
export const UserRoleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
userId: 'userId',
roleId: 'roleId',
tenantId: 'tenantId'
} as const
export type UserRoleScalarFieldEnum = (typeof UserRoleScalarFieldEnum)[keyof typeof UserRoleScalarFieldEnum]
export const GroupScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
createdByUserId: 'createdByUserId',
tenantId: 'tenantId',
name: 'name',
description: 'description',
color: 'color'
} as const
export type GroupScalarFieldEnum = (typeof GroupScalarFieldEnum)[keyof typeof GroupScalarFieldEnum]
export const GroupUserScalarFieldEnum = {
id: 'id',
groupId: 'groupId',
userId: 'userId'
} as const
export type GroupUserScalarFieldEnum = (typeof GroupUserScalarFieldEnum)[keyof typeof GroupUserScalarFieldEnum]
export const PluginScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pluginId: 'pluginId',
version: 'version',
manifest: 'manifest',
wasmSha256: 'wasmSha256',
signaturePublicKey: 'signaturePublicKey',
enabled: 'enabled',
installedAt: 'installedAt',
updatedAt: 'updatedAt'
} as const
export type PluginScalarFieldEnum = (typeof PluginScalarFieldEnum)[keyof typeof PluginScalarFieldEnum]
export const TenantPluginCapabilityGrantScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pluginId: 'pluginId',
capabilityName: 'capabilityName',
scopeJson: 'scopeJson',
grantedAt: 'grantedAt',
grantedByUserId: 'grantedByUserId'
} as const
export type TenantPluginCapabilityGrantScalarFieldEnum = (typeof TenantPluginCapabilityGrantScalarFieldEnum)[keyof typeof TenantPluginCapabilityGrantScalarFieldEnum]
export const PluginUserConfigScalarFieldEnum = {
id: 'id',
pluginId: 'pluginId',
userId: 'userId',
enabled: 'enabled',
configJson: 'configJson',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type PluginUserConfigScalarFieldEnum = (typeof PluginUserConfigScalarFieldEnum)[keyof typeof PluginUserConfigScalarFieldEnum]
export const PluginInvocationScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pluginId: 'pluginId',
version: 'version',
hookName: 'hookName',
outcome: 'outcome',
failureReason: 'failureReason',
message: 'message',
durationMs: 'durationMs',
fuelUsed: 'fuelUsed',
createdAt: 'createdAt'
} as const
export type PluginInvocationScalarFieldEnum = (typeof PluginInvocationScalarFieldEnum)[keyof typeof PluginInvocationScalarFieldEnum]
export const PluginCapabilityUseScalarFieldEnum = {
id: 'id',
pluginInvocationId: 'pluginInvocationId',
tenantId: 'tenantId',
pluginId: 'pluginId',
capability: 'capability',
payloadHash: 'payloadHash',
outcome: 'outcome',
errorCode: 'errorCode',
durationMs: 'durationMs',
timestamp: 'timestamp',
prevHash: 'prevHash',
rowHash: 'rowHash'
} as const
export type PluginCapabilityUseScalarFieldEnum = (typeof PluginCapabilityUseScalarFieldEnum)[keyof typeof PluginCapabilityUseScalarFieldEnum]
export const PortalScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
subdomain: 'subdomain',
domain: 'domain',
title: 'title',
isPublished: 'isPublished',
paymentProviderAccountId: 'paymentProviderAccountId',
themeColor: 'themeColor',
themeScheme: 'themeScheme',
seoTitle: 'seoTitle',
seoDescription: 'seoDescription',
seoImage: 'seoImage',
seoThumbnail: 'seoThumbnail',
seoTwitterCreator: 'seoTwitterCreator',
seoTwitterSite: 'seoTwitterSite',
seoKeywords: 'seoKeywords',
authRequireEmailVerification: 'authRequireEmailVerification',
authRequireOrganization: 'authRequireOrganization',
authRequireName: 'authRequireName',
analyticsSimpleAnalytics: 'analyticsSimpleAnalytics',
analyticsPlausibleAnalytics: 'analyticsPlausibleAnalytics',
analyticsGoogleAnalyticsTrackingId: 'analyticsGoogleAnalyticsTrackingId',
brandingLogo: 'brandingLogo',
brandingLogoDarkMode: 'brandingLogoDarkMode',
brandingIcon: 'brandingIcon',
brandingIconDarkMode: 'brandingIconDarkMode',
brandingFavicon: 'brandingFavicon',
metadata: 'metadata'
} as const
export type PortalScalarFieldEnum = (typeof PortalScalarFieldEnum)[keyof typeof PortalScalarFieldEnum]
export const PortalUserScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
portalId: 'portalId',
email: 'email',
passwordHash: 'passwordHash',
firstName: 'firstName',
lastName: 'lastName',
avatar: 'avatar',
phone: 'phone',
verifyToken: 'verifyToken',
locale: 'locale'
} as const
export type PortalUserScalarFieldEnum = (typeof PortalUserScalarFieldEnum)[keyof typeof PortalUserScalarFieldEnum]
export const PortalPageScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
portalId: 'portalId',
name: 'name',
attributes: 'attributes'
} as const
export type PortalPageScalarFieldEnum = (typeof PortalPageScalarFieldEnum)[keyof typeof PortalPageScalarFieldEnum]
export const PortalUserRegistrationScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
portalId: 'portalId',
email: 'email',
firstName: 'firstName',
lastName: 'lastName',
slug: 'slug',
token: 'token',
ipAddress: 'ipAddress',
company: 'company',
selectedSubscriptionPriceId: 'selectedSubscriptionPriceId',
createdPortalUserId: 'createdPortalUserId'
} as const
export type PortalUserRegistrationScalarFieldEnum = (typeof PortalUserRegistrationScalarFieldEnum)[keyof typeof PortalUserRegistrationScalarFieldEnum]
export const PortalSubscriptionProductScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
billingProviderId: 'billingProviderId',
order: 'order',
title: 'title',
active: 'active',
model: 'model',
public: 'public',
groupTitle: 'groupTitle',
groupDescription: 'groupDescription',
description: 'description',
badge: 'badge',
billingAddressCollection: 'billingAddressCollection',
hasQuantity: 'hasQuantity',
canBuyAgain: 'canBuyAgain'
} as const
export type PortalSubscriptionProductScalarFieldEnum = (typeof PortalSubscriptionProductScalarFieldEnum)[keyof typeof PortalSubscriptionProductScalarFieldEnum]
export const PortalSubscriptionPriceScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
subscriptionProductId: 'subscriptionProductId',
billingProviderId: 'billingProviderId',
type: 'type',
billingPeriod: 'billingPeriod',
price: 'price',
currency: 'currency',
trialDays: 'trialDays',
active: 'active'
} as const
export type PortalSubscriptionPriceScalarFieldEnum = (typeof PortalSubscriptionPriceScalarFieldEnum)[keyof typeof PortalSubscriptionPriceScalarFieldEnum]
export const PortalSubscriptionFeatureScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
subscriptionProductId: 'subscriptionProductId',
order: 'order',
title: 'title',
name: 'name',
type: 'type',
value: 'value',
href: 'href',
badge: 'badge',
accumulate: 'accumulate'
} as const
export type PortalSubscriptionFeatureScalarFieldEnum = (typeof PortalSubscriptionFeatureScalarFieldEnum)[keyof typeof PortalSubscriptionFeatureScalarFieldEnum]
export const PortalUserSubscriptionScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
portalUserId: 'portalUserId',
billingProviderCustomerId: 'billingProviderCustomerId'
} as const
export type PortalUserSubscriptionScalarFieldEnum = (typeof PortalUserSubscriptionScalarFieldEnum)[keyof typeof PortalUserSubscriptionScalarFieldEnum]
export const PortalUserSubscriptionProductScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
createdAt: 'createdAt',
portalUserSubscriptionId: 'portalUserSubscriptionId',
subscriptionProductId: 'subscriptionProductId',
cancelledAt: 'cancelledAt',
endsAt: 'endsAt',
billingProviderSubscriptionId: 'billingProviderSubscriptionId',
quantity: 'quantity',
fromCheckoutSessionId: 'fromCheckoutSessionId',
currentPeriodStart: 'currentPeriodStart',
currentPeriodEnd: 'currentPeriodEnd'
} as const
export type PortalUserSubscriptionProductScalarFieldEnum = (typeof PortalUserSubscriptionProductScalarFieldEnum)[keyof typeof PortalUserSubscriptionProductScalarFieldEnum]
export const PortalUserSubscriptionProductPriceScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
portalUserSubscriptionProductId: 'portalUserSubscriptionProductId',
subscriptionPriceId: 'subscriptionPriceId'
} as const
export type PortalUserSubscriptionProductPriceScalarFieldEnum = (typeof PortalUserSubscriptionProductPriceScalarFieldEnum)[keyof typeof PortalUserSubscriptionProductPriceScalarFieldEnum]
export const PortalCheckoutSessionStatusScalarFieldEnum = {
id: 'id',
portalId: 'portalId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
pending: 'pending',
email: 'email',
fromUrl: 'fromUrl',
fromUserId: 'fromUserId',
createdUserId: 'createdUserId'
} as const
export type PortalCheckoutSessionStatusScalarFieldEnum = (typeof PortalCheckoutSessionStatusScalarFieldEnum)[keyof typeof PortalCheckoutSessionStatusScalarFieldEnum]
export const HiveNumberSeqScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
entityType: 'entityType',
prefix: 'prefix',
nextNumber: 'nextNumber',
padding: 'padding',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type HiveNumberSeqScalarFieldEnum = (typeof HiveNumberSeqScalarFieldEnum)[keyof typeof HiveNumberSeqScalarFieldEnum]
export const PipelineScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
createdByUserId: 'createdByUserId',
name: 'name',
typHint: 'typHint',
position: 'position',
isDefault: 'isDefault',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum]
export const PipelineStageScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pipelineId: 'pipelineId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
stageKind: 'stageKind',
winProbability: 'winProbability',
color: 'color',
position: 'position',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type PipelineStageScalarFieldEnum = (typeof PipelineStageScalarFieldEnum)[keyof typeof PipelineStageScalarFieldEnum]
export const PipelineAccessScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pipelineId: 'pipelineId',
principalType: 'principalType',
principalId: 'principalId',
kannSehen: 'kannSehen',
kannBearbeiten: 'kannBearbeiten',
createdAt: 'createdAt'
} as const
export type PipelineAccessScalarFieldEnum = (typeof PipelineAccessScalarFieldEnum)[keyof typeof PipelineAccessScalarFieldEnum]
export const PipelineFieldConfigScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pipelineId: 'pipelineId',
stageId: 'stageId',
fieldKey: 'fieldKey',
sichtbar: 'sichtbar',
pflicht: 'pflicht',
reihenfolge: 'reihenfolge',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type PipelineFieldConfigScalarFieldEnum = (typeof PipelineFieldConfigScalarFieldEnum)[keyof typeof PipelineFieldConfigScalarFieldEnum]
export const PipelineFieldVisibilityScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
fieldConfigId: 'fieldConfigId',
principalType: 'principalType',
principalId: 'principalId',
kannSehen: 'kannSehen',
kannBearbeiten: 'kannBearbeiten',
createdAt: 'createdAt'
} as const
export type PipelineFieldVisibilityScalarFieldEnum = (typeof PipelineFieldVisibilityScalarFieldEnum)[keyof typeof PipelineFieldVisibilityScalarFieldEnum]
export const LostReasonScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
position: 'position',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type LostReasonScalarFieldEnum = (typeof LostReasonScalarFieldEnum)[keyof typeof LostReasonScalarFieldEnum]
export const ProjektScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
createdByUserId: 'createdByUserId',
projektNummer: 'projektNummer',
projektname: 'projektname',
beschreibung: 'beschreibung',
projekttyp: 'projekttyp',
quelle: 'quelle',
prioritaet: 'prioritaet',
pipelineId: 'pipelineId',
stageId: 'stageId',
potenziellerAuftragswert: 'potenziellerAuftragswert',
auftragsvolumen: 'auftragsvolumen',
startDatum: 'startDatum',
deadline: 'deadline',
zustaendigePersonId: 'zustaendigePersonId',
projektleiterId: 'projektleiterId',
projektAdresseId: 'projektAdresseId',
rechnungsAdresseId: 'rechnungsAdresseId',
bauherrAdresseId: 'bauherrAdresseId',
konvertiertAusLeadId: 'konvertiertAusLeadId',
lostReasonId: 'lostReasonId',
wonAt: 'wonAt',
lostAt: 'lostAt',
undoStageChangeUntil: 'undoStageChangeUntil',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type ProjektScalarFieldEnum = (typeof ProjektScalarFieldEnum)[keyof typeof ProjektScalarFieldEnum]
export const ProjektStageChangeScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
fromStageId: 'fromStageId',
toStageId: 'toStageId',
lostReasonId: 'lostReasonId',
changedByUserId: 'changedByUserId',
undoUntil: 'undoUntil',
undoneAt: 'undoneAt',
createdAt: 'createdAt'
} as const
export type ProjektStageChangeScalarFieldEnum = (typeof ProjektStageChangeScalarFieldEnum)[keyof typeof ProjektStageChangeScalarFieldEnum]
export const PipelineAggregateSnapshotScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
pipelineId: 'pipelineId',
stageId: 'stageId',
scopeKey: 'scopeKey',
projectCount: 'projectCount',
potentialValue: 'potentialValue',
orderVolume: 'orderVolume',
weightedForecast: 'weightedForecast',
realizedRevenue: 'realizedRevenue',
lostCount: 'lostCount',
stageConversionRate: 'stageConversionRate',
lostReasonDistribution: 'lostReasonDistribution',
isDemoDataIncluded: 'isDemoDataIncluded',
calculatedAt: 'calculatedAt'
} as const
export type PipelineAggregateSnapshotScalarFieldEnum = (typeof PipelineAggregateSnapshotScalarFieldEnum)[keyof typeof PipelineAggregateSnapshotScalarFieldEnum]
export const ProjektKontaktScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
createdAt: 'createdAt',
projektId: 'projektId',
kontaktId: 'kontaktId',
rolle: 'rolle',
primaer: 'primaer'
} as const
export type ProjektKontaktScalarFieldEnum = (typeof ProjektKontaktScalarFieldEnum)[keyof typeof ProjektKontaktScalarFieldEnum]
export const PublicIncomingWebhookEndpointScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
slug: 'slug',
name: 'name',
authMode: 'authMode',
apiKeyId: 'apiKeyId',
tokenHash: 'tokenHash',
tokenPrefix: 'tokenPrefix',
tokenLastFour: 'tokenLastFour',
hmacSecretHash: 'hmacSecretHash',
hmacSecretPrefix: 'hmacSecretPrefix',
hmacSecretLastFour: 'hmacSecretLastFour',
payloadMapping: 'payloadMapping',
autoMatchRules: 'autoMatchRules',
status: 'status',
pausedAt: 'pausedAt',
archivedAt: 'archivedAt',
isDemoData: 'isDemoData'
} as const
export type PublicIncomingWebhookEndpointScalarFieldEnum = (typeof PublicIncomingWebhookEndpointScalarFieldEnum)[keyof typeof PublicIncomingWebhookEndpointScalarFieldEnum]
export const PublicWebhookIngestionLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
endpointId: 'endpointId',
endpointSlug: 'endpointSlug',
authMode: 'authMode',
requestId: 'requestId',
sourceIp: 'sourceIp',
status: 'status',
result: 'result',
payloadHash: 'payloadHash',
payloadPreview: 'payloadPreview',
leadId: 'leadId',
matchedKontaktId: 'matchedKontaktId',
automationRunId: 'automationRunId',
error: 'error'
} as const
export type PublicWebhookIngestionLogScalarFieldEnum = (typeof PublicWebhookIngestionLogScalarFieldEnum)[keyof typeof PublicWebhookIngestionLogScalarFieldEnum]
export const PublicWebhookSubscriptionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
targetUrl: 'targetUrl',
eventTypes: 'eventTypes',
signingSecretHash: 'signingSecretHash',
signingSecretPrefix: 'signingSecretPrefix',
signingSecretLastFour: 'signingSecretLastFour',
status: 'status',
failureCount: 'failureCount',
lastDeliveredAt: 'lastDeliveredAt',
lastErrorAt: 'lastErrorAt',
autoDisabledAt: 'autoDisabledAt',
pausedAt: 'pausedAt',
archivedAt: 'archivedAt',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData'
} as const
export type PublicWebhookSubscriptionScalarFieldEnum = (typeof PublicWebhookSubscriptionScalarFieldEnum)[keyof typeof PublicWebhookSubscriptionScalarFieldEnum]
export const PublicWebhookDeliveryLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
subscriptionId: 'subscriptionId',
eventType: 'eventType',
targetUrl: 'targetUrl',
status: 'status',
httpStatus: 'httpStatus',
attempt: 'attempt',
maxAttempts: 'maxAttempts',
nextAttemptAt: 'nextAttemptAt',
idempotencyKey: 'idempotencyKey',
payloadHash: 'payloadHash',
error: 'error',
responsePreview: 'responsePreview',
sentAt: 'sentAt'
} as const
export type PublicWebhookDeliveryLogScalarFieldEnum = (typeof PublicWebhookDeliveryLogScalarFieldEnum)[keyof typeof PublicWebhookDeliveryLogScalarFieldEnum]
export const QueueFailedJobScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
queueName: 'queueName',
jobName: 'jobName',
jobId: 'jobId',
attemptsMade: 'attemptsMade',
attemptsLimit: 'attemptsLimit',
errorName: 'errorName',
errorMessage: 'errorMessage',
failedAt: 'failedAt'
} as const
export type QueueFailedJobScalarFieldEnum = (typeof QueueFailedJobScalarFieldEnum)[keyof typeof QueueFailedJobScalarFieldEnum]
export const ExportJobScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
requestedByUserId: 'requestedByUserId',
exportType: 'exportType',
format: 'format',
status: 'status',
requestId: 'requestId',
attemptsMade: 'attemptsMade',
artifactBucket: 'artifactBucket',
artifactKey: 'artifactKey',
rowCount: 'rowCount',
errorName: 'errorName',
errorMessage: 'errorMessage',
retentionErrorMessage: 'retentionErrorMessage',
expiresAt: 'expiresAt',
deletedAt: 'deletedAt',
hardDeletedAt: 'hardDeletedAt',
startedAt: 'startedAt',
finishedAt: 'finishedAt',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ExportJobScalarFieldEnum = (typeof ExportJobScalarFieldEnum)[keyof typeof ExportJobScalarFieldEnum]
export const SearchIndexEntryScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
entityType: 'entityType',
entityId: 'entityId',
title: 'title',
subtitle: 'subtitle',
bodyText: 'bodyText',
routePath: 'routePath',
sourceIndex: 'sourceIndex',
permissionSubject: 'permissionSubject',
lastIndexedAt: 'lastIndexedAt',
isArchived: 'isArchived',
isDemoData: 'isDemoData',
metadata: 'metadata'
} as const
export type SearchIndexEntryScalarFieldEnum = (typeof SearchIndexEntryScalarFieldEnum)[keyof typeof SearchIndexEntryScalarFieldEnum]
export const RecentSearchScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
queryText: 'queryText',
appliedFilters: 'appliedFilters',
resultCount: 'resultCount'
} as const
export type RecentSearchScalarFieldEnum = (typeof RecentSearchScalarFieldEnum)[keyof typeof RecentSearchScalarFieldEnum]
export const SignatureProviderConnectionScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
provider: 'provider',
dataConnectionId: 'dataConnectionId',
label: 'label',
isDefault: 'isDefault',
webhookSharedKeyId: 'webhookSharedKeyId',
healthMessageKey: 'healthMessageKey',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type SignatureProviderConnectionScalarFieldEnum = (typeof SignatureProviderConnectionScalarFieldEnum)[keyof typeof SignatureProviderConnectionScalarFieldEnum]
export const ProjektSignatureDocumentScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
projektId: 'projektId',
providerConnectionId: 'providerConnectionId',
provider: 'provider',
providerDocumentId: 'providerDocumentId',
sourcePdfFileId: 'sourcePdfFileId',
signedPdfFileId: 'signedPdfFileId',
completionCertFileId: 'completionCertFileId',
status: 'status',
routingMode: 'routingMode',
title: 'title',
subject: 'subject',
message: 'message',
externalStatusPayload: 'externalStatusPayload',
documentHashSha256: 'documentHashSha256',
sealedPdfHashSha256: 'sealedPdfHashSha256',
completionCertHashSha256: 'completionCertHashSha256',
sentAt: 'sentAt',
completedAt: 'completedAt',
revokedAt: 'revokedAt',
declinedAt: 'declinedAt',
expiresAt: 'expiresAt',
createdByUserId: 'createdByUserId',
isDemoData: 'isDemoData',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
archivedAt: 'archivedAt'
} as const
export type ProjektSignatureDocumentScalarFieldEnum = (typeof ProjektSignatureDocumentScalarFieldEnum)[keyof typeof ProjektSignatureDocumentScalarFieldEnum]
export const ProjektSignatureSignerScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
documentId: 'documentId',
signerEmail: 'signerEmail',
signerName: 'signerName',
signerRole: 'signerRole',
linkedKontaktId: 'linkedKontaktId',
status: 'status',
signingOrder: 'signingOrder',
accessTokenHash: 'accessTokenHash',
otpHash: 'otpHash',
otpExpiresAt: 'otpExpiresAt',
lastLinkOpenedAt: 'lastLinkOpenedAt',
lastReminderAt: 'lastReminderAt',
viewedAt: 'viewedAt',
signedAt: 'signedAt',
declinedAt: 'declinedAt',
revokedAt: 'revokedAt',
signerIpHash: 'signerIpHash',
signerUserAgent: 'signerUserAgent',
intentText: 'intentText',
signatureSvg: 'signatureSvg',
signatureImageFileId: 'signatureImageFileId',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
export type ProjektSignatureSignerScalarFieldEnum = (typeof ProjektSignatureSignerScalarFieldEnum)[keyof typeof ProjektSignatureSignerScalarFieldEnum]
export const SignatureEventScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
documentId: 'documentId',
signerId: 'signerId',
eventType: 'eventType',
actorUserId: 'actorUserId',
providerEventId: 'providerEventId',
ipHash: 'ipHash',
userAgent: 'userAgent',
metadata: 'metadata',
createdAt: 'createdAt'
} as const
export type SignatureEventScalarFieldEnum = (typeof SignatureEventScalarFieldEnum)[keyof typeof SignatureEventScalarFieldEnum]
export const SiteScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
type: 'type',
siteId: 'siteId',
name: 'name',
isActive: 'isActive',
branding: 'branding',
copy: 'copy',
serverName: 'serverName',
serverHost: 'serverHost',
serverResolution: 'serverResolution',
createdByUserId: 'createdByUserId'
} as const
export type SiteScalarFieldEnum = (typeof SiteScalarFieldEnum)[keyof typeof SiteScalarFieldEnum]
export const SubscriptionProductScalarFieldEnum = {
id: 'id',
billingProviderId: 'billingProviderId',
code: 'code',
lagoPlanCode: 'lagoPlanCode',
order: 'order',
title: 'title',
active: 'active',
model: 'model',
public: 'public',
groupTitle: 'groupTitle',
groupDescription: 'groupDescription',
description: 'description',
badge: 'badge',
billingAddressCollection: 'billingAddressCollection',
hasQuantity: 'hasQuantity',
canBuyAgain: 'canBuyAgain'
} as const
export type SubscriptionProductScalarFieldEnum = (typeof SubscriptionProductScalarFieldEnum)[keyof typeof SubscriptionProductScalarFieldEnum]
export const SubscriptionPriceScalarFieldEnum = {
id: 'id',
subscriptionProductId: 'subscriptionProductId',
billingProviderId: 'billingProviderId',
lagoFeeCode: 'lagoFeeCode',
molliePriceReference: 'molliePriceReference',
type: 'type',
billingPeriod: 'billingPeriod',
price: 'price',
currency: 'currency',
trialDays: 'trialDays',
active: 'active'
} as const
export type SubscriptionPriceScalarFieldEnum = (typeof SubscriptionPriceScalarFieldEnum)[keyof typeof SubscriptionPriceScalarFieldEnum]
export const SubscriptionUsageBasedPriceScalarFieldEnum = {
id: 'id',
subscriptionProductId: 'subscriptionProductId',
billingProviderId: 'billingProviderId',
billingPeriod: 'billingPeriod',
currency: 'currency',
unit: 'unit',
unitTitle: 'unitTitle',
unitTitlePlural: 'unitTitlePlural',
usageType: 'usageType',
aggregateUsage: 'aggregateUsage',
tiersMode: 'tiersMode',
billingScheme: 'billingScheme'
} as const
export type SubscriptionUsageBasedPriceScalarFieldEnum = (typeof SubscriptionUsageBasedPriceScalarFieldEnum)[keyof typeof SubscriptionUsageBasedPriceScalarFieldEnum]
export const SubscriptionUsageBasedTierScalarFieldEnum = {
id: 'id',
subscriptionUsageBasedPriceId: 'subscriptionUsageBasedPriceId',
from: 'from',
to: 'to',
perUnitPrice: 'perUnitPrice',
flatFeePrice: 'flatFeePrice'
} as const
export type SubscriptionUsageBasedTierScalarFieldEnum = (typeof SubscriptionUsageBasedTierScalarFieldEnum)[keyof typeof SubscriptionUsageBasedTierScalarFieldEnum]
export const SubscriptionFeatureScalarFieldEnum = {
id: 'id',
subscriptionProductId: 'subscriptionProductId',
order: 'order',
title: 'title',
name: 'name',
code: 'code',
type: 'type',
value: 'value',
quotaValue: 'quotaValue',
href: 'href',
badge: 'badge',
accumulate: 'accumulate'
} as const
export type SubscriptionFeatureScalarFieldEnum = (typeof SubscriptionFeatureScalarFieldEnum)[keyof typeof SubscriptionFeatureScalarFieldEnum]
export const TenantSubscriptionScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
billingProviderCustomerId: 'billingProviderCustomerId',
lagoCustomerId: 'lagoCustomerId',
mollieCustomerId: 'mollieCustomerId',
planCode: 'planCode',
seatQuantity: 'seatQuantity',
lastInvoiceExternalId: 'lastInvoiceExternalId',
lastPaymentExternalId: 'lastPaymentExternalId',
status: 'status',
trialStartsAt: 'trialStartsAt',
trialEndsAt: 'trialEndsAt',
pastDueSince: 'pastDueSince',
frozenAt: 'frozenAt',
cancelledAt: 'cancelledAt',
dunningAttemptCount: 'dunningAttemptCount',
lastDunningSentAt: 'lastDunningSentAt'
} as const
export type TenantSubscriptionScalarFieldEnum = (typeof TenantSubscriptionScalarFieldEnum)[keyof typeof TenantSubscriptionScalarFieldEnum]
export const TenantSubscriptionProductScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantSubscriptionId: 'tenantSubscriptionId',
subscriptionProductId: 'subscriptionProductId',
customEntitlementPlanId: 'customEntitlementPlanId',
cancelledAt: 'cancelledAt',
endsAt: 'endsAt',
billingProviderSubscriptionId: 'billingProviderSubscriptionId',
lagoSubscriptionId: 'lagoSubscriptionId',
planCode: 'planCode',
seatQuantity: 'seatQuantity',
quantity: 'quantity',
fromCheckoutSessionId: 'fromCheckoutSessionId',
currentPeriodStart: 'currentPeriodStart',
currentPeriodEnd: 'currentPeriodEnd'
} as const
export type TenantSubscriptionProductScalarFieldEnum = (typeof TenantSubscriptionProductScalarFieldEnum)[keyof typeof TenantSubscriptionProductScalarFieldEnum]
export const TenantSubscriptionProductPriceScalarFieldEnum = {
id: 'id',
tenantSubscriptionProductId: 'tenantSubscriptionProductId',
subscriptionPriceId: 'subscriptionPriceId',
subscriptionUsageBasedPriceId: 'subscriptionUsageBasedPriceId',
quantity: 'quantity',
isMetered: 'isMetered'
} as const
export type TenantSubscriptionProductPriceScalarFieldEnum = (typeof TenantSubscriptionProductPriceScalarFieldEnum)[keyof typeof TenantSubscriptionProductPriceScalarFieldEnum]
export const TenantSubscriptionUsageRecordScalarFieldEnum = {
id: 'id',
tenantId: 'tenantId',
tenantSubscriptionId: 'tenantSubscriptionId',
tenantSubscriptionProductPriceId: 'tenantSubscriptionProductPriceId',
metricCode: 'metricCode',
timestamp: 'timestamp',
quantity: 'quantity',
idempotencyKey: 'idempotencyKey',
billingProviderSubscriptionItemId: 'billingProviderSubscriptionItemId'
} as const
export type TenantSubscriptionUsageRecordScalarFieldEnum = (typeof TenantSubscriptionUsageRecordScalarFieldEnum)[keyof typeof TenantSubscriptionUsageRecordScalarFieldEnum]
export const TenantProductConfigurationScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
blueprintId: 'blueprintId',
notes: 'notes'
} as const
export type TenantProductConfigurationScalarFieldEnum = (typeof TenantProductConfigurationScalarFieldEnum)[keyof typeof TenantProductConfigurationScalarFieldEnum]
export const TenantFeatureOverrideScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
featureKey: 'featureKey',
override: 'override',
reason: 'reason'
} as const
export type TenantFeatureOverrideScalarFieldEnum = (typeof TenantFeatureOverrideScalarFieldEnum)[keyof typeof TenantFeatureOverrideScalarFieldEnum]
export const CheckoutSessionStatusScalarFieldEnum = {
createdAt: 'createdAt',
updatedAt: 'updatedAt',
id: 'id',
pending: 'pending',
email: 'email',
fromUrl: 'fromUrl',
fromUserId: 'fromUserId',
fromTenantId: 'fromTenantId',
createdUserId: 'createdUserId',
createdTenantId: 'createdTenantId',
provider: 'provider',
providerPaymentId: 'providerPaymentId',
invoiceExternalId: 'invoiceExternalId',
subscriptionProductId: 'subscriptionProductId',
subscriptionPriceId: 'subscriptionPriceId',
lagoSubscriptionId: 'lagoSubscriptionId',
planCode: 'planCode',
quantity: 'quantity',
amountCents: 'amountCents',
currency: 'currency',
checkoutUrl: 'checkoutUrl',
status: 'status'
} as const
export type CheckoutSessionStatusScalarFieldEnum = (typeof CheckoutSessionStatusScalarFieldEnum)[keyof typeof CheckoutSessionStatusScalarFieldEnum]
export const BillingWebhookLogScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
providerEventId: 'providerEventId',
eventType: 'eventType',
processedAt: 'processedAt',
relatedTenantId: 'relatedTenantId',
error: 'error'
} as const
export type BillingWebhookLogScalarFieldEnum = (typeof BillingWebhookLogScalarFieldEnum)[keyof typeof BillingWebhookLogScalarFieldEnum]
export const CreditScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
userId: 'userId',
amount: 'amount',
type: 'type',
objectId: 'objectId'
} as const
export type CreditScalarFieldEnum = (typeof CreditScalarFieldEnum)[keyof typeof CreditScalarFieldEnum]
export const TaskScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
title: 'title',
description: 'description',
status: 'status',
priority: 'priority',
deadline: 'deadline',
assignedToUserId: 'assignedToUserId',
assignedToGroupId: 'assignedToGroupId',
linkedEntityType: 'linkedEntityType',
linkedEntityId: 'linkedEntityId',
source: 'source',
sourceRef: 'sourceRef',
completedAt: 'completedAt',
isDemoData: 'isDemoData',
archivedAt: 'archivedAt'
} as const
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
export const TaskWatcherScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
tenantId: 'tenantId',
taskId: 'taskId',
userId: 'userId'
} as const
export type TaskWatcherScalarFieldEnum = (typeof TaskWatcherScalarFieldEnum)[keyof typeof TaskWatcherScalarFieldEnum]
export const WorkflowScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
name: 'name',
description: 'description',
status: 'status',
tenantId: 'tenantId',
createdByUserId: 'createdByUserId',
appliesToAllTenants: 'appliesToAllTenants'
} as const
export type WorkflowScalarFieldEnum = (typeof WorkflowScalarFieldEnum)[keyof typeof WorkflowScalarFieldEnum]
export const WorkflowBlockScalarFieldEnum = {
id: 'id',
workflowId: 'workflowId',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
type: 'type',
description: 'description',
isTrigger: 'isTrigger',
isBlock: 'isBlock',
input: 'input'
} as const
export type WorkflowBlockScalarFieldEnum = (typeof WorkflowBlockScalarFieldEnum)[keyof typeof WorkflowBlockScalarFieldEnum]
export const WorkflowBlockConditionGroupScalarFieldEnum = {
id: 'id',
workflowBlockId: 'workflowBlockId',
index: 'index',
type: 'type'
} as const
export type WorkflowBlockConditionGroupScalarFieldEnum = (typeof WorkflowBlockConditionGroupScalarFieldEnum)[keyof typeof WorkflowBlockConditionGroupScalarFieldEnum]
export const WorkflowBlockConditionScalarFieldEnum = {
id: 'id',
workflowBlockConditionGroupId: 'workflowBlockConditionGroupId',
index: 'index',
variable: 'variable',
operator: 'operator',
value: 'value'
} as const
export type WorkflowBlockConditionScalarFieldEnum = (typeof WorkflowBlockConditionScalarFieldEnum)[keyof typeof WorkflowBlockConditionScalarFieldEnum]
export const WorkflowBlockToBlockScalarFieldEnum = {
id: 'id',
fromBlockId: 'fromBlockId',
toBlockId: 'toBlockId',
condition: 'condition'
} as const
export type WorkflowBlockToBlockScalarFieldEnum = (typeof WorkflowBlockToBlockScalarFieldEnum)[keyof typeof WorkflowBlockToBlockScalarFieldEnum]
export const WorkflowExecutionScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
workflowId: 'workflowId',
tenantId: 'tenantId',
type: 'type',
status: 'status',
input: 'input',
output: 'output',
duration: 'duration',
endedAt: 'endedAt',
error: 'error',
waitingBlockId: 'waitingBlockId',
createdByUserId: 'createdByUserId',
appliesToAllTenants: 'appliesToAllTenants'
} as const
export type WorkflowExecutionScalarFieldEnum = (typeof WorkflowExecutionScalarFieldEnum)[keyof typeof WorkflowExecutionScalarFieldEnum]
export const WorkflowInputExampleScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
workflowId: 'workflowId',
title: 'title',
input: 'input'
} as const
export type WorkflowInputExampleScalarFieldEnum = (typeof WorkflowInputExampleScalarFieldEnum)[keyof typeof WorkflowInputExampleScalarFieldEnum]
export const WorkflowBlockExecutionScalarFieldEnum = {
id: 'id',
workflowExecutionId: 'workflowExecutionId',
workflowBlockId: 'workflowBlockId',
fromWorkflowBlockId: 'fromWorkflowBlockId',
status: 'status',
startedAt: 'startedAt',
input: 'input',
output: 'output',
duration: 'duration',
endedAt: 'endedAt',
error: 'error'
} as const
export type WorkflowBlockExecutionScalarFieldEnum = (typeof WorkflowBlockExecutionScalarFieldEnum)[keyof typeof WorkflowBlockExecutionScalarFieldEnum]
export const WorkflowVariableScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
value: 'value',
createdByUserId: 'createdByUserId',
userId: 'userId'
} as const
export type WorkflowVariableScalarFieldEnum = (typeof WorkflowVariableScalarFieldEnum)[keyof typeof WorkflowVariableScalarFieldEnum]
export const WorkflowCredentialScalarFieldEnum = {
id: 'id',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
tenantId: 'tenantId',
name: 'name',
value: 'value',
createdByUserId: 'createdByUserId',
userId: 'userId'
} as const
export type WorkflowCredentialScalarFieldEnum = (typeof WorkflowCredentialScalarFieldEnum)[keyof typeof WorkflowCredentialScalarFieldEnum]
export const SortOrder = {
asc: 'asc',
desc: 'desc'
} as const
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
export const NullableJsonNullValueInput = {
DbNull: DbNull,
JsonNull: JsonNull
} as const
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
export const JsonNullValueInput = {
JsonNull: JsonNull
} as const
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
export const QueryMode = {
default: 'default',
insensitive: 'insensitive'
} as const
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
export const JsonNullValueFilter = {
DbNull: DbNull,
JsonNull: JsonNull,
AnyNull: AnyNull
} as const
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
export const NullsOrder = {
first: 'first',
last: 'last'
} as const
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]