CREATE COLUMN TABLE "SBODEMOUS"."AEC8" ("AbsEntry" INTEGER CS_INT NOT NULL , "Code" NVARCHAR(8) NOT NULL , "ParentID" INTEGER CS_INT, "ActType" INTEGER CS_INT DEFAULT 0, "ActDesc" NVARCHAR(100), "ActStatus" NVARCHAR(1) DEFAULT 'N', "ActMessage" NVARCHAR(254), "TestMode" NVARCHAR(1) DEFAULT 'N', "GUID" NVARCHAR(100), "Authority" NVARCHAR(16), "ProcSource" NVARCHAR(20), "MetaData" NCLOB MEMORY THRESHOLD 1000, "MIMEType" NVARCHAR(128), "FileName" NCLOB MEMORY THRESHOLD 1000, "CardCode" NVARCHAR(15), "DocDate" LONGDATE CS_LONGDATE, "ObjType" NVARCHAR(20), "CreateDate" LONGDATE CS_LONGDATE, "CreateTS" INTEGER CS_INT, "UpdateDate" LONGDATE CS_LONGDATE, "UpdateTS" INTEGER CS_INT, "UserSign" SMALLINT CS_INT, "UserSign2" SMALLINT CS_INT, "AssignedID" NVARCHAR(100), "IsBPManual" NVARCHAR(1) DEFAULT 'N', PRIMARY KEY ("AbsEntry")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE INDEX "AEC8_ACTION" ON "SBODEMOUS"."AEC8" ( "Code" ASC, "AbsEntry" ASC )