models

package
v0.0.0-...-c272ad0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthDetails

type AuthDetails struct {
	ID           uint `gorm:"primarykey"`
	AccessToken  string
	RefreshToken string
	CreatedAt    time.Time
}

type BookAlert

type BookAlert struct {
	ID uint `gorm:"primarykey" json:"id"`

	Restaurant   Restaurant `json:"restaurant"`
	RestaurantID uint       `json:"restaurantId"`

	DiscordID string `json:"discordId"`

	Date       string `json:"date"`
	MealPeriod string `json:"mealPeriod"`
	PartyMix   int    `json:"partyMix"`
	Completed  *bool  `json:"completed"`

	CheckedAt  time.Time `json:"lastChecked"`
	CheckCount int       `json:"checkCount"`
	ErrorCount int       `json:"errorCount"`

	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type BookNotification

type BookNotification struct {
	ID uint `gorm:"primarykey"`

	BookAlert   BookAlert `json:"bookAlert"`
	BookAlertID uint      `json:"bookAlertId"`

	BookSlot   BookSlot `json:"bookSlot"`
	BookSlotID uint     `json:"bookSlotId"`

	Active *bool `json:"active"`

	CreatedAt time.Time `json:"createdAt"`
}

type BookSlot

type BookSlot struct {
	ID           uint `gorm:"primarykey"`
	Restaurant   Restaurant
	RestaurantID uint

	Date       string
	MealPeriod string
	PartyMix   int
	Hour       string

	WasAvailable *bool
	Available    *bool

	CreatedAt time.Time
	UpdatedAt time.Time
}

type Restaurant

type Restaurant struct {
	ID        uint   `gorm:"primarykey" json:"id"`
	DisneyID  string `gorm:"unique" json:"disneyId"`
	Name      string `json:"name"`
	ImageURL  string `json:"imageUrl"`
	Displayed bool   `json:"displayed"`
}

Jump to

Keyboard shortcuts

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