bindbox-game/internal/repository/mysql/model/game_ticket_logs.gen.go
邹方成 c9a83a232a
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 48s
feat: minesweeper dynamic config and granular rewards
2025-12-24 17:33:13 +08:00

31 lines
1.5 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 TableNameGameTicketLogs = "game_ticket_logs"
// GameTicketLogs 游戏资格变动日志
type GameTicketLogs struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
UserID int64 `gorm:"column:user_id;not null;comment:用户ID" json:"user_id"` // 用户ID
GameCode string `gorm:"column:game_code;not null;comment:游戏代码" json:"game_code"` // 游戏代码
ChangeType int32 `gorm:"column:change_type;not null;comment:1=获得 2=使用" json:"change_type"` // 1=获得 2=使用
Amount int32 `gorm:"column:amount;not null;comment:变动数量" json:"amount"` // 变动数量
Balance int32 `gorm:"column:balance;not null;comment:变动后余额" json:"balance"` // 变动后余额
Source string `gorm:"column:source;comment:来源: order/task/admin" json:"source"` // 来源: order/task/admin
SourceID int64 `gorm:"column:source_id;comment:来源ID" json:"source_id"` // 来源ID
Remark string `gorm:"column:remark;comment:备注" json:"remark"` // 备注
}
// TableName GameTicketLogs's table name
func (*GameTicketLogs) TableName() string {
return TableNameGameTicketLogs
}