CREATE COLUMN TABLE "SBODEMODE"."AIN4" ("DocEntry" INTEGER CS_INT NOT NULL , "CounterNum" INTEGER CS_INT NOT NULL , "CounteType" INTEGER CS_INT DEFAULT 12 NOT NULL , "CounterId" INTEGER CS_INT NOT NULL , "CounteName" NVARCHAR(155), "LogIns" INTEGER CS_INT NOT NULL , "VisOrder" INTEGER CS_INT, PRIMARY KEY ("DocEntry", "CounterNum", "LogIns")) UNLOAD PRIORITY 5  AUTO MERGE ;
CREATE UNIQUE INDEX "AIN4_BUSINESS" ON "SBODEMODE"."AIN4" ( "DocEntry" ASC, "CounteType" ASC, "CounterId" ASC, "LogIns" ASC )