chat_msg_log.gen.go 1.9 KB

123456789101112131415161718192021222324252627282930
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. const TableNameChatMsgLog = "chat_msg_log"
  6. // ChatMsgLog mapped from table <chat_msg_log>
  7. type ChatMsgLog struct {
  8. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  9. PlayerID int64 `gorm:"column:player_id;comment:玩家id" json:"player_id"` // 玩家id
  10. NickName string `gorm:"column:nick_name;comment:玩家昵称" json:"nick_name"` // 玩家昵称
  11. HeadID int32 `gorm:"column:head_id;comment:头像 -1 代表使用 AvatarURL 微信授权头像" json:"head_id"` // 头像 -1 代表使用 AvatarURL 微信授权头像
  12. FrameID int32 `gorm:"column:frame_id;comment:头像框id" json:"frame_id"` // 头像框id
  13. HeadImg string `gorm:"column:head_img;comment:头像" json:"head_img"` // 头像
  14. CreateTime int64 `gorm:"column:create_time;comment:产生时间(毫秒)" json:"create_time"` // 产生时间(毫秒)
  15. ChatChannel int32 `gorm:"column:chat_channel;comment:频道类型" json:"chat_channel"` // 频道类型
  16. ChatID string `gorm:"column:chat_id;comment:聊天Id" json:"chat_id"` // 聊天Id
  17. Content string `gorm:"column:content;comment:聊天内容 [emoji:表情Id]" json:"content"` // 聊天内容 [emoji:表情Id]
  18. SeverID int32 `gorm:"column:sever_id;comment:服务器Id" json:"sever_id"` // 服务器Id
  19. ShowType int32 `gorm:"column:show_type" json:"show_type"`
  20. IntParam string `gorm:"column:int_param" json:"int_param"`
  21. StrParam string `gorm:"column:str_param" json:"str_param"`
  22. }
  23. // TableName ChatMsgLog's table name
  24. func (*ChatMsgLog) TableName() string {
  25. return TableNameChatMsgLog
  26. }