This commit is contained in:
Tomas Dvorak
2025-10-24 14:52:46 +02:00
parent 70ea0c3c91
commit 8a7c292e54
41 changed files with 912 additions and 404 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ type Poll struct {
ID uint `gorm:"primarykey" json:"id"`
Title string `gorm:"size:255;not null" json:"title"`
Description string `gorm:"type:text" json:"description"`
Type string `gorm:"size:50;not null;default:'single'" json:"type"` // single, multiple, rating
Type string `gorm:"size:50;not null;default:'single'" json:"type"`
Style string `gorm:"size:50;not null;default:'auto'" json:"style"`
Status string `gorm:"size:20;not null;default:'draft'" json:"status"` // draft, active, closed, archived
StartDate *time.Time `json:"start_date"`
EndDate *time.Time `json:"end_date"`
+3
View File
@@ -33,6 +33,9 @@ type ScoreboardState struct {
// QR overlay schedule settings
QRShowEveryMinutes int `json:"qr_show_every_minutes"`
QRShowDurationSeconds int `json:"qr_show_duration_seconds"`
// Team fouls (0..5 display dots)
HomeFouls int `json:"home_fouls"`
AwayFouls int `json:"away_fouls"`
}
func (ScoreboardState) TableName() string { return "scoreboard_states" }