Documentation ¶ Index ¶ type Assistant type Course type HelpRequest type Student Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Assistant ¶ type Assistant struct { gorm.Model UserID string `gorm:"primary_key"` GuildID string `gorm:"primary_key"` Waiting bool LastRequest time.Time } type Course ¶ type Course struct { CourseID int64 `gorm:"primary_key"` Name string GuildID string Year uint32 } type HelpRequest ¶ type HelpRequest struct { gorm.Model StudentUserID string `gorm:"index"` Student Student AssistantUserID string Assistant Assistant GuildID string `gorm:"index"` Type string `gorm:"index"` Done bool Reason string DoneAt time.Time } type Student ¶ type Student struct { gorm.Model // User ID and Guild ID are the primary key UserID string `gorm:"primary_key"` GuildID string `gorm:"primary_key"` GithubLogin string Name string StudentID string } Source Files ¶ View all Source files models.go Click to show internal directories. Click to hide internal directories.