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": { Currency: { id: Generated; code: string; name: string; symbol: string; decimalPlaces: number; isBaseCurrency: boolean; status: "ACTIVE" | "INACTIVE"; createdAt: Generated; updatedAt: Generated; } ExchangeRate: { id: Generated; sourceCurrencyId: string; targetCurrencyId: string; rate: number; effectiveDate: Timestamp; createdAt: Generated; updatedAt: Generated; } Unit: { id: Generated; name: string; symbol: string; categoryId: string; conversionFactor: number; roundingPrecision: number; status: "ACTIVE" | "INACTIVE"; createdAt: Generated; updatedAt: Generated; } UoMCategory: { id: Generated; name: string; description: string | null; referenceUnitId: string | null; 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;