@datazod/zod-sql
Version:
Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL
23 lines • 567 B
TypeScript
import type { ExtendedOptions, ColumnDefinition } from '@datazod/shared';
/**
* SQL-specific table options
*/
export interface TableOptions extends ExtendedOptions {
}
/**
* Table options with migration support
*/
export interface TableWithMigrationOptions extends TableOptions {
migrate?: boolean;
allowDrop?: boolean;
debug?: boolean;
}
/**
* Table structure representation
*/
export interface TableStructure {
columns: ColumnDefinition[];
primaryKeys: string[];
indexes: Record<string, string[]>;
}
//# sourceMappingURL=table.d.ts.map