31 lines
704 B
Go
31 lines
704 B
Go
package model
|
||
|
||
type StoreSkuCategoryMap struct {
|
||
ModelIDCUL
|
||
|
||
StoreID int `orm:"column(store_id)"`
|
||
SkuCategoryID int `orm:"column(sku_category_id)"`
|
||
|
||
ElmID int64 `orm:"column(elm_id);index"`
|
||
EbaiID int64 `orm:"column(ebai_id);index"`
|
||
}
|
||
|
||
type StoreSkuBind struct {
|
||
ModelIDCUL
|
||
|
||
StoreID int `orm:"column(store_id)"`
|
||
SkuID int `orm:"column(sku_id)"`
|
||
SubStoreID int `orm:"column(sub_store_id)"`
|
||
Price int // 单位为分,不用int64的原因是这里不需要累加
|
||
Status int
|
||
|
||
ElmID int64 `orm:"column(elm_id);index"`
|
||
EbaiID int64 `orm:"column(ebai_id);index"`
|
||
}
|
||
|
||
func (*StoreSkuBind) TableUnique() [][]string {
|
||
return [][]string{
|
||
[]string{"StoreID", "SkuID"},
|
||
}
|
||
}
|