Skip to main content

public.payment_p2022_05

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
payment_idintegernextval('payment_payment_id_seq'::regclass)false
customer_idintegerfalsepublic.customer
staff_idintegerfalsepublic.staff
rental_idintegerfalsepublic.rental
amountnumeric(5,2)false
payment_datetimestamp with time zonefalse

Constraints

NameTypeDefinition
payment_p2022_05_pkeyPRIMARY KEYPRIMARY KEY (payment_date, payment_id)
payment_p2022_05_customer_id_fkeyFOREIGN KEYFOREIGN KEY (customer_id) REFERENCES customer(customer_id)
payment_p2022_05_rental_id_fkeyFOREIGN KEYFOREIGN KEY (rental_id) REFERENCES rental(rental_id)
payment_p2022_05_staff_id_fkeyFOREIGN KEYFOREIGN KEY (staff_id) REFERENCES staff(staff_id)

Indexes

NameDefinition
payment_p2022_05_pkeyCREATE UNIQUE INDEX payment_p2022_05_pkey ON public.payment_p2022_05 USING btree (payment_date, payment_id)
idx_fk_payment_p2022_05_customer_idCREATE INDEX idx_fk_payment_p2022_05_customer_id ON public.payment_p2022_05 USING btree (customer_id)
idx_fk_payment_p2022_05_staff_idCREATE INDEX idx_fk_payment_p2022_05_staff_id ON public.payment_p2022_05 USING btree (staff_id)
payment_p2022_05_customer_id_idxCREATE INDEX payment_p2022_05_customer_id_idx ON public.payment_p2022_05 USING btree (customer_id)

Relations

er