dependencies

This commit is contained in:
Jan Prochazka
2020-02-02 17:27:33 +01:00
parent b76c12c7d7
commit 9f3679fefb
4 changed files with 34 additions and 5 deletions

3
types/dbinfo.d.ts vendored
View File

@@ -8,7 +8,7 @@ export interface ColumnReference {
refColumnName?: string;
}
export interface ConstraintInfo {
export interface ConstraintInfo extends NamedObjectInfo {
constraintName: string;
constraintType: string;
}
@@ -44,6 +44,7 @@ export interface TableInfo extends NamedObjectInfo {
columns: ColumnInfo[];
primaryKey?: PrimaryKeyInfo;
foreignKeys: ForeignKeyInfo[];
dependencies?: ForeignKeyInfo[];
}
export interface DatabaseInfo {
tables: TableInfo[];