first commit
This commit is contained in:
34
pkg/model/game.gen.go
Normal file
34
pkg/model/game.gen.go
Normal file
@ -0,0 +1,34 @@
|
||||
// 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 TableNameGame = "game"
|
||||
|
||||
// Game 交易游戏
|
||||
type Game struct {
|
||||
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
|
||||
Name string `gorm:"column:name;type:varchar(255);not null;comment:游戏名称" json:"name"` // 游戏名称
|
||||
Desc string `gorm:"column:desc;type:varchar(255);not null;comment:描述" json:"desc"` // 描述
|
||||
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
|
||||
Sort int32 `gorm:"column:sort;type:int;not null;default:9999;comment:排序" json:"sort"` // 排序
|
||||
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 Game's table name
|
||||
func (*Game) TableName() string {
|
||||
return TableNameGame
|
||||
}
|
||||
Reference in New Issue
Block a user