@wbce-d9/schema
Version:
Utility for extracting information about existing DB schema
21 lines (20 loc) • 574 B
TypeScript
export interface Column {
name: string;
table: string;
data_type: string;
default_value: string | null;
max_length: number | null;
numeric_precision: number | null;
numeric_scale: number | null;
is_nullable: boolean;
is_unique: boolean;
is_primary_key: boolean;
is_generated: boolean;
generation_expression?: string | null;
has_auto_increment: boolean;
foreign_key_table: string | null;
foreign_key_column: string | null;
comment?: string | null;
schema?: string;
foreign_key_schema?: string | null;
}