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": { BankAccount: { id: Generated; companyId: string; currencyId: string; cashAccountId: string; incomingClearingAccountId: string | null; outgoingClearingAccountId: string | null; bankName: string; accountNumberMasked: string; status: "ACTIVE" | "INACTIVE"; createdAt: Generated; updatedAt: Generated; } BankReconciliation: { id: Generated; bankAccountId: string; reconciliationDate: Timestamp; confirmedAt: Timestamp; action: "RECONCILE" | "UNRECONCILE"; createdAt: Generated; updatedAt: Generated; } BankReconciliationItem: { id: Generated; bankReconciliationId: string; sourceType: "BANK_STATEMENT_LINE" | "INCOMING_PAYMENT" | "OUTGOING_PAYMENT"; sourceId: string; clearedAmount: string; createdAt: Generated; updatedAt: Generated; } BankStatement: { id: Generated; bankAccountId: string; statementNumber: string; statementDate: Timestamp; openingBalance: string; closingBalance: string; importedAt: Timestamp; createdAt: Generated; updatedAt: Generated; } BankStatementLine: { id: Generated; bankStatementId: string; lineNumber: number; bookingDate: Timestamp; valueDate: Timestamp | null; flowDirection: "CREDIT" | "DEBIT"; amount: string; reconciliationStatus: "UNRECONCILED" | "RECONCILED"; currentBankReconciliationId: string | null; bankReference: string | null; endToEndId: string | null; counterpartyName: string | null; counterpartyAccount: string | null; description: string | null; 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;