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

@@ -16,7 +16,6 @@ type genColumns struct {
Key string `gorm:"column:Key"`
Desc string `gorm:"column:Comment"`
Null string `gorm:"column:Null"`
Extra string `gorm:"Extra"`
Default *string `gorm:"column:Default"`
}

View File

@@ -153,7 +153,6 @@ func (m *mysqlModel) getTableElement(orm *mysqldb.MySqlDB, tab string) (el []mod
var tmp model.ColumnsInfo
tmp.Name = v.Field
tmp.Type = v.Type
tmp.Extra = v.Extra
FixNotes(&tmp, v.Desc) // 分析表注释
if v.Default != nil {