From f0b54bcf86684345f267069f76a68fbc28c69972 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 15 Nov 2024 13:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/red_packet_subsidy_flow.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/red_packet_subsidy_flow.go b/src/models/red_packet_subsidy_flow.go index f5f264b..208acc5 100644 --- a/src/models/red_packet_subsidy_flow.go +++ b/src/models/red_packet_subsidy_flow.go @@ -6,11 +6,11 @@ import ( type RedPacketSubsidyFlow struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` - Date int `json:"date" xorm:"default 0 unique(date) INT(11)"` + Date int `json:"date" xorm:"default 0 INT(11)"` CreateTime time.Time `json:"create_time" xorm:"DATETIME"` Money string `json:"money" xorm:"default 0.00 DECIMAL(20,2)"` OtherMoney string `json:"other_money" xorm:"DECIMAL(20,2)"` - Uid int `json:"uid" xorm:"default 0 unique(date) INT(11)"` - StoreId int `json:"store_id" xorm:"default 0 unique(date) INT(11)"` + Uid int `json:"uid" xorm:"default 0 INT(11)"` + StoreId int `json:"store_id" xorm:"default 0 INT(11)"` IsPop int `json:"is_pop" xorm:"default 0 comment('是否弹窗') INT(1)"` }