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.
31 lines
2.0 KiB
31 lines
2.0 KiB
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const RewardWalletHistoryTableName = TableNamePrefix + "reward_wallet_history"
|
|
|
|
//客户打赏得钱包流水
|
|
type RewardWalletHistory struct {
|
|
Id int64 `json:"id" xorm:"not null pk autoincr INT(11)"`
|
|
RewardHistoryId int64 `json:"reward_history_id" xorm:"not null default(0) comment('打赏历史表id') INT(11)"`
|
|
CustomerId int64 `json:"customer_id" xrom:"not null comment('客户表id') INT(11)"`
|
|
Money float64 `json:"money" xorm:"not null default(0.00) comment('金额[分正负]') DECIMAL(10)"`
|
|
HisBalance string `json:"his_balance" xrom:"not null default('0') comment('历史红包余额') VARCHAR(255)"`
|
|
Type string `json:"type" xorm:"not null default('打赏') comment('记录类型 打赏/提现') VARCHAR(255)"`
|
|
UserId int64 `json:"user_id" xorm:"not null default(0) comment('用户表id') INT(11)"`
|
|
RewardUsername string `json:"reward_username" xorm:"not null default('') comment('发起打赏的那个用户的用户名') VARCHAR(255)"`
|
|
RewardAccount string `json:"reward_account" xorm:"not null default('') comment('支付打赏的账户 手机号') VARCHAR(255)"`
|
|
CashMethod string `json:"cash_method" xorm:"not null default('') comment('提现方式') VARCHAR(255)"`
|
|
ReceiveCashAccount string `json:"receive_cash_account" xorm:"not null default('') comment('提现收款账户') VARCHAR(255)"`
|
|
Status string `json:"status" xorm:"not null default('交易失败') comment('交易状态') VARCHAR(255)"`
|
|
Mark string `json:"mark" xorm:"not null comment('') TEXT"`
|
|
IsDelete bool `json:"is_delete" xorm:"not null default(0) comment('软删除') TINYINT(1)"`
|
|
CreatedAt time.Time `json:"created_at" xorm:"not null created comment('创建时间') DATETIME"`
|
|
UpdatedAt time.Time `json:"updated_at" xorm:"not null updated comment('更新时间') DATETIME"`
|
|
}
|
|
|
|
func (t *RewardWalletHistory) TableName() string {
|
|
return RewardWalletHistoryTableName
|
|
}
|