增加表字段定义

This commit is contained in:
白茶清欢 2023-04-11 20:06:28 +08:00
parent 860fe73996
commit f49e97e6a1
2 changed files with 11 additions and 0 deletions

View File

@ -113,3 +113,13 @@ func ({DAO_RECEIVER} *{DATA_STRUCT_DAO}) Create(dbInstance *gorm.DB, data *{DATA
}
`
)
// Field ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 20:05 2023/4/11
type Field struct {
Name string `json:"name"` // 字段名
Type string `json:"type"` // 字段类型
}

View File

@ -31,6 +31,7 @@ type BasicTableInfo struct {
ModelStruct string
PrimaryField string
PrimaryFieldType string
TableFieldList []Field // 表字段列表
}
// ParseCreateTableSql 解析建表sql