line score service isolated and working

This commit is contained in:
Ravi Prasad
2025-07-08 20:20:39 -05:00
parent 5f7a1eb355
commit fe1379e54e
4 changed files with 182 additions and 47 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ type Game struct {
// LineScore holds the scoring for each team by quarter for a specific game.
type LineScore struct {
ID uint `gorm:"primaryKey" swaggerignore:"true"`
GameID string `gorm:"not null;index" json:"gameId"`
Team string `gorm:"not null;index" json:"team"`
GameID string `gorm:"not null;uniqueIndex:idx_line_score,priority:1" json:"gameId"`
Team string `gorm:"not null;uniqueIndex:idx_line_score,priority:2" json:"team"`
Q1 int `json:"q1"`
Q2 int `json:"q2"`
Q3 int `json:"q3"`