add autoIncrement:true

autoIncrement:true
This commit is contained in:
xxj
2022-07-05 20:36:45 +08:00
parent aa53e84c49
commit fc112a736b
4 changed files with 1 additions and 7 deletions

View File

@@ -140,9 +140,6 @@ func (m *_Model) genTableElement(cols []ColumnsInfo) (el []genstruct.GenElement)
if len(_tagGorm) > 0 {
// not simple output. 默认只输出gorm主键和字段标签
if !config.GetSimple() {
if strings.EqualFold(v.Extra, "auto_increment") {
tmp.AddTag(_tagGorm, "autoIncrement:true")
}
for _, v1 := range v.Index {
switch v1.Key {
// case ColumnsKeyDefault: