31 lines
442 B
TypeScript
31 lines
442 B
TypeScript
export interface TableInfo {
|
|
//表名
|
|
tableName: string;
|
|
//列信息
|
|
columnInfo: ColumnInfo[];
|
|
}
|
|
|
|
export interface ColumnInfo {
|
|
//列名
|
|
columnName: string;
|
|
//列类型
|
|
columnType: ColumnType;
|
|
//列长度
|
|
columnLength: string;
|
|
//是否主键
|
|
isPrimaryKey: boolean;
|
|
//是否可空
|
|
isNullable: boolean;
|
|
}
|
|
|
|
export enum ColumnType {
|
|
//字符串
|
|
STRING,
|
|
//数字
|
|
NUMBER,
|
|
//布尔
|
|
BOOL,
|
|
//时间
|
|
DATE,
|
|
}
|