Skip to main content

public.film

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
film_idintegernextval('film_film_id_seq'::regclass)falsepublic.film_actor public.film_category public.inventory
titletextfalse
descriptiontexttrue
release_yearyeartrue
language_idintegerfalsepublic.language
original_language_idintegertruepublic.language
rental_durationsmallint3false
rental_ratenumeric(4,2)4.99false
lengthsmallinttrue
replacement_costnumeric(5,2)19.99false
ratingmpaa_rating'G'::mpaa_ratingtrue
last_updatetimestamp with time zonenow()false
special_featurestext[]true
fulltexttsvectorfalse

Constraints

NameTypeDefinition
film_pkeyPRIMARY KEYPRIMARY KEY (film_id)
film_language_id_fkeyFOREIGN KEYFOREIGN KEY (language_id) REFERENCES language(language_id) ON UPDATE CASCADE ON DELETE RESTRICT
film_original_language_id_fkeyFOREIGN KEYFOREIGN KEY (original_language_id) REFERENCES language(language_id) ON UPDATE CASCADE ON DELETE RESTRICT

Indexes

NameDefinition
film_pkeyCREATE UNIQUE INDEX film_pkey ON public.film USING btree (film_id)
film_fulltext_idxCREATE INDEX film_fulltext_idx ON public.film USING gist (fulltext)
idx_fk_language_idCREATE INDEX idx_fk_language_id ON public.film USING btree (language_id)
idx_fk_original_language_idCREATE INDEX idx_fk_original_language_id ON public.film USING btree (original_language_id)
idx_titleCREATE INDEX idx_title ON public.film USING btree (title)

Triggers

NameDefinition
film_fulltext_triggerCREATE TRIGGER film_fulltext_trigger BEFORE INSERT OR UPDATE ON public.film FOR EACH ROW EXECUTE FUNCTION tsvector_update_trigger('fulltext', 'pg_catalog.english', 'title', 'description')
last_updatedCREATE TRIGGER last_updated BEFORE UPDATE ON public.film FOR EACH ROW EXECUTE FUNCTION last_updated()

Relations

er