Skip to main content

public.address

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
address_idintegernextval('address_address_id_seq'::regclass)falsepublic.customer public.staff public.store
addresstextfalse
address2texttrue
districttextfalse
city_idintegerfalsepublic.city
postal_codetexttrue
phonetextfalse
last_updatetimestamp with time zonenow()false

Constraints

NameTypeDefinition
address_pkeyPRIMARY KEYPRIMARY KEY (address_id)
address_city_id_fkeyFOREIGN KEYFOREIGN KEY (city_id) REFERENCES city(city_id) ON UPDATE CASCADE ON DELETE RESTRICT

Indexes

NameDefinition
address_pkeyCREATE UNIQUE INDEX address_pkey ON public.address USING btree (address_id)
idx_fk_city_idCREATE INDEX idx_fk_city_id ON public.address USING btree (city_id)

Triggers

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

Relations

er