models

package
v0.0.0-...-3ed5696 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	gorm.Model
	DiscordId             string `gorm:"unique;size:128"`
	IsDraft               bool   `gorm:"default:true"`
	PhoneNumber           string `gorm:"size:128"`
	IsSubscribed          bool
	Age                   int
	Gender                string       `gorm:"size:128"`
	Pronoun               string       `gorm:"size:128"`
	Ethnicity             pgtype.JSONB `gorm:"type:jsonb;default:'[]'"`
	Country               string       `gorm:"size:128"`
	City                  string       `gorm:"size:128"`
	Province              string       `gorm:"size:128"`
	EmergencyName         string       `gorm:"size:128"`
	EmergencyNumber       string       `gorm:"size:128"`
	EmergencyRelationship string       `gorm:"size:128"`
	ShirtSize             ShirtSize
	DietRestriction       pgtype.JSONB `gorm:"type:jsonb;default:'[]'"`
	Day1Dinner            bool
	Day2Breakfast         bool
	Day2Lunch             bool
	Day2Dinner            bool
	Day3Breakfast         bool
	AdditionalInfo        string `gorm:"size:128"`
	Education             string `gorm:"size:128"`
	School                string `gorm:"size:128"`
	Program               string `gorm:"size:128"`
	ResumeLink            string `gorm:"size:5000"`
	ResumeFilename        string `gorm:"size:128"`
	ResumeHash            string `gorm:"size:128"`
	ResumeExpiry          string `gorm:"size:128"`
	Portfolio             string `gorm:"size:128"`
	Github                string `gorm:"size:128"`
	Linkedin              string `gorm:"size:128"`
	ResumeConsent         bool
	HackathonExperience   string       `gorm:"size:128"`
	DeerhacksExperience   pgtype.JSONB `gorm:"type:jsonb;default:'[]'"`
	TeamPreference        string       `gorm:"size:128"`
	Interests             pgtype.JSONB `gorm:"type:jsonb;default:'[]'"`
	DeerhacksPitch        string       `gorm:"size:1500"`
	SharedProject         string       `gorm:"size:1500"`
	FutureTech            string       `gorm:"size:1500"`
	DeerhacksReach        string       `gorm:"size:128"`
	MlhCodeAgreement      bool
	MlhSubscribe          bool
	MlhAuthorize          bool
}

type DiscordDetails

type DiscordDetails struct {
	TokenType    string `json:"token_type"`
	AccessToken  string `json:"access_token"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

type DiscordError

type DiscordError struct {
	Error            string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

type DiscordUser

type DiscordUser struct {
	ID                   string `json:"id"`
	Username             string `json:"username"`
	Avatar               string `json:"avatar"`
	Discriminator        string `json:"discriminator"`
	PublicFlags          int    `json:"public_flags"`
	Flags                int    `json:"flags"`
	Banner               string `json:"banner"`
	AccentColor          int    `json:"accent_color"`
	GlobalName           string `json:"global_name"`
	AvatarDecorationData string `json:"avatar_decoration"`
	BannerColor          string `json:"banner_color"`
	MFAEnabled           bool   `json:"mfa_enabled"`
	Locale               string `json:"locale"`
	PremiumType          int    `json:"premium_type"`
	Email                string `json:"email"`
	Verified             bool   `json:"verified"`
}

type JoinGuildQueue

type JoinGuildQueue struct {
	gorm.Model
	DiscordId string `gorm:"unique"`
}

func (JoinGuildQueue) TableName

func (JoinGuildQueue) TableName() string

type ShirtSize

type ShirtSize string
const (
	ExtraSmall ShirtSize = "XS"
	Small      ShirtSize = "S"
	Medium     ShirtSize = "M"
	Large      ShirtSize = "L"
	ExtraLarge ShirtSize = "XL"
	DoubleXL   ShirtSize = "XXL"
)

type Status

type Status string
const (
	Pending     Status = "pending"     // Pending Email Verification
	Registering Status = "registering" // Email Verified, Registering for DeerHacks
	Applied     Status = "applied"     // Application Submitted
	Selected    Status = "selected"    // Selected to Attend DeerHacks, Pending Confirmation
	Accepted    Status = "accepted"    // Accepted to Attend DeerHacks
	Rejected    Status = "rejected"    // Application Rejected
	Attended    Status = "attended"    // Signed in at DeerHacks

	Admin     Status = "admin"     // DeerHacks Tech Organizers
	Moderator Status = "moderator" // DeerHacks Moderators
	Volunteer Status = "volunteer" // DeerHacks Volunteers
	Guest     Status = "guest"     //DeerHacks Guests
)

type UpdateRoleQueue

type UpdateRoleQueue struct {
	gorm.Model
	DiscordId string `gorm:"unique"`
}

func (UpdateRoleQueue) TableName

func (UpdateRoleQueue) TableName() string

type User

type User struct {
	gorm.Model
	DiscordId         string `gorm:"unique"`
	Avatar            string
	FirstName         string `gorm:"size:128"`
	LastName          string `gorm:"size:128"`
	Username          string `gorm:"size:128"`
	Email             string `gorm:"unique;size:128"`
	Status            Status `gorm:"default:pending"`
	QRCode            string `gorm:"unique"`
	InternalStatus    string
	InternalNotes     string
	CheckIns          json.RawMessage `gorm:"type:jsonb"`
	AuthToken         string
	RefreshToken      string
	TokenExpiry       string
	ResumeUpdateCount int
	EmailChangeCount  int `gorm:"default:0"`
}

type UserEmailContext

type UserEmailContext struct {
	gorm.Model
	DiscordId    string
	Token        string `gorm:"size:128"`
	Context      string `gorm:"size:20"`
	StatusChange string `gorm:"size:45"`
	TokenExpiry  string
}

Jump to

Keyboard shortcuts

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