model

package
v2.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cinema

type Cinema struct {
	Id               pgtype.Int4
	LocalId          pgtype.Int4
	NameRu           pgtype.Text
	DescriptionRu    pgtype.Text
	Address          pgtype.Text
	Phone            pgtype.Text
	Longitude        pgtype.Float8
	Latitude         pgtype.Float8
	WebPartId        pgtype.Int4
	ShopId           pgtype.Text
	CardNumber       pgtype.Text
	LastModifiedDate pgtype.Timestamp
	CityId           pgtype.Int4
	CustomerId       pgtype.Int4
}

func (*Cinema) Combine added in v2.7.0

func (m *Cinema) Combine() (*pb_catalog_cinema.CinemaCombine, error)

func (Cinema) Compare added in v2.7.0

func (Cinema) Compare(old, new *pb_catalog_cinema.CinemaCombine) bool

type City

type City struct {
	Id               pgtype.Int4
	NameRu           pgtype.Text
	LastModifiedDate pgtype.Timestamp
}

func (*City) Combine added in v2.7.0

func (m *City) Combine() (*pb_catalog_city.CityCombine, error)

func (City) Compare added in v2.7.0

func (City) Compare(old, new *pb_catalog_city.CityCombine) bool

type Combine

type Combine struct {
	CityId   pgtype.Int4 `db:"city_id"`
	CinemaId pgtype.Int4 `db:"cinema_id"`
	HallId   pgtype.Int4 `db:"hall_id"`
	MovieId  pgtype.Int4 `db:"movie_id"`
	SeanceId pgtype.Int4 `db:"seance_id"`
}

func (*Combine) Combine added in v2.7.0

func (m *Combine) Combine() (*pb_catalog_combine.Combine, error)

func (Combine) Compare added in v2.7.0

func (Combine) Compare(old, new *pb_catalog_combine.Combine) bool

type Discount

type Discount struct {
	Id               pgtype.Int4
	LocalId          pgtype.Int4
	Name             pgtype.Text
	Description      pgtype.Text
	DiscountValue    pgtype.Float4
	LastModifiedDate pgtype.Timestamp
	CinemaId         pgtype.Int4
}

func (*Discount) Combine added in v2.7.0

func (Discount) Compare added in v2.7.0

func (Discount) Compare(old, new *pb_catalog_discount.DiscountCombine) bool

type Hall

type Hall struct {
	Id               pgtype.Int4
	LocalId          pgtype.Int4
	Name             pgtype.Text
	Description      pgtype.Text
	IsImax           pgtype.Bool
	IsDolbyAtmos     pgtype.Bool
	IsVip            pgtype.Bool
	IsBottomScreen   pgtype.Bool
	LastModifiedDate pgtype.Timestamp
	CinemaId         pgtype.Int4
}

func (*Hall) Combine added in v2.7.0

func (m *Hall) Combine() (*pb_catalog_hall.HallCombine, error)

func (Hall) Compare added in v2.7.0

func (Hall) Compare(old, new *pb_catalog_hall.HallCombine) bool

type Movie

type Movie struct {
	Id                pgtype.Int4
	NameRu            pgtype.Text
	DescriptionRu     pgtype.Text
	ReleaseDate       pgtype.Timestamp
	Duration          pgtype.Int4
	Actors            pgtype.Text
	Directors         pgtype.Text
	Country           pgtype.Text
	GenreText         pgtype.Text
	AgeLimitationText pgtype.Text
	PosterPathSmall   pgtype.Text
	PosterPathLarge   pgtype.Text
	MovieWebSite      pgtype.Text
	TrailerLinkRu     pgtype.Text
	LastModifiedDate  pgtype.Timestamp
	ParentMovieId     pgtype.Int4
	TmdbId            pgtype.Int4 `db:"tmdb_id"`
}

func (*Movie) Combine added in v2.7.0

func (m *Movie) Combine() (*pb_catalog_movie.MovieCombine, error)

func (Movie) Compare added in v2.7.0

func (Movie) Compare(old, new *pb_catalog_movie.MovieCombine) bool

type Schedule added in v2.7.0

type Schedule struct{}

func (Schedule) Combine added in v2.7.0

func (Schedule) Compare added in v2.7.0

func (Schedule) Compare(old, new *pb_catalog_schedule.ScheduleCombine) bool

type Seance

type Seance struct {
	Id                 pgtype.Int4
	LocalId            pgtype.Int4
	Name               pgtype.Text
	Description        pgtype.Text
	BasePrice          pgtype.Float4
	StartDate          pgtype.Timestamp
	StartTime          pgtype.Timestamp
	EndTime            pgtype.Timestamp
	Duration           pgtype.Int4
	IsPremiere         pgtype.Bool
	Is3D               pgtype.Bool
	IsReservingEnabled pgtype.Bool
	LastModifiedDate   pgtype.Timestamp
	CityId             pgtype.Int4
	CinemaId           pgtype.Int4
	HallId             pgtype.Int4
	LocalFilmId        pgtype.Int4
	MovieId            pgtype.Int4
}

func (*Seance) Combine added in v2.7.0

func (m *Seance) Combine() (*pb_catalog_seance.SeanceCombine, error)

func (Seance) Compare added in v2.7.0

func (Seance) Compare(old, new *pb_catalog_seance.SeanceCombine) bool

Jump to

Keyboard shortcuts

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