@wbce-d9/schema
Version:
Utility for extracting information about existing DB schema
11 lines (10 loc) • 379 B
TypeScript
export type ForeignKey = {
table: string;
column: string;
foreign_key_table: string;
foreign_key_column: string;
foreign_key_schema?: string;
constraint_name: null | string;
on_update: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
on_delete: null | 'NO ACTION' | 'RESTRICT' | 'CASCADE' | 'SET NULL' | 'SET DEFAULT';
};