From b6a3b59b3c5f760dd832bcf80395b9551b8f68c1 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 12 May 2025 16:58:29 -0500 Subject: [PATCH] model update --- models/player_advanced_stat.go | 1 + models/player_stat copy.go | 36 ---------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 models/player_stat copy.go diff --git a/models/player_advanced_stat.go b/models/player_advanced_stat.go index 8297014..6a5c478 100644 --- a/models/player_advanced_stat.go +++ b/models/player_advanced_stat.go @@ -33,4 +33,5 @@ type PlayerAdvancedStat struct { 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"` } \ No newline at end of file diff --git a/models/player_stat copy.go b/models/player_stat copy.go deleted file mode 100644 index bbbb2c0..0000000 --- a/models/player_stat copy.go +++ /dev/null @@ -1,36 +0,0 @@ -package models - -import "gorm.io/gorm" - -type PlayerStat struct { - gorm.Model - ExternalID int `json:"id"` - PlayerID string `gorm:"not null;uniqueIndex:idx_player_season_team" json:"playerId"` - PlayerName string `json:"playerName"` - Position string `json:"position"` - Age int `json:"age"` - Games int `json:"games"` - MinutesPlayed int `json:"minutesPlayed"` - PER float64 `json:"per"` - TSPercent float64 `json:"tsPercent"` - ThreePAR float64 `json:"threePAR"` - FTR float64 `json:"ftr"` - OffensiveRBPercent float64 `json:"offensiveRBPercent"` - DefensiveRBPercent float64 `json:"defensiveRBPercent"` - TotalRBPercent float64 `json:"totalRBPercent"` - AssistPercent float64 `json:"assistPercent"` - StealPercent float64 `json:"stealPercent"` - BlockPercent float64 `json:"blockPercent"` - TurnoverPercent float64 `json:"turnoverPercent"` - UsagePercent float64 `json:"usagePercent"` - OffensiveWS float64 `json:"offensiveWS"` - DefensiveWS float64 `json:"defensiveWS"` - WinShares float64 `json:"winShares"` - WinSharesPer float64 `json:"winSharesPer"` - OffensiveBox float64 `json:"offensiveBox"` - 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"` -} \ No newline at end of file