game_data_alarm.gen.go 1.5 KB

12345678910111213141516171819202122232425262728
  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. import (
  6. "time"
  7. )
  8. const TableNameGameDataAlarm = "game_data_alarm"
  9. // GameDataAlarm mapped from table <game_data_alarm>
  10. type GameDataAlarm struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. PlayerID int64 `gorm:"column:player_id;type:bigint(20);not null;index:game_data_alarm_player_id_index,priority:1" json:"player_id"` // 玩家id
  13. Attrs string `gorm:"column:attrs;type:varchar(255);not null" json:"attrs"` // 错误属性
  14. ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:game_data_alarm_server_id_index,priority:1" json:"server_id"` // 游戏服id
  15. Msg string `gorm:"column:msg;type:text" json:"msg"` // 错误详情
  16. Time int64 `gorm:"column:time;type:bigint(20);not null;index:game_data_alarm_time_index,priority:1" json:"time"` // 触发时间
  17. Module string `gorm:"column:module;type:varchar(255);not null" json:"module"` // 触发模块
  18. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;index:game_data_alarm__index,priority:1" json:"created_at"`
  19. }
  20. // TableName GameDataAlarm's table name
  21. func (*GameDataAlarm) TableName() string {
  22. return TableNameGameDataAlarm
  23. }