models

package
v0.0.0-...-28a8de6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL