Skip to main content

public.film_actor

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
actor_idintegerfalsepublic.actor
film_idintegerfalsepublic.film
last_updatetimestamp with time zonenow()false

Constraints

NameTypeDefinition
film_actor_actor_id_fkeyFOREIGN KEYFOREIGN KEY (actor_id) REFERENCES actor(actor_id) ON UPDATE CASCADE ON DELETE RESTRICT
film_actor_pkeyPRIMARY KEYPRIMARY KEY (actor_id, film_id)
film_actor_film_id_fkeyFOREIGN KEYFOREIGN KEY (film_id) REFERENCES film(film_id) ON UPDATE CASCADE ON DELETE RESTRICT

Indexes

NameDefinition
film_actor_pkeyCREATE UNIQUE INDEX film_actor_pkey ON public.film_actor USING btree (actor_id, film_id)
idx_fk_film_idCREATE INDEX idx_fk_film_id ON public.film_actor USING btree (film_id)

Triggers

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

Relations

er