orders_settle.gen.go 1.9 KB

1234567891011121314151617181920212223242526272829303132
  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 TableNameOrdersSettle = "orders_settle"
  9. // OrdersSettle mapped from table <orders_settle>
  10. type OrdersSettle struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. Type int32 `gorm:"column:type;type:smallint(6);not null;default:1" json:"type"` // 平账类型(1:米大师)
  13. UserID int64 `gorm:"column:user_id;type:bigint(20);not null;index:user_id,priority:1" json:"user_id"` // 玩家ID
  14. Openid string `gorm:"column:openid;type:varchar(255)" json:"openid"` // openid
  15. Balance int32 `gorm:"column:balance;type:int(11);not null" json:"balance"` // 平账金额
  16. Remark string `gorm:"column:remark;type:varchar(512);not null" json:"remark"` // 平账理由
  17. OrderSn string `gorm:"column:order_sn;type:varchar(255);not null" json:"order_sn"` // 订单号
  18. CreatedBy int64 `gorm:"column:created_by;type:bigint(20);not null" json:"created_by"` // 操作人
  19. Status int32 `gorm:"column:status;type:int(11);not null" json:"status"` // 订单状态
  20. Response string `gorm:"column:response;type:mediumtext" json:"response"` // 响应结果
  21. Error string `gorm:"column:error;type:mediumtext" json:"error"` // 报错信息
  22. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
  23. }
  24. // TableName OrdersSettle's table name
  25. func (*OrdersSettle) TableName() string {
  26. return TableNameOrdersSettle
  27. }