forked from mirror/gorm
chore: fix gorm tag (#5577)
This commit is contained in:
parent
6e03b97e26
commit
f223279384
|
@ -64,8 +64,8 @@ type Language struct {
|
||||||
type Coupon struct {
|
type Coupon struct {
|
||||||
ID int `gorm:"primarykey; size:255"`
|
ID int `gorm:"primarykey; size:255"`
|
||||||
AppliesToProduct []*CouponProduct `gorm:"foreignKey:CouponId;constraint:OnDelete:CASCADE"`
|
AppliesToProduct []*CouponProduct `gorm:"foreignKey:CouponId;constraint:OnDelete:CASCADE"`
|
||||||
AmountOff uint32 `gorm:"amount_off"`
|
AmountOff uint32 `gorm:"column:amount_off"`
|
||||||
PercentOff float32 `gorm:"percent_off"`
|
PercentOff float32 `gorm:"column:percent_off"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CouponProduct struct {
|
type CouponProduct struct {
|
||||||
|
|
Loading…
Reference in New Issue