---初始化后台管理web页面项目
This commit is contained in:
30
src/model/generator/tableInfo.ts
Normal file
30
src/model/generator/tableInfo.ts
Normal file
@ -0,0 +1,30 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user