shot chart create

This commit is contained in:
Ravi Prasad
2025-05-12 21:06:03 -05:00
parent a1809d3808
commit f0447c2141
10 changed files with 612 additions and 2 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import "gorm.io/gorm"
type PlayerShotChart struct {
gorm.Model `swaggerignore:"true"`
ExternalID int `json:"id"`
PlayerID string `gorm:"not null;index:idx_shotchart_player_external,unique" json:"playerId"`
ExternalID int `gorm:"not null;uniqueIndex:idx_shotchart_player_external" json:"id"`
PlayerID string `gorm:"not null;uniqueIndex:idx_shotchart_player_external" json:"playerId"`
PlayerName string `json:"playerName"`
Top int `json:"top"`
Left int `json:"left"`