互动
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

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