CREATE SEQUENCE IF NOT EXISTS public."PatientExcelHistory_UserExcelHistoryId_seq"
    INCREMENT 1
    START 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    CACHE 1;
-- Table: public.PatientExcelHistory

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

CREATE TABLE IF NOT EXISTS public."PatientExcelHistory"
(
    "PatientExcelHistoryId" integer NOT NULL DEFAULT nextval('"PatientExcelHistory_UserExcelHistoryId_seq"'::regclass),
    "SheetName" text COLLATE pg_catalog."default",
    "UploadedBy" integer,
    "CreatedDate" timestamp without time zone,
    "LocationId" integer,
    "AddedPatients" text COLLATE pg_catalog."default",
    CONSTRAINT "PatientExcelHistory_pkey" PRIMARY KEY ("PatientExcelHistoryId"),
    CONSTRAINT "PatientExcelHistory_LocationId_fkey" FOREIGN KEY ("LocationId")
        REFERENCES public."Location" ("LocationId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "PatientExcelHistory_UploadedBy_fkey" FOREIGN KEY ("UploadedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)