From 031ef18846ce1a6393c8960e3ca844e89f5811c2 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 6 Nov 2023 17:39:31 +0800 Subject: [PATCH] feat: change coupon_set_info price gorm tag --- tables/t_coupon_set_info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tables/t_coupon_set_info.go b/tables/t_coupon_set_info.go index 4cfa9701..3f6cd9ae 100644 --- a/tables/t_coupon_set_info.go +++ b/tables/t_coupon_set_info.go @@ -19,7 +19,7 @@ type CouponSetInfo struct { Root string `gorm:"column:root;default:;NOT NULL"` Name string `gorm:"column:name;default:;NOT NULL"` Note string `gorm:"column:note;default:;NOT NULL"` - Price decimal.Decimal `gorm:"price:amount; type:decimal(60,0) NOT NULL DEFAULT '0' COMMENT '';"` + Price decimal.Decimal `gorm:"price:amount; type:decimal(50,10) NOT NULL DEFAULT '0' COMMENT '';"` Num int `gorm:"column:num;default:0;NOT NULL"` BeginAt int64 `gorm:"column:begin_at;default:0;NOT NULL"` ExpiredAt int64 `gorm:"column:expired_at;default:0;NOT NULL"`