CREATE SEQUENCE IF NOT EXISTS public."DietGuidLines_DietGuidLinesId_seq"
    INCREMENT 1
    START 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    CACHE 1;

ALTER SEQUENCE public."DietGuidLines_DietGuidLinesId_seq"
    OWNER TO postgres;
	
---------------------------------------------------------------------------------------
-- Table: public.DietGuidLines

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

CREATE TABLE IF NOT EXISTS public."DietGuidLines"
(
    "DietGuidLinesId" integer NOT NULL DEFAULT nextval('"DietGuidLines_DietGuidLinesId_seq"'::regclass),
    "PdfLink" text COLLATE pg_catalog."default",
    "Active" boolean NOT NULL DEFAULT true,
    "CreatedBy" integer NOT NULL,
    "CreatedDate" timestamp(6) without time zone NOT NULL,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp(6) without time zone,
    "DietGuidLinesName" text COLLATE pg_catalog."default",
    "ContentType" text COLLATE pg_catalog."default",
    "Size" double precision,
    "DocumentUrl" text COLLATE pg_catalog."default",
    CONSTRAINT "DietGuidLines_pkey" PRIMARY KEY ("DietGuidLinesId"),
    CONSTRAINT "FK_DietGuidLines_CreatedBy" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE CASCADE,
    CONSTRAINT "FK_DietGuidLines_ModifiedBy" FOREIGN KEY ("ModifiedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE CASCADE
)

TABLESPACE pg_default;

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