CREATE SEQUENCE "NurseNote_NurseNoteId_seq";
CREATE TABLE IF NOT EXISTS public."NurseNote"
(
    "NurseNoteId" integer NOT NULL DEFAULT nextval('"NurseNote_NurseNoteId_seq"'::regclass),
    "Note" text COLLATE pg_catalog."default" NOT NULL,
    "CreatedBy" bigint NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "AdmissionId" integer NOT NULL,
    CONSTRAINT "PK_NurseNoteId" PRIMARY KEY ("NurseNoteId"),
    CONSTRAINT "FK_NurseNote_AdmissionId" FOREIGN KEY ("AdmissionId")
        REFERENCES public."Admission" ("AdmissionId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_NurseNote_CreatedById" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)