mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
dev day #70
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user