新表,商品映射平台类目

This commit is contained in:
苏尹岚
2020-07-27 17:50:32 +08:00
parent 880f18b519
commit a431774fed
2 changed files with 14 additions and 0 deletions

View File

@@ -302,3 +302,16 @@ func (*SkuExinfoMap) TableIndex() [][]string {
[]string{"NameID", "VendorID", "BeginAt", "EndAt"},
}
}
type SkuVendorCategoryMap struct {
ModelIDCULD
NameID int `orm:"column(name_id)" json:"nameID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
VendorCategoryID string `orm:"column(vendor_category_id)" json:"vendorCategoryID"`
}
func (*SkuVendorCategoryMap) TableIndex() [][]string {
return [][]string{
[]string{"NameID", "VendorID", "VendorCategoryID", "DeletedAt"},
}
}

View File

@@ -31,6 +31,7 @@ func Init() {
orm.RegisterModel(&model.Place{})
orm.RegisterModel(&model.Store{}, &model.StoreSub{}, &model.StoreMap{}, &model.StoreCourierMap{}, &model.StoreCategoryMap{})
orm.RegisterModel(&model.SkuVendorCategory{}, &model.StoreSkuCategoryMap{}, &model.SkuName{}, &model.Sku{}, &model.SkuNamePlaceBind{}, &model.StoreSkuBind{})
orm.RegisterModel(&model.SkuVendorCategoryMap{}) //商品映射平台类目
orm.RegisterModel(&model.StoreSkuBindHistory{})
orm.RegisterModel(&model.StoreSkuAudit{})
orm.RegisterModel(&model.SkuCategory{})