mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
25 lines
552 B
TypeScript
25 lines
552 B
TypeScript
export interface NamedObjectInfo {
|
|
pureName: string;
|
|
schemaName: string;
|
|
}
|
|
export interface ColumnInfo {
|
|
columnName: string;
|
|
notNull: boolean;
|
|
autoIncrement: boolean;
|
|
dataType: string;
|
|
precision: number;
|
|
scale: number;
|
|
length: number;
|
|
computedExpression: string;
|
|
isPersisted: boolean;
|
|
isSparse: boolean;
|
|
defaultValue: string;
|
|
defaultConstraint: string;
|
|
}
|
|
export interface TableInfo extends NamedObjectInfo {
|
|
columns: ColumnInfo[];
|
|
}
|
|
export interface DatabaseInfo {
|
|
tables: TableInfo[];
|
|
}
|