export interface Table { description?: string | null; tableName: string; tableType: string; } export interface Enum { name: string; description?: string | null; values: string[]; } export interface Index { name: string; } export interface Column { name: string; /** * Name of the data type like "timestamp with time zone" */ dataType: string; /** * Native/udt datatype name like "timestamptz" */ rawType: string; isNullable: boolean; defaultValue?: string | null; description?: string | null; isArray: boolean; indexes?: Index[] | null; } export type TableWithColumns = Table & { columns: C[]; }; export interface SchemaInfo { tables?: TableWithColumns[]; enums?: Enum[]; }