// 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"
)

const TableNameGameDataAlarm = "game_data_alarm"

// GameDataAlarm mapped from table <game_data_alarm>
type GameDataAlarm struct {
	ID        int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	PlayerID  int64     `gorm:"column:player_id;type:bigint(20);not null;index:game_data_alarm_player_id_index,priority:1" json:"player_id"` // 玩家id
	Attrs     string    `gorm:"column:attrs;type:varchar(255);not null" json:"attrs"`                                                        // 错误属性
	ServerID  int32     `gorm:"column:server_id;type:int(11);not null;index:game_data_alarm_server_id_index,priority:1" json:"server_id"`    // 游戏服id
	Msg       string    `gorm:"column:msg;type:text" json:"msg"`                                                                             // 错误详情
	Time      int64     `gorm:"column:time;type:bigint(20);not null;index:game_data_alarm_time_index,priority:1" json:"time"`                // 触发时间
	Module    string    `gorm:"column:module;type:varchar(255);not null" json:"module"`                                                      // 触发模块
	CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;index:game_data_alarm__index,priority:1" json:"created_at"`
}

// TableName GameDataAlarm's table name
func (*GameDataAlarm) TableName() string {
	return TableNameGameDataAlarm
}
