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": { Product: { id: Generated; code: string; name: string; description: string | null; unitId: string; status: "DRAFT" | "ACTIVE" | "ARCHIVED"; createdAt: Generated; updatedAt: Generated; } ProductAttribute: { id: Generated; code: string; name: string; createdAt: Generated; updatedAt: Generated; } ProductAttributeAssignment: { id: Generated; productId: string; attributeId: string; valueId: string; createdAt: Generated; updatedAt: Generated; } ProductAttributeValue: { id: Generated; attributeId: string; label: string; createdAt: Generated; updatedAt: Generated; } ProductCategory: { id: Generated; code: string; name: string; parentId: string | null; createdAt: Generated; updatedAt: Generated; } ProductCategoryAssignment: { id: Generated; productId: string; categoryId: string; createdAt: Generated; updatedAt: Generated; } ProductVariant: { id: Generated; productId: string; axisValueKey: string; itemId: 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;