1234567891011121314151617181920212223242526272829303132 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- )
- const TableNameOrdersSettle = "orders_settle"
- // OrdersSettle mapped from table <orders_settle>
- type OrdersSettle struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
- Type int32 `gorm:"column:type;type:smallint(6);not null;default:1" json:"type"` // 平账类型(1:米大师)
- UserID int64 `gorm:"column:user_id;type:bigint(20);not null;index:user_id,priority:1" json:"user_id"` // 玩家ID
- Openid string `gorm:"column:openid;type:varchar(255)" json:"openid"` // openid
- Balance int32 `gorm:"column:balance;type:int(11);not null" json:"balance"` // 平账金额
- Remark string `gorm:"column:remark;type:varchar(512);not null" json:"remark"` // 平账理由
- OrderSn string `gorm:"column:order_sn;type:varchar(255);not null" json:"order_sn"` // 订单号
- CreatedBy int64 `gorm:"column:created_by;type:bigint(20);not null" json:"created_by"` // 操作人
- Status int32 `gorm:"column:status;type:int(11);not null" json:"status"` // 订单状态
- Response string `gorm:"column:response;type:mediumtext" json:"response"` // 响应结果
- Error string `gorm:"column:error;type:mediumtext" json:"error"` // 报错信息
- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"` // 创建时间
- }
- // TableName OrdersSettle's table name
- func (*OrdersSettle) TableName() string {
- return TableNameOrdersSettle
- }
|