- add sku.index for jd spu sku index.

This commit is contained in:
gazebo
2019-01-04 14:04:44 +08:00
parent 83196acf9c
commit ea4844fa54
2 changed files with 12 additions and 2 deletions

View File

@@ -184,6 +184,7 @@ type Sku struct {
CategoryID int `orm:"column(category_id)" json:"categoryID"` // 特殊类别,一般用于秒杀,特价之类的特殊类别
NameID int `orm:"column(name_id)" json:"nameID"` // todo 这个索引应该要求唯一
Index int `json:"-"`
Comment string `orm:"size(255)" json:"comment"`
SpecQuality float32 `json:"specQuality"`
SpecUnit string `orm:"size(8)" json:"specUnit"` // 质量或容量