model

package
v0.0.0-...-ad77559 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID        uint       `gorm:"primary_key" json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt time.Time  `json:"updated_at"`
	DeletedAt *time.Time `json:"deleted_at"`
}

type Episode

type Episode struct {
	BaseModel
	Title    string    `json:"title"`
	Number   int       `json:"number"`
	AirDate  time.Time `json:"airDate"`
	SeasonID uint
	Season   Season `json:"season"`
}

Episode represents an episode in a series

type EpisodeFile

type EpisodeFile struct {
	BaseModel
	EpisodeId int
	Episode   Episode
	FilePath  string `json:"file_path"`
}

type FetchJob

type FetchJob struct {
	BaseModel
	SeriesID  uint
	Series    Series
	EpisodeID uint
	Episode   Episode
}

type Language

type Language struct {
	BaseModel
	Abbreviation string `json:"abbreviation"`
	EnglishName  string `json:"englishName"`
	TVDBID       int    `json:"tvdbID"`
	Name         string `json:"name"`
}

Language supported languages in TVDB

type Season

type Season struct {
	BaseModel
	Number   uint      `json:"number"`
	Episodes []Episode `json:"episodes"`
	SeriesID uint
	Series   Series `json:"series"`
}

Season represents a season in a series

type Series

type Series struct {
	BaseModel
	Name       string   `json:"name"`
	Status     string   `json:"status"`
	Network    string   `json:"network"`
	Poster     string   `json:"poster"`
	Overview   string   `json:"overview"`
	TvdbID     int      `json:"tvdbID"`
	Seasons    []Season `json:"seasons"`
	LanguageID uint
	Language   Language `json:"language"`
}

Series represents a television series

Jump to

Keyboard shortcuts

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