bindbox-game/internal/repository/mysql/model/payment_transactions.gen.go
邹方成 6ee627139c
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 40s
feat: 新增支付测试小程序与微信支付集成
feat(pay): 添加支付API基础结构
feat(miniapp): 创建支付测试小程序页面与配置
feat(wechatpay): 配置微信支付参数与证书
fix(guild): 修复成员列表查询条件
docs: 更新代码规范文档与需求文档
style: 统一前后端枚举显示与注释格式
refactor(admin): 重构用户奖励发放接口参数处理
test(title): 添加称号效果参数验证测试
2025-11-17 00:42:08 +08:00

30 lines
1.2 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"`
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
}