- sku category

This commit is contained in:
gazebo
2018-09-10 07:48:29 +08:00
parent ce56d774a2
commit 7d7b2e29e9

View File

@@ -67,9 +67,9 @@ func (*SkuVendorCategory) TableUnique() [][]string {
// 基础数据,除了商家商品类别外,基本都以京东到家为准
type SkuCategory struct {
ModelIDCUL
ModelIDCULD
Name string `orm:"size(255);unique" json:"name"`
Name string `orm:"size(255)" json:"name"`
ParentID int `orm:"column(parent_id)" json:"parentID"`
Level int8 `json:"level"`
Type int8 `json:"type"` // 类别类型,即是普通类别还是特殊用于做活动的类别
@@ -84,6 +84,12 @@ type SkuCategory struct {
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
}
func (*SkuCategory) TableUnique() [][]string {
return [][]string{
[]string{"Name", "DeletedAt"},
}
}
type SkuName struct {
ModelIDCUL