CREATE COLUMN TABLE "SBODEMODE"."OVTG" ("Code" NVARCHAR(8) NOT NULL , "Name" NVARCHAR(50), "Rate" DECIMAL(21,6) CS_FIXED, "EffecDate" LONGDATE CS_LONGDATE, "Category" NVARCHAR(1) DEFAULT 'O', "Account" NVARCHAR(15), "Locked" NVARCHAR(1) DEFAULT 'N', "DataSource" NVARCHAR(1) DEFAULT 'N', "UserSign" SMALLINT CS_INT, "IsEC" NVARCHAR(1) DEFAULT 'N', "Indicator" NVARCHAR(1), "AcqstnRvrs" NVARCHAR(1) DEFAULT 'N', "NonDedct" DECIMAL(21,6) CS_FIXED, "AcqsTax" NVARCHAR(15), "GoddsShip" NVARCHAR(1), "NonDedAcc" NVARCHAR(15), "DeferrAcc" NVARCHAR(15), "EquVatPr" DECIMAL(21,6) CS_FIXED, "ReportCode" NVARCHAR(100), "FixdAssts" NVARCHAR(1) DEFAULT 'N', "CalcMethod" NVARCHAR(1) DEFAULT 'R', "TaxType" NVARCHAR(1) DEFAULT 'V', "FixedAmnt" DECIMAL(21,6) CS_FIXED, "ExtCode" NVARCHAR(10), "Correction" NVARCHAR(1) DEFAULT 'N', "VatCrctn" NVARCHAR(8), "RetVatCode" NVARCHAR(8), "RepType" INTEGER CS_INT, "LogInstanc" INTEGER CS_INT DEFAULT 0, "UpdateDate" LONGDATE CS_LONGDATE, "TaxCtgr" NVARCHAR(6) DEFAULT 'E', "EquAccount" NVARCHAR(15), "UserSign2" SMALLINT CS_INT, "IsIGIC" NVARCHAR(1) DEFAULT 'N', "ServSupply" NVARCHAR(1), "Inactive" NVARCHAR(1) DEFAULT 'N', "TaxCtgrBL" NVARCHAR(1) DEFAULT 'E', "R349Code" INTEGER CS_INT DEFAULT 0, "VatRevAcc" NVARCHAR(15), "CashDisAcc" NVARCHAR(15), "DpmTaxOAcc" NVARCHAR(15), "VatDedAcc" NVARCHAR(15), "CstmExpAcc" NVARCHAR(15), "CstmAlcAcc" NVARCHAR(15), "TaxRegion" NVARCHAR(5) DEFAULT 'PT', "ExemReason" NVARCHAR(3), "Agent" NVARCHAR(1) DEFAULT 'N', "OpCode" NVARCHAR(7), "Export" NVARCHAR(1) DEFAULT 'N', "Section" NVARCHAR(3), "SplitPaymt" NVARCHAR(1) DEFAULT 'N', "SplitPayAc" NVARCHAR(15), "TaxAgent" NVARCHAR(1) DEFAULT 'N', "SectionLim" NVARCHAR(3), "VatSubjCod" NVARCHAR(10), "VatType" INTEGER CS_INT DEFAULT -1, "VatCategor" INTEGER CS_INT DEFAULT -1, "Parag44" NVARCHAR(1) DEFAULT 'N', "ProrataDed" NVARCHAR(1) DEFAULT 'N', "ExcFrmTaxS" NVARCHAR(1) DEFAULT 'N', "CstmActing" NVARCHAR(1) DEFAULT 'N', "CstmActOut" NVARCHAR(8), "StdTaxCode" NVARCHAR(35), "AcqRevTax" NVARCHAR(8), "ExReasonHU" NVARCHAR(30), "ExRemarkHU" NVARCHAR(50), "EBVatCateg" INTEGER CS_INT, "SAFTTaxCod" NVARCHAR(10) DEFAULT 'NOR', "EBVatExCau" INTEGER CS_INT, "VatClasTyp" INTEGER CS_INT, "VatClasCat" INTEGER CS_INT, "SAFTTxCdEx" NVARCHAR(10) DEFAULT 'NOR', PRIMARY KEY ("Code")) UNLOAD PRIORITY 0  AUTO MERGE ;
CREATE INDEX "OVTG_GROUP_NAME" ON "SBODEMODE"."OVTG" ( "Name" ASC )