bindbox-game/internal/repository/mysql/model/payment_transactions.gen.go
2026-02-18 23:23:34 +08:00

31 lines
1.3 KiB
Go

// 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 TableNamePaymentTransactions = "payment_transactions"
// PaymentTransactions mapped from table <payment_transactions>
type PaymentTransactions 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"`
TransactionID string `gorm:"column:transaction_id;not null" json:"transaction_id"`
PayerOpenid string `gorm:"column:payer_openid;not null;default:''" json:"payer_openid"`
AmountTotal int64 `gorm:"column:amount_total;not null" json:"amount_total"`
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 PaymentTransactions's table name
func (*PaymentTransactions) TableName() string {
return TableNamePaymentTransactions
}