- sku category
This commit is contained in:
@@ -67,9 +67,9 @@ func (*SkuVendorCategory) TableUnique() [][]string {
|
|||||||
|
|
||||||
// 基础数据,除了商家商品类别外,基本都以京东到家为准
|
// 基础数据,除了商家商品类别外,基本都以京东到家为准
|
||||||
type SkuCategory struct {
|
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"`
|
ParentID int `orm:"column(parent_id)" json:"parentID"`
|
||||||
Level int8 `json:"level"`
|
Level int8 `json:"level"`
|
||||||
Type int8 `json:"type"` // 类别类型,即是普通类别还是特殊用于做活动的类别
|
Type int8 `json:"type"` // 类别类型,即是普通类别还是特殊用于做活动的类别
|
||||||
@@ -84,6 +84,12 @@ type SkuCategory struct {
|
|||||||
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
|
JdSyncStatus int8 `orm:"default(2)" json:"jdSyncStatus"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (*SkuCategory) TableUnique() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"Name", "DeletedAt"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type SkuName struct {
|
type SkuName struct {
|
||||||
ModelIDCUL
|
ModelIDCUL
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user