virtualpayorder.gen.go 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNamePayOrderAndriod = "virtualpayorder"
  9. // PayOrderAndriod mapped from table <virtualpayorder>
  10. type PayOrderAndriod struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Playerid int64 `gorm:"column:playerid;type:bigint(20);index:IDX_virtualpayorder_playerid,priority:1" json:"playerid"`
  13. Balance int32 `gorm:"column:balance;type:int(11)" json:"balance"`
  14. GenBalance int32 `gorm:"column:genBalance;type:int(11)" json:"genBalance"`
  15. SaveSum int32 `gorm:"column:saveSum;type:int(11)" json:"saveSum"`
  16. SaveAmt int32 `gorm:"column:saveAmt;type:int(11)" json:"saveAmt"`
  17. CostSum int32 `gorm:"column:costSum;type:int(11)" json:"costSum"`
  18. PresentSum int32 `gorm:"column:presentSum;type:int(11)" json:"presentSum"`
  19. Operation string `gorm:"column:operation;type:varchar(255)" json:"operation"`
  20. BillNo string `gorm:"column:billNo;type:varchar(255)" json:"billNo"`
  21. PayedBalance int32 `gorm:"column:payedBalance;type:int(11)" json:"payedBalance"`
  22. UsedGenAmt int32 `gorm:"column:usedGenAmt;type:int(11)" json:"usedGenAmt"`
  23. State int32 `gorm:"column:state;type:int(11)" json:"state"`
  24. GoodsID int64 `gorm:"column:goodsId;type:bigint(20)" json:"goodsId"`
  25. Platform int64 `gorm:"column:platform;type:bigint(20)" json:"platform"` // 1 微信 2抖音
  26. PayMethod int32 `gorm:"column:payMethod;type:int(11);not null;default:1" json:"payMethod"` // 0:苹果游戏外微信支付 1:安卓游戏内支付 2:安卓游戏外微信支付 3:苹果游戏内支付
  27. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
  28. }
  29. // TableName PayOrderAndriod's table name
  30. func (*PayOrderAndriod) TableName() string {
  31. return TableNamePayOrderAndriod
  32. }