fix 回滚pid gorm
This commit is contained in:
parent
14c031839f
commit
1c78e44746
@ -37,14 +37,14 @@ type Product struct {
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
|
||||
Name string `gorm:"index" json:"name"`
|
||||
Pid string `gorm:"index:,unique,composite:product_pid_website_idx;not null;index:,unique" json:"pid"`
|
||||
Pid string `gorm:"unique;not null" json:"pid"`
|
||||
Color string `json:"color"`
|
||||
Link string `json:"link"`
|
||||
Image string `json:"image"`
|
||||
Orderable bool `json:"orderable"`
|
||||
|
||||
OriginalPrice float64 `json:"originalPrice"`
|
||||
Website Website `json:"website" gorm:"index:,unique,composite:product_pid_website_idx"`
|
||||
Website Website `json:"website"`
|
||||
DiscPercent int `json:"discPercent" gorm:"index"` //折扣力度
|
||||
CNYPrice float64 `json:"cnyPrice"` // 最终的价格
|
||||
CalMark string `json:"calMark"` //计算价格的过程
|
||||
|
Loading…
Reference in New Issue
Block a user