This commit is contained in:
xinian
2026-02-11 01:13:20 +08:00
committed by cnb
parent 1b930b5a19
commit eefdc6ef71

View File

@@ -13,7 +13,7 @@ const TableNamePlayerInfo = "player_info"
type Player struct {
*cool.Model
PlayerID uint64 `gorm:"not null;index:idx_pet_by_player_id;comment:'所属玩家ID'" json:"player_id"`
PlayerID uint64 `gorm:"not null;uniqueIndex;index:idx_pet_by_player_id;comment:'所属玩家ID'" json:"player_id"`
LastResetTime *gtime.Time `struc:"skip" json:"last_reset_time"` // 重置时间,比如电池和每日任务
Data PlayerInfo `gorm:"type:jsonb;not null;comment:'全部数据'" json:"data"`
}