Skip to main content

public.store

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
store_idintegernextval('store_store_id_seq'::regclass)falsepublic.customer public.inventory public.staff
manager_staff_idintegerfalse
address_idintegerfalsepublic.address
last_updatetimestamp with time zonenow()false

Constraints

NameTypeDefinition
store_address_id_fkeyFOREIGN KEYFOREIGN KEY (address_id) REFERENCES address(address_id) ON UPDATE CASCADE ON DELETE RESTRICT
store_pkeyPRIMARY KEYPRIMARY KEY (store_id)

Indexes

NameDefinition
store_pkeyCREATE UNIQUE INDEX store_pkey ON public.store USING btree (store_id)
idx_unq_manager_staff_idCREATE UNIQUE INDEX idx_unq_manager_staff_id ON public.store USING btree (manager_staff_id)

Triggers

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

Relations

er