CREATE COLUMN TABLE "SBODEMOPT"."OCPR" ("CntctCode" INTEGER CS_INT NOT NULL , "CardCode" NVARCHAR(15) NOT NULL , "Name" NVARCHAR(50) NOT NULL , "Position" NVARCHAR(90), "Address" NVARCHAR(254), "Tel1" NVARCHAR(50), "Tel2" NVARCHAR(50), "Cellolar" NVARCHAR(50), "Fax" NVARCHAR(50), "E_MailL" NVARCHAR(100), "Pager" NVARCHAR(30), "Notes1" NVARCHAR(100), "Notes2" NVARCHAR(100), "DataSource" NVARCHAR(1) DEFAULT 'N', "UserSign" SMALLINT CS_INT, "Password" NVARCHAR(8), "LogInstanc" INTEGER CS_INT DEFAULT 0, "ObjType" NVARCHAR(20) DEFAULT '11', "BirthPlace" NVARCHAR(100), "BirthDate" LONGDATE CS_LONGDATE, "Gender" NVARCHAR(1) DEFAULT 'E', "Profession" NVARCHAR(50), "updateDate" LONGDATE CS_LONGDATE, "updateTime" INTEGER CS_INT, "Title" NVARCHAR(10), "BirthCity" NVARCHAR(100), "Active" NVARCHAR(1) DEFAULT 'Y', "FirstName" NVARCHAR(50), "MiddleName" NVARCHAR(50), "LastName" NVARCHAR(50), "BirthState" NVARCHAR(3), "ResidCity" NVARCHAR(100), "ResidCntry" NVARCHAR(100), "ResidState" NVARCHAR(3), "NFeRcpn" NVARCHAR(1) DEFAULT 'N', "EmlGrpCode" NVARCHAR(20), "BlockComm" NVARCHAR(1) DEFAULT 'N', "FiscalCode" NVARCHAR(16), "CtyPrvsYr" NVARCHAR(100), "SttPrvsYr" NVARCHAR(3), "CtyCdPrvsY" NVARCHAR(4), "CtyCurYr" NVARCHAR(100), "SttCurYr" NVARCHAR(3), "CtyCdCurYr" NVARCHAR(4), "NotResdSch" NVARCHAR(1), "CtyFsnCode" NVARCHAR(100), "NaturalPer" NVARCHAR(1) DEFAULT 'N', "DPPStatus" NVARCHAR(1) DEFAULT 'N', "CreateDate" LONGDATE CS_LONGDATE, "CreateTS" INTEGER CS_INT, "EncryptIV" NVARCHAR(100), "CnnectAddr" NVARCHAR(50), "CnAddrType" NVARCHAR(1), "Frgncntry" NVARCHAR(3), "EnGender" NCLOB MEMORY THRESHOLD 1000, "GenderEx" NVARCHAR(15) DEFAULT 'E', "EnGenderEx" NCLOB MEMORY THRESHOLD 1000, PRIMARY KEY ("CntctCode")) UNLOAD PRIORITY 0  AUTO MERGE ;
CREATE UNIQUE CPBTREE INDEX "OCPR_CARD" ON "SBODEMOPT"."OCPR" ( "CardCode" ASC, "Name" ASC )