/**
 * Comprehensive mock for `@sim/db/schema`.
 * Every exported table maps each column to its own name as a string,
 * which satisfies drizzle column references used in query builders.
 */

export const schemaMock = {
  user: {
    id: 'id',
    name: 'name',
    email: 'email',
    normalizedEmail: 'normalizedEmail',
    emailVerified: 'emailVerified',
    image: 'image',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    stripeCustomerId: 'stripeCustomerId',
    role: 'role',
    banned: 'banned',
    banReason: 'banReason',
    banExpires: 'banExpires',
  },
  session: {
    id: 'id',
    expiresAt: 'expiresAt',
    token: 'token',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    ipAddress: 'ipAddress',
    userAgent: 'userAgent',
    userId: 'userId',
    activeOrganizationId: 'activeOrganizationId',
    impersonatedBy: 'impersonatedBy',
  },
  account: {
    id: 'id',
    accountId: 'accountId',
    providerId: 'providerId',
    userId: 'userId',
    accessToken: 'accessToken',
    refreshToken: 'refreshToken',
    idToken: 'idToken',
    accessTokenExpiresAt: 'accessTokenExpiresAt',
    refreshTokenExpiresAt: 'refreshTokenExpiresAt',
    scope: 'scope',
    password: 'password',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  verification: {
    id: 'id',
    identifier: 'identifier',
    value: 'value',
    expiresAt: 'expiresAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowFolder: {
    id: 'id',
    name: 'name',
    userId: 'userId',
    workspaceId: 'workspaceId',
    parentId: 'parentId',
    color: 'color',
    isExpanded: 'isExpanded',
    sortOrder: 'sortOrder',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    archivedAt: 'archivedAt',
  },
  workflow: {
    id: 'id',
    userId: 'userId',
    workspaceId: 'workspaceId',
    folderId: 'folderId',
    sortOrder: 'sortOrder',
    name: 'name',
    description: 'description',
    color: 'color',
    lastSynced: 'lastSynced',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    isDeployed: 'isDeployed',
    deployedAt: 'deployedAt',
    isPublicApi: 'isPublicApi',
    runCount: 'runCount',
    lastRunAt: 'lastRunAt',
    variables: 'variables',
    archivedAt: 'archivedAt',
  },
  workflowBlocks: {
    id: 'id',
    workflowId: 'workflowId',
    type: 'type',
    name: 'name',
    positionX: 'positionX',
    positionY: 'positionY',
    enabled: 'enabled',
    horizontalHandles: 'horizontalHandles',
    isWide: 'isWide',
    advancedMode: 'advancedMode',
    triggerMode: 'triggerMode',
    locked: 'locked',
    height: 'height',
    subBlocks: 'subBlocks',
    outputs: 'outputs',
    data: 'data',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowEdges: {
    id: 'id',
    workflowId: 'workflowId',
    sourceBlockId: 'sourceBlockId',
    targetBlockId: 'targetBlockId',
    sourceHandle: 'sourceHandle',
    targetHandle: 'targetHandle',
    createdAt: 'createdAt',
  },
  workflowSubflows: {
    id: 'id',
    workflowId: 'workflowId',
    type: 'type',
    config: 'config',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  waitlist: {
    id: 'id',
    email: 'email',
    status: 'status',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowExecutionSnapshots: {
    id: 'id',
    workflowId: 'workflowId',
    stateHash: 'stateHash',
    stateData: 'stateData',
    createdAt: 'createdAt',
  },
  workflowExecutionLogs: {
    id: 'id',
    workflowId: 'workflowId',
    workspaceId: 'workspaceId',
    executionId: 'executionId',
    stateSnapshotId: 'stateSnapshotId',
    deploymentVersionId: 'deploymentVersionId',
    level: 'level',
    status: 'status',
    trigger: 'trigger',
    startedAt: 'startedAt',
    endedAt: 'endedAt',
    totalDurationMs: 'totalDurationMs',
    executionData: 'executionData',
    cost: 'cost',
    files: 'files',
    createdAt: 'createdAt',
  },
  pausedExecutions: {
    id: 'id',
    workflowId: 'workflowId',
    executionId: 'executionId',
    executionSnapshot: 'executionSnapshot',
    pausePoints: 'pausePoints',
    totalPauseCount: 'totalPauseCount',
    resumedCount: 'resumedCount',
    status: 'status',
    metadata: 'metadata',
    pausedAt: 'pausedAt',
    updatedAt: 'updatedAt',
    expiresAt: 'expiresAt',
  },
  resumeQueue: {
    id: 'id',
    pausedExecutionId: 'pausedExecutionId',
    parentExecutionId: 'parentExecutionId',
    newExecutionId: 'newExecutionId',
    contextId: 'contextId',
    resumeInput: 'resumeInput',
    status: 'status',
    queuedAt: 'queuedAt',
    claimedAt: 'claimedAt',
    completedAt: 'completedAt',
    failureReason: 'failureReason',
  },
  environment: {
    id: 'id',
    userId: 'userId',
    variables: 'variables',
    updatedAt: 'updatedAt',
  },
  workspaceEnvironment: {
    id: 'id',
    workspaceId: 'workspaceId',
    variables: 'variables',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workspaceBYOKKeys: {
    id: 'id',
    workspaceId: 'workspaceId',
    providerId: 'providerId',
    encryptedApiKey: 'encryptedApiKey',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  settings: {
    id: 'id',
    userId: 'userId',
    theme: 'theme',
    autoConnect: 'autoConnect',
    telemetryEnabled: 'telemetryEnabled',
    emailPreferences: 'emailPreferences',
    billingUsageNotificationsEnabled: 'billingUsageNotificationsEnabled',
    showTrainingControls: 'showTrainingControls',
    superUserModeEnabled: 'superUserModeEnabled',
    errorNotificationsEnabled: 'errorNotificationsEnabled',
    snapToGridSize: 'snapToGridSize',
    showActionBar: 'showActionBar',
    copilotEnabledModels: 'copilotEnabledModels',
    copilotAutoAllowedTools: 'copilotAutoAllowedTools',
    lastActiveWorkspaceId: 'lastActiveWorkspaceId',
    updatedAt: 'updatedAt',
  },
  workflowSchedule: {
    id: 'id',
    workflowId: 'workflowId',
    deploymentVersionId: 'deploymentVersionId',
    blockId: 'blockId',
    cronExpression: 'cronExpression',
    nextRunAt: 'nextRunAt',
    lastRanAt: 'lastRanAt',
    lastQueuedAt: 'lastQueuedAt',
    triggerType: 'triggerType',
    timezone: 'timezone',
    failedCount: 'failedCount',
    status: 'status',
    lastFailedAt: 'lastFailedAt',
    sourceType: 'sourceType',
    jobTitle: 'jobTitle',
    prompt: 'prompt',
    lifecycle: 'lifecycle',
    successCondition: 'successCondition',
    maxRuns: 'maxRuns',
    runCount: 'runCount',
    sourceChatId: 'sourceChatId',
    sourceTaskName: 'sourceTaskName',
    sourceUserId: 'sourceUserId',
    sourceWorkspaceId: 'sourceWorkspaceId',
    jobHistory: 'jobHistory',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  jobExecutionLogs: {
    id: 'id',
    scheduleId: 'scheduleId',
    workspaceId: 'workspaceId',
    executionId: 'executionId',
    level: 'level',
    status: 'status',
    trigger: 'trigger',
    startedAt: 'startedAt',
    endedAt: 'endedAt',
    totalDurationMs: 'totalDurationMs',
    executionData: 'executionData',
    cost: 'cost',
    createdAt: 'createdAt',
  },
  webhook: {
    id: 'id',
    workflowId: 'workflowId',
    deploymentVersionId: 'deploymentVersionId',
    blockId: 'blockId',
    path: 'path',
    provider: 'provider',
    providerConfig: 'providerConfig',
    isActive: 'isActive',
    failedCount: 'failedCount',
    lastFailedAt: 'lastFailedAt',
    credentialSetId: 'credentialSetId',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  notificationTypeEnum: 'notificationTypeEnum',
  notificationDeliveryStatusEnum: 'notificationDeliveryStatusEnum',
  workspaceNotificationSubscription: {
    id: 'id',
    workspaceId: 'workspaceId',
    notificationType: 'notificationType',
    workflowIds: 'workflowIds',
    allWorkflows: 'allWorkflows',
    levelFilter: 'levelFilter',
    triggerFilter: 'triggerFilter',
    includeFinalOutput: 'includeFinalOutput',
    includeTraceSpans: 'includeTraceSpans',
    includeRateLimits: 'includeRateLimits',
    includeUsageData: 'includeUsageData',
    webhookConfig: 'webhookConfig',
    emailRecipients: 'emailRecipients',
    slackConfig: 'slackConfig',
    alertConfig: 'alertConfig',
    lastAlertAt: 'lastAlertAt',
    active: 'active',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workspaceNotificationDelivery: {
    id: 'id',
    subscriptionId: 'subscriptionId',
    workflowId: 'workflowId',
    executionId: 'executionId',
    status: 'status',
    attempts: 'attempts',
    lastAttemptAt: 'lastAttemptAt',
    nextAttemptAt: 'nextAttemptAt',
    responseStatus: 'responseStatus',
    responseBody: 'responseBody',
    errorMessage: 'errorMessage',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  apiKey: {
    id: 'id',
    userId: 'userId',
    workspaceId: 'workspaceId',
    createdBy: 'createdBy',
    name: 'name',
    key: 'key',
    keyHash: 'keyHash',
    type: 'type',
    lastUsed: 'lastUsed',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    expiresAt: 'expiresAt',
  },
  billingBlockedReasonEnum: 'billingBlockedReasonEnum',
  userStats: {
    id: 'id',
    userId: 'userId',
    totalManualExecutions: 'totalManualExecutions',
    totalApiCalls: 'totalApiCalls',
    totalWebhookTriggers: 'totalWebhookTriggers',
    totalScheduledExecutions: 'totalScheduledExecutions',
    totalChatExecutions: 'totalChatExecutions',
    totalMcpExecutions: 'totalMcpExecutions',
    totalA2aExecutions: 'totalA2aExecutions',
    totalTokensUsed: 'totalTokensUsed',
    totalCost: 'totalCost',
    currentUsageLimit: 'currentUsageLimit',
    usageLimitUpdatedAt: 'usageLimitUpdatedAt',
    currentPeriodCost: 'currentPeriodCost',
    lastPeriodCost: 'lastPeriodCost',
    billedOverageThisPeriod: 'billedOverageThisPeriod',
    proPeriodCostSnapshot: 'proPeriodCostSnapshot',
    creditBalance: 'creditBalance',
    totalCopilotCost: 'totalCopilotCost',
    currentPeriodCopilotCost: 'currentPeriodCopilotCost',
    lastPeriodCopilotCost: 'lastPeriodCopilotCost',
    totalCopilotTokens: 'totalCopilotTokens',
    totalCopilotCalls: 'totalCopilotCalls',
    totalMcpCopilotCalls: 'totalMcpCopilotCalls',
    totalMcpCopilotCost: 'totalMcpCopilotCost',
    currentPeriodMcpCopilotCost: 'currentPeriodMcpCopilotCost',
    storageUsedBytes: 'storageUsedBytes',
    lastActive: 'lastActive',
    billingBlocked: 'billingBlocked',
    billingBlockedReason: 'billingBlockedReason',
  },
  customTools: {
    id: 'id',
    workspaceId: 'workspaceId',
    userId: 'userId',
    title: 'title',
    schema: 'schema',
    code: 'code',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  skill: {
    id: 'id',
    workspaceId: 'workspaceId',
    userId: 'userId',
    name: 'name',
    description: 'description',
    content: 'content',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  subscription: {
    id: 'id',
    plan: 'plan',
    referenceId: 'referenceId',
    stripeCustomerId: 'stripeCustomerId',
    stripeSubscriptionId: 'stripeSubscriptionId',
    status: 'status',
    periodStart: 'periodStart',
    periodEnd: 'periodEnd',
    cancelAtPeriodEnd: 'cancelAtPeriodEnd',
    seats: 'seats',
    trialStart: 'trialStart',
    trialEnd: 'trialEnd',
    metadata: 'metadata',
  },
  rateLimitBucket: {
    key: 'key',
    tokens: 'tokens',
    lastRefillAt: 'lastRefillAt',
    updatedAt: 'updatedAt',
  },
  chat: {
    id: 'id',
    workflowId: 'workflowId',
    userId: 'userId',
    identifier: 'identifier',
    title: 'title',
    description: 'description',
    isActive: 'isActive',
    customizations: 'customizations',
    authType: 'authType',
    password: 'password',
    allowedEmails: 'allowedEmails',
    outputConfigs: 'outputConfigs',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  form: {
    id: 'id',
    workflowId: 'workflowId',
    userId: 'userId',
    identifier: 'identifier',
    title: 'title',
    description: 'description',
    isActive: 'isActive',
    customizations: 'customizations',
    authType: 'authType',
    password: 'password',
    allowedEmails: 'allowedEmails',
    showBranding: 'showBranding',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  organization: {
    id: 'id',
    name: 'name',
    slug: 'slug',
    logo: 'logo',
    metadata: 'metadata',
    whitelabelSettings: 'whitelabelSettings',
    orgUsageLimit: 'orgUsageLimit',
    storageUsedBytes: 'storageUsedBytes',
    departedMemberUsage: 'departedMemberUsage',
    creditBalance: 'creditBalance',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  member: {
    id: 'id',
    userId: 'userId',
    organizationId: 'organizationId',
    role: 'role',
    createdAt: 'createdAt',
  },
  invitationKindEnum: { enumValues: ['organization', 'workspace'] as const },
  invitationMembershipIntentEnum: { enumValues: ['internal', 'external'] as const },
  invitationStatusEnum: {
    enumValues: ['pending', 'accepted', 'rejected', 'cancelled', 'expired'] as const,
  },
  invitation: {
    id: 'id',
    kind: 'kind',
    email: 'email',
    inviterId: 'inviterId',
    organizationId: 'organizationId',
    membershipIntent: 'membershipIntent',
    role: 'role',
    status: 'status',
    token: 'token',
    expiresAt: 'expiresAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  invitationWorkspaceGrant: {
    id: 'id',
    invitationId: 'invitationId',
    workspaceId: 'workspaceId',
    permission: 'permission',
    createdAt: 'createdAt',
  },
  workspaceModeEnum: {
    enumValues: ['personal', 'organization', 'grandfathered_shared'] as const,
  },
  workspace: {
    id: 'id',
    name: 'name',
    color: 'color',
    logoUrl: 'logoUrl',
    ownerId: 'ownerId',
    organizationId: 'organizationId',
    workspaceMode: 'workspaceMode',
    billedAccountUserId: 'billedAccountUserId',
    allowPersonalApiKeys: 'allowPersonalApiKeys',
    inboxEnabled: 'inboxEnabled',
    inboxAddress: 'inboxAddress',
    inboxProviderId: 'inboxProviderId',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workspaceFile: {
    id: 'id',
    workspaceId: 'workspaceId',
    name: 'name',
    key: 'key',
    size: 'size',
    type: 'type',
    uploadedBy: 'uploadedBy',
    deletedAt: 'deletedAt',
    uploadedAt: 'uploadedAt',
  },
  workspaceFiles: {
    id: 'id',
    key: 'key',
    userId: 'userId',
    workspaceId: 'workspaceId',
    context: 'context',
    chatId: 'chatId',
    originalName: 'originalName',
    contentType: 'contentType',
    size: 'size',
    deletedAt: 'deletedAt',
    uploadedAt: 'uploadedAt',
  },
  permissionTypeEnum: 'permissionTypeEnum',
  workspaceInvitationStatusEnum: 'workspaceInvitationStatusEnum',
  workspaceInvitation: {
    id: 'id',
    workspaceId: 'workspaceId',
    email: 'email',
    inviterId: 'inviterId',
    role: 'role',
    status: 'status',
    token: 'token',
    permissions: 'permissions',
    orgInvitationId: 'orgInvitationId',
    expiresAt: 'expiresAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  permissions: {
    id: 'id',
    userId: 'userId',
    entityType: 'entityType',
    entityId: 'entityId',
    permissionType: 'permissionType',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  memory: {
    id: 'id',
    workspaceId: 'workspaceId',
    key: 'key',
    data: 'data',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    deletedAt: 'deletedAt',
  },
  knowledgeBase: {
    id: 'id',
    userId: 'userId',
    workspaceId: 'workspaceId',
    name: 'name',
    description: 'description',
    tokenCount: 'tokenCount',
    embeddingModel: 'embeddingModel',
    embeddingDimension: 'embeddingDimension',
    chunkingConfig: 'chunkingConfig',
    deletedAt: 'deletedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  document: {
    id: 'id',
    knowledgeBaseId: 'knowledgeBaseId',
    filename: 'filename',
    fileUrl: 'fileUrl',
    fileSize: 'fileSize',
    mimeType: 'mimeType',
    chunkCount: 'chunkCount',
    tokenCount: 'tokenCount',
    characterCount: 'characterCount',
    processingStatus: 'processingStatus',
    processingStartedAt: 'processingStartedAt',
    processingCompletedAt: 'processingCompletedAt',
    processingError: 'processingError',
    enabled: 'enabled',
    archivedAt: 'archivedAt',
    deletedAt: 'deletedAt',
    userExcluded: 'userExcluded',
    tag1: 'tag1',
    tag2: 'tag2',
    tag3: 'tag3',
    tag4: 'tag4',
    tag5: 'tag5',
    tag6: 'tag6',
    tag7: 'tag7',
    number1: 'number1',
    number2: 'number2',
    number3: 'number3',
    number4: 'number4',
    number5: 'number5',
    date1: 'date1',
    date2: 'date2',
    boolean1: 'boolean1',
    boolean2: 'boolean2',
    boolean3: 'boolean3',
    connectorId: 'connectorId',
    externalId: 'externalId',
    contentHash: 'contentHash',
    sourceUrl: 'sourceUrl',
    uploadedAt: 'uploadedAt',
  },
  knowledgeBaseTagDefinitions: {
    id: 'id',
    knowledgeBaseId: 'knowledgeBaseId',
    tagSlot: 'tagSlot',
    displayName: 'displayName',
    fieldType: 'fieldType',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  embedding: {
    id: 'id',
    knowledgeBaseId: 'knowledgeBaseId',
    documentId: 'documentId',
    chunkIndex: 'chunkIndex',
    chunkHash: 'chunkHash',
    content: 'content',
    contentLength: 'contentLength',
    tokenCount: 'tokenCount',
    embedding: 'embedding',
    embeddingModel: 'embeddingModel',
    startOffset: 'startOffset',
    endOffset: 'endOffset',
    tag1: 'tag1',
    tag2: 'tag2',
    tag3: 'tag3',
    tag4: 'tag4',
    tag5: 'tag5',
    tag6: 'tag6',
    tag7: 'tag7',
    number1: 'number1',
    number2: 'number2',
    number3: 'number3',
    number4: 'number4',
    number5: 'number5',
    date1: 'date1',
    date2: 'date2',
    boolean1: 'boolean1',
    boolean2: 'boolean2',
    boolean3: 'boolean3',
    enabled: 'enabled',
    contentTsv: 'contentTsv',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  docsEmbeddings: {
    chunkId: 'chunkId',
    chunkText: 'chunkText',
    sourceDocument: 'sourceDocument',
    sourceLink: 'sourceLink',
    headerText: 'headerText',
    headerLevel: 'headerLevel',
    tokenCount: 'tokenCount',
    embedding: 'embedding',
    embeddingModel: 'embeddingModel',
    metadata: 'metadata',
    chunkTextTsv: 'chunkTextTsv',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  chatTypeEnum: 'chatTypeEnum',
  copilotChats: {
    id: 'id',
    userId: 'userId',
    workflowId: 'workflowId',
    workspaceId: 'workspaceId',
    type: 'type',
    title: 'title',
    messages: 'messages',
    model: 'model',
    conversationId: 'conversationId',
    previewYaml: 'previewYaml',
    planArtifact: 'planArtifact',
    config: 'config',
    resources: 'resources',
    lastSeenAt: 'lastSeenAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  copilotWorkflowReadHashes: {
    id: 'id',
    chatId: 'chatId',
    workflowId: 'workflowId',
    hash: 'hash',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowCheckpoints: {
    id: 'id',
    userId: 'userId',
    workflowId: 'workflowId',
    chatId: 'chatId',
    messageId: 'messageId',
    workflowState: 'workflowState',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  copilotRunStatusEnum: 'copilotRunStatusEnum',
  copilotAsyncToolStatusEnum: 'copilotAsyncToolStatusEnum',
  copilotRuns: {
    id: 'id',
    executionId: 'executionId',
    parentRunId: 'parentRunId',
    chatId: 'chatId',
    userId: 'userId',
    workflowId: 'workflowId',
    workspaceId: 'workspaceId',
    streamId: 'streamId',
    agent: 'agent',
    model: 'model',
    provider: 'provider',
    status: 'status',
    requestContext: 'requestContext',
    startedAt: 'startedAt',
    completedAt: 'completedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    error: 'error',
  },
  copilotRunCheckpoints: {
    id: 'id',
    runId: 'runId',
    pendingToolCallId: 'pendingToolCallId',
    conversationSnapshot: 'conversationSnapshot',
    agentState: 'agentState',
    providerRequest: 'providerRequest',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  copilotAsyncToolCalls: {
    id: 'id',
    runId: 'runId',
    checkpointId: 'checkpointId',
    toolCallId: 'toolCallId',
    toolName: 'toolName',
    args: 'args',
    status: 'status',
    result: 'result',
    error: 'error',
    claimedAt: 'claimedAt',
    claimedBy: 'claimedBy',
    completedAt: 'completedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  templateStatusEnum: 'templateStatusEnum',
  templateCreatorTypeEnum: 'templateCreatorTypeEnum',
  templateCreators: {
    id: 'id',
    referenceType: 'referenceType',
    referenceId: 'referenceId',
    name: 'name',
    profileImageUrl: 'profileImageUrl',
    details: 'details',
    verified: 'verified',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  templates: {
    id: 'id',
    workflowId: 'workflowId',
    name: 'name',
    details: 'details',
    creatorId: 'creatorId',
    views: 'views',
    stars: 'stars',
    status: 'status',
    tags: 'tags',
    requiredCredentials: 'requiredCredentials',
    state: 'state',
    ogImageUrl: 'ogImageUrl',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  templateStars: {
    id: 'id',
    userId: 'userId',
    templateId: 'templateId',
    starredAt: 'starredAt',
    createdAt: 'createdAt',
  },
  copilotFeedback: {
    feedbackId: 'feedbackId',
    userId: 'userId',
    chatId: 'chatId',
    userQuery: 'userQuery',
    agentResponse: 'agentResponse',
    isPositive: 'isPositive',
    feedback: 'feedback',
    workflowYaml: 'workflowYaml',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowDeploymentVersion: {
    id: 'id',
    workflowId: 'workflowId',
    version: 'version',
    name: 'name',
    description: 'description',
    state: 'state',
    isActive: 'isActive',
    createdAt: 'createdAt',
    createdBy: 'createdBy',
  },
  idempotencyKey: {
    key: 'key',
    result: 'result',
    createdAt: 'createdAt',
  },
  mcpServers: {
    id: 'id',
    workspaceId: 'workspaceId',
    createdBy: 'createdBy',
    name: 'name',
    description: 'description',
    transport: 'transport',
    url: 'url',
    headers: 'headers',
    timeout: 'timeout',
    retries: 'retries',
    enabled: 'enabled',
    lastConnected: 'lastConnected',
    connectionStatus: 'connectionStatus',
    lastError: 'lastError',
    statusConfig: 'statusConfig',
    toolCount: 'toolCount',
    lastToolsRefresh: 'lastToolsRefresh',
    totalRequests: 'totalRequests',
    lastUsed: 'lastUsed',
    deletedAt: 'deletedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  ssoProvider: {
    id: 'id',
    issuer: 'issuer',
    domain: 'domain',
    oidcConfig: 'oidcConfig',
    samlConfig: 'samlConfig',
    userId: 'userId',
    providerId: 'providerId',
    organizationId: 'organizationId',
  },
  workflowMcpServer: {
    id: 'id',
    workspaceId: 'workspaceId',
    createdBy: 'createdBy',
    name: 'name',
    description: 'description',
    isPublic: 'isPublic',
    deletedAt: 'deletedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  workflowMcpTool: {
    id: 'id',
    serverId: 'serverId',
    workflowId: 'workflowId',
    toolName: 'toolName',
    toolDescription: 'toolDescription',
    parameterSchema: 'parameterSchema',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  a2aTaskStatusEnum: 'a2aTaskStatusEnum',
  a2aAgent: {
    id: 'id',
    workspaceId: 'workspaceId',
    workflowId: 'workflowId',
    createdBy: 'createdBy',
    name: 'name',
    description: 'description',
    version: 'version',
    capabilities: 'capabilities',
    skills: 'skills',
    authentication: 'authentication',
    signatures: 'signatures',
    isPublished: 'isPublished',
    publishedAt: 'publishedAt',
    archivedAt: 'archivedAt',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  a2aTask: {
    id: 'id',
    agentId: 'agentId',
    sessionId: 'sessionId',
    status: 'status',
    messages: 'messages',
    artifacts: 'artifacts',
    executionId: 'executionId',
    metadata: 'metadata',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    completedAt: 'completedAt',
  },
  a2aPushNotificationConfig: {
    id: 'id',
    taskId: 'taskId',
    url: 'url',
    token: 'token',
    authSchemes: 'authSchemes',
    authCredentials: 'authCredentials',
    isActive: 'isActive',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  auditLog: {
    id: 'id',
    workspaceId: 'workspaceId',
    actorId: 'actorId',
    action: 'action',
    resourceType: 'resourceType',
    resourceId: 'resourceId',
    actorName: 'actorName',
    actorEmail: 'actorEmail',
    resourceName: 'resourceName',
    description: 'description',
    metadata: 'metadata',
    ipAddress: 'ipAddress',
    userAgent: 'userAgent',
    createdAt: 'createdAt',
  },
  usageLogCategoryEnum: 'usageLogCategoryEnum',
  usageLogSourceEnum: 'usageLogSourceEnum',
  usageLog: {
    id: 'id',
    userId: 'userId',
    category: 'category',
    source: 'source',
    description: 'description',
    metadata: 'metadata',
    cost: 'cost',
    workspaceId: 'workspaceId',
    workflowId: 'workflowId',
    executionId: 'executionId',
    createdAt: 'createdAt',
  },
  credentialTypeEnum: 'credentialTypeEnum',
  credential: {
    id: 'id',
    workspaceId: 'workspaceId',
    type: 'type',
    displayName: 'displayName',
    description: 'description',
    providerId: 'providerId',
    accountId: 'accountId',
    envKey: 'envKey',
    envOwnerUserId: 'envOwnerUserId',
    encryptedServiceAccountKey: 'encryptedServiceAccountKey',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  credentialMemberRoleEnum: 'credentialMemberRoleEnum',
  credentialMemberStatusEnum: 'credentialMemberStatusEnum',
  credentialMember: {
    id: 'id',
    credentialId: 'credentialId',
    userId: 'userId',
    role: 'role',
    status: 'status',
    joinedAt: 'joinedAt',
    invitedBy: 'invitedBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  pendingCredentialDraft: {
    id: 'id',
    userId: 'userId',
    workspaceId: 'workspaceId',
    providerId: 'providerId',
    displayName: 'displayName',
    description: 'description',
    credentialId: 'credentialId',
    expiresAt: 'expiresAt',
    createdAt: 'createdAt',
  },
  credentialSet: {
    id: 'id',
    organizationId: 'organizationId',
    name: 'name',
    description: 'description',
    providerId: 'providerId',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  credentialSetMemberStatusEnum: 'credentialSetMemberStatusEnum',
  credentialSetMember: {
    id: 'id',
    credentialSetId: 'credentialSetId',
    userId: 'userId',
    status: 'status',
    joinedAt: 'joinedAt',
    invitedBy: 'invitedBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  credentialSetInvitationStatusEnum: 'credentialSetInvitationStatusEnum',
  credentialSetInvitation: {
    id: 'id',
    credentialSetId: 'credentialSetId',
    email: 'email',
    token: 'token',
    invitedBy: 'invitedBy',
    status: 'status',
    expiresAt: 'expiresAt',
    acceptedAt: 'acceptedAt',
    acceptedByUserId: 'acceptedByUserId',
    createdAt: 'createdAt',
  },
  permissionGroup: {
    id: 'id',
    organizationId: 'organizationId',
    name: 'name',
    description: 'description',
    config: 'config',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    autoAddNewMembers: 'autoAddNewMembers',
  },
  permissionGroupMember: {
    id: 'id',
    permissionGroupId: 'permissionGroupId',
    userId: 'userId',
    assignedBy: 'assignedBy',
    assignedAt: 'assignedAt',
  },
  asyncJobs: {
    id: 'id',
    type: 'type',
    payload: 'payload',
    status: 'status',
    createdAt: 'createdAt',
    startedAt: 'startedAt',
    completedAt: 'completedAt',
    runAt: 'runAt',
    attempts: 'attempts',
    maxAttempts: 'maxAttempts',
    error: 'error',
    output: 'output',
    metadata: 'metadata',
    updatedAt: 'updatedAt',
  },
  knowledgeConnector: {
    id: 'id',
    knowledgeBaseId: 'knowledgeBaseId',
    connectorType: 'connectorType',
    credentialId: 'credentialId',
    encryptedApiKey: 'encryptedApiKey',
    sourceConfig: 'sourceConfig',
    syncMode: 'syncMode',
    syncIntervalMinutes: 'syncIntervalMinutes',
    status: 'status',
    lastSyncAt: 'lastSyncAt',
    lastSyncError: 'lastSyncError',
    lastSyncDocCount: 'lastSyncDocCount',
    nextSyncAt: 'nextSyncAt',
    consecutiveFailures: 'consecutiveFailures',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    archivedAt: 'archivedAt',
    deletedAt: 'deletedAt',
  },
  knowledgeConnectorSyncLog: {
    id: 'id',
    connectorId: 'connectorId',
    status: 'status',
    startedAt: 'startedAt',
    completedAt: 'completedAt',
    docsAdded: 'docsAdded',
    docsUpdated: 'docsUpdated',
    docsDeleted: 'docsDeleted',
    docsUnchanged: 'docsUnchanged',
    docsFailed: 'docsFailed',
    errorMessage: 'errorMessage',
  },
  userTableDefinitions: {
    id: 'id',
    workspaceId: 'workspaceId',
    name: 'name',
    description: 'description',
    schema: 'schema',
    metadata: 'metadata',
    maxRows: 'maxRows',
    rowCount: 'rowCount',
    archivedAt: 'archivedAt',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  userTableRows: {
    id: 'id',
    tableId: 'tableId',
    workspaceId: 'workspaceId',
    data: 'data',
    position: 'position',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    createdBy: 'createdBy',
  },
  oauthApplication: {
    id: 'id',
    name: 'name',
    icon: 'icon',
    metadata: 'metadata',
    clientId: 'clientId',
    clientSecret: 'clientSecret',
    redirectURLs: 'redirectURLs',
    type: 'type',
    disabled: 'disabled',
    userId: 'userId',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  oauthAccessToken: {
    id: 'id',
    accessToken: 'accessToken',
    refreshToken: 'refreshToken',
    accessTokenExpiresAt: 'accessTokenExpiresAt',
    refreshTokenExpiresAt: 'refreshTokenExpiresAt',
    clientId: 'clientId',
    userId: 'userId',
    scopes: 'scopes',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  oauthConsent: {
    id: 'id',
    clientId: 'clientId',
    userId: 'userId',
    scopes: 'scopes',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
    consentGiven: 'consentGiven',
  },
  jwks: {
    id: 'id',
    publicKey: 'publicKey',
    privateKey: 'privateKey',
    createdAt: 'createdAt',
  },
  mothershipInboxAllowedSender: {
    id: 'id',
    workspaceId: 'workspaceId',
    email: 'email',
    label: 'label',
    addedBy: 'addedBy',
    createdAt: 'createdAt',
  },
  mothershipInboxTask: {
    id: 'id',
    workspaceId: 'workspaceId',
    fromEmail: 'fromEmail',
    fromName: 'fromName',
    subject: 'subject',
    bodyPreview: 'bodyPreview',
    bodyText: 'bodyText',
    bodyHtml: 'bodyHtml',
    emailMessageId: 'emailMessageId',
    inReplyTo: 'inReplyTo',
    responseMessageId: 'responseMessageId',
    agentmailMessageId: 'agentmailMessageId',
    status: 'status',
    chatId: 'chatId',
    triggerJobId: 'triggerJobId',
    resultSummary: 'resultSummary',
    errorMessage: 'errorMessage',
    rejectionReason: 'rejectionReason',
    hasAttachments: 'hasAttachments',
    ccRecipients: 'ccRecipients',
    createdAt: 'createdAt',
    processingStartedAt: 'processingStartedAt',
    completedAt: 'completedAt',
  },
  mothershipInboxWebhook: {
    id: 'id',
    workspaceId: 'workspaceId',
    webhookId: 'webhookId',
    secret: 'secret',
    createdAt: 'createdAt',
  },
  academyCertStatusEnum: 'academyCertStatusEnum',
  academyCertificate: {
    id: 'id',
    userId: 'userId',
    courseId: 'courseId',
    status: 'status',
    issuedAt: 'issuedAt',
    expiresAt: 'expiresAt',
    certificateNumber: 'certificateNumber',
    metadata: 'metadata',
    createdAt: 'createdAt',
  },
  dataDrains: {
    id: 'id',
    organizationId: 'organizationId',
    name: 'name',
    source: 'source',
    destinationType: 'destinationType',
    destinationConfig: 'destinationConfig',
    destinationCredentials: 'destinationCredentials',
    scheduleCadence: 'scheduleCadence',
    enabled: 'enabled',
    cursor: 'cursor',
    lastRunAt: 'lastRunAt',
    lastSuccessAt: 'lastSuccessAt',
    createdBy: 'createdBy',
    createdAt: 'createdAt',
    updatedAt: 'updatedAt',
  },
  dataDrainRuns: {
    id: 'id',
    drainId: 'drainId',
    status: 'status',
    trigger: 'trigger',
    startedAt: 'startedAt',
    finishedAt: 'finishedAt',
    rowsExported: 'rowsExported',
    bytesWritten: 'bytesWritten',
    cursorBefore: 'cursorBefore',
    cursorAfter: 'cursorAfter',
    error: 'error',
    locators: 'locators',
  },
  /** Custom type export for tsvector */
  tsvector: 'tsvector',
}
