diff --git a/src/models/red_packet_subsidy.go b/src/models/red_packet_subsidy.go new file mode 100644 index 0000000..ee892e2 --- /dev/null +++ b/src/models/red_packet_subsidy.go @@ -0,0 +1,21 @@ +package models + +import ( + "time" +) + +type RedPacketSubsidy struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + YesterdayMoney string `json:"yesterday_money" xorm:"default 0.00 DECIMAL(20,2)"` + NowMoney string `json:"now_money" xorm:"default 0.00 DECIMAL(20,2)"` + Date int `json:"date" xorm:"default 0 INT(11)"` + CreateTime time.Time `json:"create_time" xorm:"DATETIME"` + YesterdayNum int `json:"yesterday_num" xorm:"default 0 INT(11)"` + YesterdayUserNum int `json:"yesterday_user_num" xorm:"default 0 INT(11)"` + NowStoreNum int `json:"now_store_num" xorm:"default 0 INT(11)"` + NowNum int `json:"now_num" xorm:"default 0 INT(11)"` + NowUserNum int `json:"now_user_num" xorm:"default 0 INT(11)"` + BastMoney string `json:"bast_money" xorm:"default 0.00 DECIMAL(20,2)"` + MinMoney string `json:"min_money" xorm:"default 0.00 DECIMAL(20,2)"` + OtherMoney string `json:"other_money" xorm:"DECIMAL(20,2)"` +} diff --git a/src/models/red_packet_subsidy_flow.go b/src/models/red_packet_subsidy_flow.go new file mode 100644 index 0000000..ad7b480 --- /dev/null +++ b/src/models/red_packet_subsidy_flow.go @@ -0,0 +1,15 @@ +package models + +import ( + "time" +) + +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)"` + 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)"` +}