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

32 lines
1.3 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 TableNamePaymentRefunds = "payment_refunds"
// PaymentRefunds mapped from table <payment_refunds>
type PaymentRefunds 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"`
RefundNo string `gorm:"column:refund_no;not null" json:"refund_no"`
Channel string `gorm:"column:channel;not null;default:wechat_jsapi" json:"channel"`
Status string `gorm:"column:status;not null" json:"status"`
AmountRefund int64 `gorm:"column:amount_refund;not null" json:"amount_refund"`
Reason string `gorm:"column:reason" json:"reason"`
SuccessTime time.Time `gorm:"column:success_time" json:"success_time"`
Raw string `gorm:"column:raw" json:"raw"`
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"`
}
// TableName PaymentRefunds's table name
func (*PaymentRefunds) TableName() string {
return TableNamePaymentRefunds
}