import { createGetDB, type Generated, type Timestamp, type NamespaceDB, type NamespaceInsertable, type NamespaceSelectable, type NamespaceTable, type NamespaceTableName, type NamespaceTransaction, type NamespaceUpdateable, } from "@tailor-platform/sdk/kysely"; export interface Namespace { "main-db": { Pipeline: { id: Generated; name: string; description: string | null; pipelineType: string; createdByUserId: string; status: "ACTIVE" | "ARCHIVED"; locked: boolean; itemNumberSeq: number | null; createdAt: Generated; updatedAt: Generated; } PipelineItem: { id: Generated; pipelineId: string; stageId: string; title: string; description: string | null; assigneeId: string | null; priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT"; dueDate: Timestamp | null; position: number; itemNumber: number; lifecycle: "DRAFT" | "OPEN" | "CLOSED"; createdAt: Generated; updatedAt: Generated; } PipelineItemChange: { id: Generated; itemId: string; changedByUserId: string; changeType: "CONTENT" | "FIELD" | "LIFECYCLE" | "LABEL"; fieldName: "TITLE" | "DESCRIPTION" | "ASSIGNEE" | "PRIORITY" | "DUE_DATE" | "LIFECYCLE" | "LABEL"; prevValue: string | null; newValue: string | null; createdAt: Generated; updatedAt: Generated; } PipelineItemComment: { id: Generated; itemId: string; authorUserId: string; body: string; createdAt: Generated; updatedAt: Generated; } PipelineItemLabel: { id: Generated; itemId: string; labelId: string; createdAt: Generated; updatedAt: Generated; } PipelineLabel: { id: Generated; pipelineId: string; name: string; color: string | null; description: string | null; createdAt: Generated; updatedAt: Generated; } PipelineStage: { id: Generated; pipelineId: string; name: string; position: number; category: "NOT_STARTED" | "IN_PROGRESS" | "DONE" | "CANCELED"; color: string | null; createdAt: Generated; updatedAt: Generated; } PipelineStageTransition: { id: Generated; itemId: string; fromStageId: string; toStageId: string; movedByUserId: string; createdAt: Generated; updatedAt: Generated; } } } export const getDB = createGetDB(); export type DB = NamespaceDB; export type Transaction = NamespaceTransaction; type TableName = NamespaceTableName; export type Table = NamespaceTable; export type Insertable = NamespaceInsertable; export type Selectable = NamespaceSelectable; export type Updateable = NamespaceUpdateable;