mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 22:15:13 +00:00
advanced models/controllers/service docs update
This commit is contained in:
@@ -5,7 +5,7 @@ import "gorm.io/gorm"
|
||||
type PlayerAdvancedStat struct {
|
||||
gorm.Model
|
||||
ExternalID int `json:"id"`
|
||||
PlayerID string `gorm:"not null;uniqueIndex:idx_player_season_team" json:"playerId"`
|
||||
PlayerID string `gorm:"not null;index:idx_player_season_team,unique" json:"playerId"`
|
||||
PlayerName string `json:"playerName"`
|
||||
Position string `json:"position"`
|
||||
Age int `json:"age"`
|
||||
@@ -31,7 +31,7 @@ type PlayerAdvancedStat struct {
|
||||
DefensiveBox float64 `json:"defensiveBox"`
|
||||
Box float64 `json:"box"`
|
||||
VORP float64 `json:"vorp"`
|
||||
Team string `gorm:"not null;uniqueIndex:idx_player_season_team" json:"team"`
|
||||
Season int `gorm:"not null;uniqueIndex:idx_player_season_team" json:"season"`
|
||||
isPlayoff bool `gorm:"not null;default:false;uniqueIndex:idx_player_season_team" json:"isPlayoff"`
|
||||
Team string `gorm:"not null;index:idx_player_season_team,unique" json:"team"`
|
||||
Season int `gorm:"not null;index:idx_player_season_team,unique" json:"season"`
|
||||
IsPlayoff bool `gorm:"not null;default:false;index:idx_player_season_team,unique" json:"isPlayoff"`
|
||||
}
|
||||
Reference in New Issue
Block a user