mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
line score service isolated and working
This commit is contained in:
+2
-2
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user