shortmodels

package
v0.0.0-...-727d710 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 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 Movie

type Movie struct {
	ID              int64                   `json:"id" gorm:"primary_key"`
	ExternalID      int64                   `json:"external_id"`
	Name            string                  `json:"name"`
	AlternativeName string                  `json:"alternative_name"`
	Year            int64                   `json:"year"`
	Score           float32                 `json:"score" gorm:"precision:3"`
	Votes           int64                   `json:"votes"`
	MovieTypeID     int64                   `json:"-"`
	CountryID       int64                   `json:"-"`
	Genres          []models.Genre          `json:"genres" gorm:"many2many:movie_genres"`
	Posters         []models.Poster         `json:"poster"`
	MovieType       models.MovieType        `json:"movie_type"`
	Country         models.Country          `json:"country"`
	PersonalRating  []models.PersonalRating `json:"personal_rating"`
}

Jump to

Keyboard shortcuts

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