bindbox-game/internal/repository/mysql/model/payment_preorders.gen.go

33 lines
1.4 KiB
Go
Executable File

// 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 TableNamePaymentPreorders = "payment_preorders"
// PaymentPreorders mapped from table <payment_preorders>
type PaymentPreorders struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
OrderID int64 `gorm:"column:order_id;not null" json:"order_id"`
OrderNo string `gorm:"column:order_no;not null" json:"order_no"`
Channel string `gorm:"column:channel;not null;default:wechat_jsapi" json:"channel"`
PrepayID string `gorm:"column:prepay_id;not null" json:"prepay_id"`
OutTradeNo string `gorm:"column:out_trade_no;not null" json:"out_trade_no"`
AmountTotal int64 `gorm:"column:amount_total;not null" json:"amount_total"`
PayerOpenid string `gorm:"column:payer_openid" json:"payer_openid"`
Status string `gorm:"column:status;not null;default:created" json:"status"`
NotifyURL string `gorm:"column:notify_url" json:"notify_url"`
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
ExpiredAt time.Time `gorm:"column:expired_at" json:"expired_at"`
}
// TableName PaymentPreorders's table name
func (*PaymentPreorders) TableName() string {
return TableNamePaymentPreorders
}