INSERT INTO "LabBookingStatus" ("Status", "Active")
VALUES ('DoctorAssigned', true);

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
insert into "LabBookingStatus"("Status","Active")
                               values('DoctorVerified',true);

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

INSERT INTO "LabBookingStatus" ("Status", "Active")
VALUES ('Verified', true);

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

create sequence "LabReportVerification_LabReportVerificationId_seq";
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Table: public.LabReportVerification

-- DROP TABLE IF EXISTS public."LabReportVerification";

CREATE TABLE IF NOT EXISTS public."LabReportVerification"
(
    "LabReportVerificationId" integer NOT NULL DEFAULT nextval('"LabReportVerification_LabReportVerificationId_seq"'::regclass),
    "NewLabBookingDetailId" integer NOT NULL,
    "ApprovedBy" integer NOT NULL,
    "ApprovedDate" timestamp without time zone,
    "Approved" boolean DEFAULT false,
    CONSTRAINT "LabReportVerification_pkey" PRIMARY KEY ("LabReportVerificationId"),
    CONSTRAINT "LabReportVerification_NewLabBookingDetailId_fkey" FOREIGN KEY ("NewLabBookingDetailId")
        REFERENCES public."NewLabBookingDetail" ("NewLabBookingDetailId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "LabReportVerification_ApprovedBy_fkey" FOREIGN KEY ("ApprovedBy")
        REFERENCES public."Provider" ("ProviderId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS public."LabReportVerification"
    OWNER to postgres;