互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.7 KiB

package models
import "time"
const BSWalletHistoryTableName = TableNamePrefix + "bully_screen_wallet_history"
type BullyScreenWalletHistory struct {
Id int64 `json:"id" xorm:"not null autoincr pk INT(11)"`
CustomerId int64 `json:"customer_id" xorm:"not null default 0 comment('客户表id') INT(11)"`
UserId int64 `json:"user_id" xorm:"not null default 0 comment('客户表id') INT(11)"`
Money float64 `json:"money" xorm:"not null default 0.00 comment('金额[分正负]') DECIMAL(10)"`
HisBalance string `json:"his_balance" xorm:"not null default '0' comment('历史霸屏余额') VARCHAR(128)"`
Type string `json:"type" xorm:"not null default '' comment('记录类型 霸屏/提现') VARCHAR(128)"`
BullyScreenUsername string `json:"bully_screen_username" xorm:"not null default '' comment('发起霸屏的那个用户的用户名') VARCHAR(128)"`
BullyScreenAccount string `json:"bully_screen_account" xorm:"not null default '' comment('支付霸屏的账户 只支持支付宝或微信') VARCHAR(128)"`
CashDrawId int64 `json:"cash_draw_id" xorm:"not null default 0 comment('cash_draw提现表id') INT(11)"`
Status string `json:"status" xorm:"not null default '交易成功' comment('交易状态') VARCHAR(128)"`
Mark string `json:"mark" xorm:"not null comment('备注') TEXT"`
CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建时间') DATETIME"`
UpdatedAt time.Time `json:"updated_at" xorm:"not null updated default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
}
func (t *BullyScreenWalletHistory) TableName() string {
return BSWalletHistoryTableName
}