CREATE COLUMN TABLE "SBODEMOUS"."ACTG" ("GroupNum" SMALLINT CS_INT NOT NULL , "PymntGroup" NVARCHAR(100) NOT NULL , "PayDuMonth" NVARCHAR(1) DEFAULT 'N', "ExtraMonth" SMALLINT CS_INT DEFAULT 0, "ExtraDays" SMALLINT CS_INT DEFAULT 0, "PaymntsNum" SMALLINT CS_INT, "CredLimit" DECIMAL(21,6) CS_FIXED, "VolumDscnt" DECIMAL(21,6) CS_FIXED, "LatePyChrg" DECIMAL(21,6) CS_FIXED, "ObligLimit" DECIMAL(21,6) CS_FIXED, "ListNum" SMALLINT CS_INT, "Payments" NVARCHAR(1) DEFAULT 'N', "NumOfPmnts" SMALLINT CS_INT DEFAULT 1, "Payment1" DECIMAL(21,6) CS_FIXED, "DataSource" NVARCHAR(1) DEFAULT 'N', "UserSign" SMALLINT CS_INT, "OpenRcpt" NVARCHAR(1) DEFAULT 'N', "DiscCode" NVARCHAR(20), "DunningCod" NVARCHAR(20), "BslineDate" NVARCHAR(1) DEFAULT 'T', "InstNum" SMALLINT CS_INT, "TolDays" SMALLINT CS_INT, "VATFirst" NVARCHAR(1) DEFAULT 'N', "CrdMthd" NVARCHAR(1) DEFAULT 'L', "CshRelev" NVARCHAR(1) DEFAULT 'N', "UserSign2" SMALLINT CS_INT, "UpdateDate" LONGDATE CS_LONGDATE, "LogInstanc" INTEGER CS_INT DEFAULT 0 NOT NULL , "CreateDate" LONGDATE CS_LONGDATE, "PDueMonEnd" NVARCHAR(1) DEFAULT 'N', PRIMARY KEY ("GroupNum", "LogInstanc")) UNLOAD PRIORITY 0  AUTO MERGE ;
CREATE UNIQUE INDEX "ACTG_ABS_ENTRY" ON "SBODEMOUS"."ACTG" ( "PymntGroup" ASC, "LogInstanc" ASC )