This commit is contained in:
苏尹岚
2021-01-05 16:09:23 +08:00
parent 41d3c9cdd2
commit ac6e76a4a6
2 changed files with 14 additions and 0 deletions

View File

@@ -761,3 +761,16 @@ func (*StoreAudit) TableIndex() [][]string {
[]string{"UserID"}, []string{"UserID"},
} }
} }
type Brand struct {
ModelIDCULD
Name string `orm:"size(255)" json:"name"` //品牌名
Logo string `orm:"size(255)" json:"logo"` //品牌logo
}
func (*Brand) TableUnique() [][]string {
return [][]string{
[]string{"Name"},
}
}

View File

@@ -40,6 +40,7 @@ func Init() {
orm.RegisterModel(&model.SkuExinfoMap{}) orm.RegisterModel(&model.SkuExinfoMap{})
orm.RegisterModel(&model.StorePushClient{}) orm.RegisterModel(&model.StorePushClient{})
orm.RegisterModel(&model.StoreAudit{}) orm.RegisterModel(&model.StoreAudit{})
orm.RegisterModel(&model.Brand{})
orm.RegisterModel(&model.AuthBind{}, &model.User{}) orm.RegisterModel(&model.AuthBind{}, &model.User{})