// 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 TableNameGameCharacterDataAnomaly = "game_character_data_anomaly"

// GameCharacterDataAnomaly mapped from table <game_character_data_anomaly>
type GameCharacterDataAnomaly struct {
	ID            int64     `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	ServerID      int32     `gorm:"column:server_id;type:int(11);not null;index:game_data_anomaly_server_id_index,priority:1;index:game_data_anomaly_server_id_user_id_index,priority:1" json:"server_id"`
	UserID        int64     `gorm:"column:user_id;type:bigint(20);not null;index:game_data_anomaly_server_id_user_id_index,priority:2;index:game_data_anomaly_user_id_index,priority:1" json:"user_id"`
	ChapterID     int32     `gorm:"column:chapter_id;type:int(11);not null;index:game_data_anomaly_chapter_id_index,priority:1;index:game_data_anomaly_chapter_id_room_id_index,priority:1" json:"chapter_id"` // 关卡id
	RoomID        int32     `gorm:"column:room_id;type:int(11);not null;index:game_data_anomaly_chapter_id_room_id_index,priority:2" json:"room_id"`                                                           // 房间id
	Level         int32     `gorm:"column:level;type:int(11);not null" json:"level"`                                                                                                                           // 困难度
	Key           string    `gorm:"column:key;type:varchar(255);not null" json:"key"`                                                                                                                          // 解密用的eky
	CharacterData string    `gorm:"column:character_data;type:json;not null" json:"character_data"`
	CreatedAt     time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
}

// TableName GameCharacterDataAnomaly's table name
func (*GameCharacterDataAnomaly) TableName() string {
	return TableNameGameCharacterDataAnomaly
}
