chore: fix gorm tag

This commit is contained in:
a631807682 2022-08-05 00:41:09 +08:00
parent 6e03b97e26
commit d394eaf8ca
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -64,8 +64,8 @@ type Language struct {
type Coupon struct {
ID int `gorm:"primarykey; size:255"`
AppliesToProduct []*CouponProduct `gorm:"foreignKey:CouponId;constraint:OnDelete:CASCADE"`
AmountOff uint32 `gorm:"amount_off"`
PercentOff float32 `gorm:"percent_off"`
AmountOff uint32 `gorm:"column:amount_off"`
PercentOff float32 `gorm:"column:percent_off"`
}
type CouponProduct struct {