Update model.go

This commit is contained in:
xxj
2022-01-17 16:58:03 +08:00
parent ce6259fb05
commit d744f25b88

View File

@@ -246,6 +246,7 @@ func (m *_Model) genForeignKey(col ColumnsInfo) (fklist []genstruct.GenElement)
tmp.AddTag(_tagGorm, "joinForeignKey:"+col.Name) // association_foreignkey tmp.AddTag(_tagGorm, "joinForeignKey:"+col.Name) // association_foreignkey
tmp.AddTag(_tagGorm, "foreignKey:"+v.ColumnName) tmp.AddTag(_tagGorm, "foreignKey:"+v.ColumnName)
tmp.AddTag(_tagGorm, "references:"+getCamelName(col.Name))
// json tag // json tag
if config.GetIsWEBTag() { if config.GetIsWEBTag() {