alter table "Receipt"
add "PatientRegistrationDetailId" INTEGER;

alter table "Receipt"
ADD  CONSTRAINT "FK_Receipt_PatientRegistrationDetailId" FOREIGN KEY ("PatientRegistrationDetailId")
        REFERENCES public."PatientRegistrationDetail" ("PatientRegistrationDetailId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE CASCADE;