Update model.go

master
xxj 3 years ago
parent ce6259fb05
commit d744f25b88

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

Loading…
Cancel
Save