Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Answer ¶
type Answer struct {
gorm.Model
QuestionID uint `gorm:"uniqueIndex:idx_question_id_user_id"`
UserID string `gorm:"uniqueIndex:idx_question_id_user_id"`
Type QuestionType `gorm:"type:enum('free_text', 'free_number', 'single', 'multiple')"`
FreeTextContent *string
FreeNumberContent *float64
SelectedOptions []Option `gorm:"many2many:answer_options;ForeignKey:id;References:id"`
}
type Camp ¶
type Camp struct {
gorm.Model
DisplayID string
Name string
Guidebook string
IsDraft bool
IsPaymentOpen bool
IsRegistrationOpen bool
DateStart time.Time
DateEnd time.Time
Participants []User `gorm:"many2many:camp_participants;"`
Payments []Payment
Events []Event
QuestionGroups []QuestionGroup
RollCalls []RollCall
RoomGroups []RoomGroup
Images []Image
}
type QuestionGroup ¶
type QuestionType ¶
type QuestionType string
const ( FreeTextQuestion QuestionType = "free_text" FreeNumberQuestion QuestionType = "free_number" SingleChoiceQuestion QuestionType = "single" MultipleChoiceQuestion QuestionType = "multiple" )
type RollCallReaction ¶
type User ¶
type User struct {
ID string `gorm:"primaryKey;size:32"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
IsStaff bool `gorm:"index"`
Answers []Answer
Payments []Payment
OrganizedEvents []Event `gorm:"foreignKey:OrganizerID"`
TargetMessages []Message `gorm:"foreignKey:TargetUserID"`
}
Click to show internal directories.
Click to hide internal directories.