knex-schema-inspector
Version:
Utility for extracting information about existing DB schema
23 lines (22 loc) • 415 B
text/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';
};