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": { Role: { id: Generated; name: string; description: string | null; status: "ACTIVE" | "INACTIVE"; permissions: string[] | null; createdAt: Generated; updatedAt: Generated; } User: { id: Generated; email: string; name: string; status: "PENDING" | "ACTIVE" | "INACTIVE"; permissions: string[] | null; createdAt: Generated; updatedAt: Generated; } UserRole: { id: Generated; userId: string; roleId: 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;