CREATE COLUMN TABLE "SBODEMOUS"."AEBK" ("AbsEntry" INTEGER CS_INT NOT NULL , "MARK" NVARCHAR(40) NOT NULL , "CancelMARK" NVARCHAR(40), "UID" NVARCHAR(50), "IssueVATID" NVARCHAR(64), "CPVATID" NVARCHAR(64), "Series" NVARCHAR(16), "AA" NVARCHAR(200), "IssueDate" LONGDATE CS_LONGDATE, "InvoiceTyp" NVARCHAR(100), "Currency" NVARCHAR(200), "TlNetVal" DECIMAL(21,6) CS_FIXED, "TlVatAmn" DECIMAL(21,6) CS_FIXED, "TlWheldAmn" DECIMAL(21,6) CS_FIXED, "TlGrossVal" DECIMAL(21,6) CS_FIXED, "LinkDocTyp" INTEGER CS_INT, "LinkDocEnt" INTEGER CS_INT, "IsNegMark" NVARCHAR(1) DEFAULT 'N', "LogInstanc" INTEGER CS_INT DEFAULT 0 NOT NULL , "UserSign" SMALLINT CS_INT, "CreateDate" LONGDATE CS_LONGDATE, "CreateTS" INTEGER CS_INT, "UpdateDate" LONGDATE CS_LONGDATE, "UpdateTS" INTEGER CS_INT, "SourceECM8" INTEGER CS_INT, "ObjType" NVARCHAR(20) DEFAULT '234003013', "UserSign2" SMALLINT CS_INT, PRIMARY KEY ("AbsEntry", "LogInstanc")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE CPBTREE INDEX "AEBK_MARK" ON "SBODEMOUS"."AEBK" ( "MARK" ASC, "LogInstanc" ASC )