CREATE COLUMN TABLE "SBODEMOUS"."CUDV" ("FormID" NVARCHAR(100) NOT NULL , "ItemID" NVARCHAR(52) NOT NULL , "ColID" NVARCHAR(128) DEFAULT '-1' NOT NULL , "ActionT" SMALLINT CS_INT DEFAULT 0, "QueryId" INTEGER CS_INT, "IndexID" INTEGER CS_INT NOT NULL , "Refresh" NVARCHAR(1) DEFAULT 'N', "FieldID" NVARCHAR(60), "FrceRfrsh" NVARCHAR(1) DEFAULT 'N', "ByField" NVARCHAR(1) DEFAULT 'N', "ViewCmplt" NVARCHAR(1) DEFAULT 'N', "ExpId" INTEGER CS_INT, "BObject" NVARCHAR(254), "DObject" NVARCHAR(52), "CreateTS" INTEGER CS_INT, "UpdateTS" INTEGER CS_INT, "UserSign" SMALLINT CS_INT, "UserSign2" SMALLINT CS_INT, "CreateDate" LONGDATE CS_LONGDATE, "UpdateDate" LONGDATE CS_LONGDATE, PRIMARY KEY ("IndexID")) UNLOAD PRIORITY 0  AUTO MERGE ;
CREATE UNIQUE INDEX "CUDV_DETAILS" ON "SBODEMOUS"."CUDV" ( "FormID" ASC, "ItemID" ASC, "ColID" ASC )