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

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