ALTER TABLE "NewLabBookingHeader" 
ADD COLUMN "AppointmentId" integer,
add CONSTRAINT "NewLabBookingHeader_AppointmentId_fkey" FOREIGN KEY ("AppointmentId") 
  REFERENCES public."Appointment" ("AppointmentId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION;