Skip to main content

public.staff

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
staff_idintegernextval('staff_staff_id_seq'::regclass)falsepublic.payment_p2022_01 public.payment_p2022_02 public.payment_p2022_03 public.payment_p2022_04 public.payment_p2022_05 public.payment_p2022_06 public.rental
first_nametextfalse
last_nametextfalse
address_idintegerfalsepublic.address
emailtexttrue
store_idintegerfalsepublic.store
activebooleantruefalse
usernametextfalse
passwordtexttrue
last_updatetimestamp with time zonenow()false
picturebyteatrue

Constraints

NameTypeDefinition
staff_address_id_fkeyFOREIGN KEYFOREIGN KEY (address_id) REFERENCES address(address_id) ON UPDATE CASCADE ON DELETE RESTRICT
staff_pkeyPRIMARY KEYPRIMARY KEY (staff_id)
staff_store_id_fkeyFOREIGN KEYFOREIGN KEY (store_id) REFERENCES store(store_id)

Indexes

NameDefinition
staff_pkeyCREATE UNIQUE INDEX staff_pkey ON public.staff USING btree (staff_id)

Triggers

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

Relations

er