chapter_logs.gen.go 3.2 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 TableNameChapterLog = "chapter_logs"
  6. // ChapterLog mapped from table <chapter_logs>
  7. type ChapterLog struct {
  8. ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
  9. ChannelID string `gorm:"column:channel_id;type:varchar(128);index:channel_id,priority:1;default:0" json:"channel_id"` // 渠道ID
  10. Flag int32 `gorm:"column:flag;type:int(11)" json:"flag"`
  11. UserID int64 `gorm:"column:user_id;type:bigint(20) unsigned;not null" json:"user_id"` // 用户id
  12. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
  13. EventID int32 `gorm:"column:event_id;type:int(11) unsigned;not null;index:event_id_event_at_idx,priority:1" json:"event_id"` // 埋点id
  14. ChapterID int32 `gorm:"column:chapter_id;type:int(11) unsigned;not null;index:user_at_event_at_chapter_diff_room_id_idx,priority:3" json:"chapter_id"` // 关卡id
  15. RoomID int64 `gorm:"column:room_id;type:bigint(20);not null;index:user_at_event_at_chapter_diff_room_id_idx,priority:5" json:"room_id"` // 房间id
  16. UserCreatedAt int32 `gorm:"column:user_created_at;type:int(11) unsigned;not null;index:user_at_event_at_chapter_diff_room_id_idx,priority:1" json:"user_created_at"` // 用户注册时间
  17. EventAt int32 `gorm:"column:event_at;type:int(11) unsigned;not null;index:event_at_idx,priority:1;index:event_id_event_at_idx,priority:2;index:user_at_event_at_chapter_diff_room_id_idx,priority:2" json:"event_at"` // 埋点事件触发的时间
  18. Extra string `gorm:"column:extra;type:varchar(4096)" json:"extra"` // 其他参数
  19. Token string `gorm:"column:token;type:char(64)" json:"token"` // 登陆的token
  20. Difficulty int32 `gorm:"column:difficulty;type:int(11);index:user_at_event_at_chapter_diff_room_id_idx,priority:4" json:"difficulty"` // 困难度
  21. EventAtNs int64 `gorm:"column:event_at_ns;type:bigint(20) unsigned" json:"event_at_ns"` // 埋点事件触发的时间
  22. }
  23. // TableName ChapterLog's table name
  24. func (*ChapterLog) TableName() string {
  25. return TableNameChapterLog
  26. }