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

const TableNamePlayerCache = "player_cache"

// PlayerCache mapped from table <player_cache>
type PlayerCache struct {
	ID           int64  `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
	Playerid     int64  `gorm:"column:playerid;type:bigint(20);not null;uniqueIndex:playerid,priority:1" json:"playerid"` // 用户ID
	AccID        int64  `gorm:"column:acc_id;type:bigint(20)" json:"acc_id"`                                              // accId
	ServerID     int32  `gorm:"column:server_id;type:int(11);index:server_id,priority:1;default:1" json:"server_id"`      // 服务器ID
	Level        int32  `gorm:"column:level;type:int(11);index:level,priority:1" json:"level"`                            // 玩家等级
	PassRoom     string `gorm:"column:pass_room;type:json" json:"pass_room"`                                              // 通关数据
	Treasures    string `gorm:"column:treasures;type:json" json:"treasures"`                                              // 宝物
	LastSyncTime int64  `gorm:"column:last_sync_time;type:bigint(20)" json:"last_sync_time"`                              // 最后同步时间
}

// TableName PlayerCache's table name
func (*PlayerCache) TableName() string {
	return TableNamePlayerCache
}
