drop table "CaseType"
create sequence "CaseType_CaseTypeId_seq"

CREATE TABLE IF NOT EXISTS public."CaseType"
(
    "CaseTypeId" bigint NOT NULL DEFAULT nextval('"CaseType_CaseTypeId_seq"'::regclass),    
    "CaseTypeName" character varying(255),
    "Code" character varying(255),
    "Active" boolean DEFAULT true,
    "CreatedBy" bigint NOT NULL references "Account" ("AccountId") ,
    "CreatedDate" timestamp without time zone NOT NULL,
    "ModifiedBy" bigint references "Account" ("AccountId"),
    "ModifiedDate" timestamp without time zone  
);
insert into "LogType" ("LogTypeName","Active") values ('CaseType',true);