first commit

This commit is contained in:
Yangtao
2025-11-18 17:48:20 +08:00
commit 6e56cab848
196 changed files with 65809 additions and 0 deletions

View File

@ -0,0 +1,36 @@
// 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"
"gorm.io/gorm"
)
const TableNameTradeCommodity = "trade_commodity"
// TradeCommodity 交易的商品
type TradeCommodity struct {
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
CommodityType string `gorm:"column:commodity_type;type:varchar(255);not null;comment:GAME_ROLE=游戏角色" json:"commodity_type"` // GAME_ROLE=游戏角色
UserID string `gorm:"column:user_id;type:char(32);not null;comment:用户ID" json:"user_id"` // 用户ID
CommodityID string `gorm:"column:commodity_id;type:char(32);not null;comment:如游戏角色IDuser_game_role的ID" json:"commodity_id"` // 如游戏角色IDuser_game_role的ID
Desc string `gorm:"column:desc;type:varchar(255);not null;comment:描述" json:"desc"` // 描述
Price int32 `gorm:"column:price;type:int;not null;comment:价格,单位为分" json:"price"` // 价格,单位为分
Icon string `gorm:"column:icon;type:varchar(255);not null;comment:图标" json:"icon"` // 图标
Logo string `gorm:"column:logo;type:varchar(255);not null;comment:logo" json:"logo"` // logo
State int32 `gorm:"column:state;type:int;not null;default:1;comment:状态1=启用 2=禁用" json:"state"` // 状态1=启用 2=禁用
DeleteAt *gorm.DeletedAt `gorm:"column:delete_at;type:datetime;comment:del标志" json:"delete_at"` // del标志
CreateAt time.Time `gorm:"column:create_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:创建时间" json:"create_at"` // 创建时间
CreateBy string `gorm:"column:create_by;type:varchar(255);not null;comment:创建人" json:"create_by"` // 创建人
UpdateAt time.Time `gorm:"column:update_at;type:datetime;not null;default:CURRENT_TIMESTAMP;comment:更新时间" json:"update_at"` // 更新时间
UpdateBy string `gorm:"column:update_by;type:varchar(255);not null;comment:更新人" json:"update_by"` // 更新人
}
// TableName TradeCommodity's table name
func (*TradeCommodity) TableName() string {
return TableNameTradeCommodity
}