/** * PostgreSQL column types supported by the ORM */ export type ColumnType = 'smallint' | 'integer' | 'bigint' | 'decimal' | 'numeric' | 'real' | 'double precision' | 'smallserial' | 'serial' | 'bigserial' | 'money' | 'varchar' | 'char' | 'text' | 'bytea' | 'timestamp' | 'timestamptz' | 'date' | 'time' | 'timetz' | 'interval' | 'boolean' | 'uuid' | 'json' | 'jsonb' | 'inet' | 'cidr' | 'macaddr' | 'macaddr8' | 'point' | 'line' | 'lseg' | 'box' | 'path' | 'polygon' | 'circle' | 'array' | string; /** * TypeScript type mapping for PostgreSQL types */ export type TypeScriptType = T extends 'smallint' | 'integer' | 'bigint' | 'serial' | 'smallserial' | 'bigserial' ? number : T extends 'decimal' | 'numeric' | 'real' | 'double precision' | 'money' ? number : T extends 'varchar' | 'char' | 'text' ? string : T extends 'bytea' ? Buffer : T extends 'timestamp' | 'timestamptz' | 'date' | 'time' | 'timetz' ? Date : T extends 'interval' ? string : T extends 'boolean' ? boolean : T extends 'uuid' ? string : T extends 'json' | 'jsonb' ? any : T extends 'inet' | 'cidr' | 'macaddr' | 'macaddr8' ? string : T extends 'point' | 'line' | 'lseg' | 'box' | 'path' | 'polygon' | 'circle' ? any : T extends 'array' ? any[] : any; /** * Simplified type names for common PostgreSQL types */ export declare const TypeAliases: { int: "integer"; float: "double precision"; datetime: "timestamp"; string: "text"; bool: "boolean"; }; export type TypeAlias = keyof typeof TypeAliases; //# sourceMappingURL=column-types.d.ts.map