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": { Company: { id: Generated; legalName: string; taxId: string | null; registrationNumber: string | null; baseCurrencyId: string | null; street: string | null; city: string | null; state: string | null; postalCode: string | null; country: string | null; status: "DRAFT" | "ACTIVE" | "INACTIVE"; createdAt: Generated; updatedAt: Generated; } Department: { id: Generated; code: string; name: string; companyId: string; parentDepartmentId: string | null; status: "ACTIVE" | "INACTIVE"; createdAt: Generated; updatedAt: Generated; } Site: { id: Generated; name: string; type: string; companyId: string; street: string; city: string; state: string | null; postalCode: string; country: string; timezone: string; status: "ACTIVE" | "INACTIVE"; 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;