mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 18:52:56 +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"`
|
||||
|
||||
Reference in New Issue
Block a user