Files
servicebase/pkg/model/user_game_role_prop.gen.go
2025-11-18 17:48:20 +08:00

39 lines
2.8 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 TableNameUserGameRoleProp = "user_game_role_prop"
// UserGameRoleProp 用户的游戏角色属性
type UserGameRoleProp struct {
ID string `gorm:"column:id;type:char(32);not null;uniqueIndex:id,priority:1;comment:业务ID" json:"id"` // 业务ID
UserID string `gorm:"column:user_id;type:char(32);not null;comment:用户ID" json:"user_id"` // 用户ID
GameID string `gorm:"column:game_id;type:char(32);not null;comment:游戏" json:"game_id"` // 游戏
RoleID string `gorm:"column:role_id;type:varchar(255);not null;comment:角色IDuser_game_role的ID" json:"role_id"` // 角色IDuser_game_role的ID
Type string `gorm:"column:type;type:varchar(255);not null;comment:TEXT=文字 SKIN=皮肤" json:"type"` // TEXT=文字 SKIN=皮肤
Title string `gorm:"column:title;type:varchar(255);not null;comment:标题" json:"title"` // 标题
Content string `gorm:"column:content;type:varchar(255);not null;comment:内容" json:"content"` // 内容
URL string `gorm:"column:url;type:varchar(255);not null;comment:链接" json:"url"` // 链接
Ext string `gorm:"column:ext;type:varchar(255);not null;comment:扩展字段" json:"ext"` // 扩展字段
State int32 `gorm:"column:state;type:int;not null;default:1;comment:状态1=启用 2=禁用" json:"state"` // 状态1=启用 2=禁用
Sort int32 `gorm:"column:sort;type:int;not null;default:9999;comment:排序" json:"sort"` // 排序
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 UserGameRoleProp's table name
func (*UserGameRoleProp) TableName() string {
return TableNameUserGameRoleProp
}