Update model.go
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user