Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
7ec54b711e
2 changed files with 36 additions and 0 deletions
  1. +21
    -0
      src/models/red_packet_subsidy.go
  2. +15
    -0
      src/models/red_packet_subsidy_flow.go

+ 21
- 0
src/models/red_packet_subsidy.go View File

@@ -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)"`
}

+ 15
- 0
src/models/red_packet_subsidy_flow.go View File

@@ -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)"`
}

Loading…
Cancel
Save