Skip to main content

public.film_category

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
film_idintegerfalsepublic.film
category_idintegerfalsepublic.category
last_updatetimestamp with time zonenow()false

Constraints

NameTypeDefinition
film_category_category_id_fkeyFOREIGN KEYFOREIGN KEY (category_id) REFERENCES category(category_id) ON UPDATE CASCADE ON DELETE RESTRICT
film_category_pkeyPRIMARY KEYPRIMARY KEY (film_id, category_id)
film_category_film_id_fkeyFOREIGN KEYFOREIGN KEY (film_id) REFERENCES film(film_id) ON UPDATE CASCADE ON DELETE RESTRICT

Indexes

NameDefinition
film_category_pkeyCREATE UNIQUE INDEX film_category_pkey ON public.film_category USING btree (film_id, category_id)

Triggers

NameDefinition
last_updatedCREATE TRIGGER last_updated BEFORE UPDATE ON public.film_category FOR EACH ROW EXECUTE FUNCTION last_updated()

Relations

er