package models type UserSettings struct { ID uint `json:"id" gorm:"primary_key"` Username string `json:"username"` User User `json:"user" gorm:"foreignKey:Username;references:Username"` ActiveGameID uint `json:"active_game_id"` ActiveGame Game `json:"active_game" gorm:"foreignKey:ID;references:ActiveGameID"` SquadColors bool `json:"squad_colors" default:"1"` CalcMedian bool `json:"calc_median" default:"0"` UseCache bool `json:"use_cache" default:"1"` }