Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { ID string `db:"id"` TaskID string `db:"task_id"` TeamID string `db:"team_id"` StartTime time.Time `db:"start_time"` AdditionalPoints int `db:"additional_points"` AnswerText string `db:"answer_text"` AnswerImageBase64 string `db:"answerImageBase64"` Result bool `db:"result"` }
Answer
Таблица ответов на задания
type AnswerSecret ¶
type AnswerSecret struct { ID ID `db:"id"` SecretID ID `db:"secret_id"` AnswerTypeID int `db:"answer_type_id"` Data string `db:"data"` }
AnswerSecret
Таблица ответов на секретные задания
type Secret ¶
type Secret struct { ID ID `db:"id"` Title string `db:"title"` Description string `db:"description"` }
Secret
Таблица секретных заданий
type Task ¶
type Task struct { ID ID `db:"id"` Title string `db:"title"` Description string `db:"description"` TypeID int `db:"type_id"` MaxPoints int `db:"max_points"` MinPoints int `db:"min_points"` AnswerTypeID int `db:"answer_type_id"` TypeName string StartedTime time.Time }
Task
Таблица заданий
type Team ¶
type Team struct { TeamId string `db:"id"` Title string `db:"title"` Points int `db:"points"` Members []Member }
Team
Таблица команд
type TeamSecret ¶
type TeamSecret struct { ID ID `db:"id"` SecretID ID `db:"secret_id"` TeamID ID `db:"team_id"` StartTime time.Time `db:"start_time"` EndTime *time.Time `db:"end_time"` }
TeamSecret
Таблица связи секретных заданий и команд
type TeamTask ¶
type TeamTask struct { ID ID `db:"id"` TaskID ID `db:"task_id"` TeamID ID `db:"team_id"` StartTime time.Time `db:"start_time"` EndTime *time.Time `db:"end_time"` AdditionalPoints int `db:"additional_points"` }
TeamTask
Таблица связи заданий и команд
type User ¶
type User struct { ID ID `db:"id"` Password string `db:"password"` PhoneNumber string `db:"phone_number"` Email string `db:"email"` EmailConfirmed bool `db:"email_confirmed"` Telegram string `db:"telegram"` VK string `db:"vk"` StudyGroup string `db:"group"` FIO string `db:"name"` TeamID *ID `db:"team_id"` RoleID *int `db:"role_id"` IsAdmin bool `db:"is_admin"` }
User
Таблица пользователей
Source Files ¶
Click to show internal directories.
Click to hide internal directories.