2019-07-17 13:22:14 +02:00
|
|
|
//
|
|
|
|
|
// Code generated by go-jet DO NOT EDIT.
|
2019-09-26 12:31:03 +02:00
|
|
|
// Generated at Thursday, 26-Sep-19 12:02:13 CEST
|
2019-07-17 13:22:14 +02:00
|
|
|
//
|
|
|
|
|
// WARNING: Changes to this file may cause incorrect behavior
|
|
|
|
|
// and will be lost if the code is regenerated
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
package table
|
|
|
|
|
|
|
|
|
|
import (
|
2019-08-08 12:02:32 +02:00
|
|
|
"github.com/go-jet/jet/postgres"
|
2019-07-17 13:22:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var Film = newFilmTable()
|
|
|
|
|
|
|
|
|
|
type FilmTable struct {
|
2019-08-08 12:02:32 +02:00
|
|
|
postgres.Table
|
2019-07-17 13:22:14 +02:00
|
|
|
|
|
|
|
|
//Columns
|
2019-08-08 12:02:32 +02:00
|
|
|
FilmID postgres.ColumnInteger
|
|
|
|
|
Title postgres.ColumnString
|
|
|
|
|
Description postgres.ColumnString
|
|
|
|
|
ReleaseYear postgres.ColumnInteger
|
|
|
|
|
LanguageID postgres.ColumnInteger
|
|
|
|
|
RentalDuration postgres.ColumnInteger
|
|
|
|
|
RentalRate postgres.ColumnFloat
|
|
|
|
|
Length postgres.ColumnInteger
|
|
|
|
|
ReplacementCost postgres.ColumnFloat
|
|
|
|
|
Rating postgres.ColumnString
|
|
|
|
|
LastUpdate postgres.ColumnTimestamp
|
|
|
|
|
SpecialFeatures postgres.ColumnString
|
|
|
|
|
Fulltext postgres.ColumnString
|
2019-07-17 13:22:14 +02:00
|
|
|
|
2019-09-26 12:31:03 +02:00
|
|
|
AllColumns postgres.ColumnList
|
|
|
|
|
MutableColumns postgres.ColumnList
|
2019-07-17 13:22:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// creates new FilmTable with assigned alias
|
|
|
|
|
func (a *FilmTable) AS(alias string) *FilmTable {
|
|
|
|
|
aliasTable := newFilmTable()
|
|
|
|
|
|
|
|
|
|
aliasTable.Table.AS(alias)
|
|
|
|
|
|
|
|
|
|
return aliasTable
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func newFilmTable() *FilmTable {
|
|
|
|
|
var (
|
2019-08-08 12:02:32 +02:00
|
|
|
FilmIDColumn = postgres.IntegerColumn("film_id")
|
|
|
|
|
TitleColumn = postgres.StringColumn("title")
|
|
|
|
|
DescriptionColumn = postgres.StringColumn("description")
|
|
|
|
|
ReleaseYearColumn = postgres.IntegerColumn("release_year")
|
|
|
|
|
LanguageIDColumn = postgres.IntegerColumn("language_id")
|
|
|
|
|
RentalDurationColumn = postgres.IntegerColumn("rental_duration")
|
|
|
|
|
RentalRateColumn = postgres.FloatColumn("rental_rate")
|
|
|
|
|
LengthColumn = postgres.IntegerColumn("length")
|
|
|
|
|
ReplacementCostColumn = postgres.FloatColumn("replacement_cost")
|
|
|
|
|
RatingColumn = postgres.StringColumn("rating")
|
|
|
|
|
LastUpdateColumn = postgres.TimestampColumn("last_update")
|
|
|
|
|
SpecialFeaturesColumn = postgres.StringColumn("special_features")
|
|
|
|
|
FulltextColumn = postgres.StringColumn("fulltext")
|
2019-07-17 13:22:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
return &FilmTable{
|
2019-08-08 12:02:32 +02:00
|
|
|
Table: postgres.NewTable("dvds", "film", FilmIDColumn, TitleColumn, DescriptionColumn, ReleaseYearColumn, LanguageIDColumn, RentalDurationColumn, RentalRateColumn, LengthColumn, ReplacementCostColumn, RatingColumn, LastUpdateColumn, SpecialFeaturesColumn, FulltextColumn),
|
2019-07-17 13:22:14 +02:00
|
|
|
|
|
|
|
|
//Columns
|
|
|
|
|
FilmID: FilmIDColumn,
|
|
|
|
|
Title: TitleColumn,
|
|
|
|
|
Description: DescriptionColumn,
|
|
|
|
|
ReleaseYear: ReleaseYearColumn,
|
|
|
|
|
LanguageID: LanguageIDColumn,
|
|
|
|
|
RentalDuration: RentalDurationColumn,
|
|
|
|
|
RentalRate: RentalRateColumn,
|
|
|
|
|
Length: LengthColumn,
|
|
|
|
|
ReplacementCost: ReplacementCostColumn,
|
|
|
|
|
Rating: RatingColumn,
|
|
|
|
|
LastUpdate: LastUpdateColumn,
|
|
|
|
|
SpecialFeatures: SpecialFeaturesColumn,
|
|
|
|
|
Fulltext: FulltextColumn,
|
|
|
|
|
|
2019-09-26 12:31:03 +02:00
|
|
|
AllColumns: postgres.ColumnList{FilmIDColumn, TitleColumn, DescriptionColumn, ReleaseYearColumn, LanguageIDColumn, RentalDurationColumn, RentalRateColumn, LengthColumn, ReplacementCostColumn, RatingColumn, LastUpdateColumn, SpecialFeaturesColumn, FulltextColumn},
|
|
|
|
|
MutableColumns: postgres.ColumnList{TitleColumn, DescriptionColumn, ReleaseYearColumn, LanguageIDColumn, RentalDurationColumn, RentalRateColumn, LengthColumn, ReplacementCostColumn, RatingColumn, LastUpdateColumn, SpecialFeaturesColumn, FulltextColumn},
|
2019-07-17 13:22:14 +02:00
|
|
|
}
|
|
|
|
|
}
|