create table "DynamicTemplate"(
	"DynamicTemplateId" serial not null,
	"TemplateName" CHARACTER varying,
	"Value" text,
	"Active" boolean DEFAULT true,
    "CreatedBy" integer,
    "CreatedDate" timestamp without time zone,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp without time zone,
	    CONSTRAINT "DynamicTemplate_pkey" PRIMARY KEY ("DynamicTemplateId"),
		CONSTRAINT "DynamicTemplate_CreatedBy_fkey" FOREIGN KEY ("CreatedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION,
		CONSTRAINT "DynamicTemplate_ModifiedBy_fkey" FOREIGN KEY ("ModifiedBy")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION);
		
		
insert into "LogType"("LogTypeId","LogTypeName","Active")VALUES(59,'DynamicTemplate',true)