CREATE TABLE [dbo].[ACUADPRE] (
	[PERIODO] [char] (4) NOT NULL ,
	[KOPRESU] [char] (10) NOT NULL ,
	[APRESU] [char] (20) NOT NULL ,
	[BPRESU] [char] (20) NOT NULL ,
	[CPRESU] [char] (20) NOT NULL ,
	[NPRESU] [int] NULL ,
	[TPRESU] [char] (1) NULL ,
	[NDPRESU] [char] (1) NULL ,
	[NUDEPRO] [float] NULL ,
	[TDEPOR] [float] NULL ,
	[TDEVAL] [float] NULL ,
	[PTOTAL] [float] NULL ,
	[RTOTAL] [float] NULL ,
	[P01ENE] [float] NULL ,
	[P02FEB] [float] NULL ,
	[P03MAR] [float] NULL ,
	[P04ABR] [float] NULL ,
	[P05MAY] [float] NULL ,
	[P06JUN] [float] NULL ,
	[P07JUL] [float] NULL ,
	[P08AGO] [float] NULL ,
	[P09SEP] [float] NULL ,
	[P10OCT] [float] NULL ,
	[P11NOV] [float] NULL ,
	[P12DIC] [float] NULL ,
	[R01ENE] [float] NULL ,
	[R02FEB] [float] NULL ,
	[R03MAR] [float] NULL ,
	[R04ABR] [float] NULL ,
	[R05MAY] [float] NULL ,
	[R06JUN] [float] NULL ,
	[R07JUL] [float] NULL ,
	[R08AGO] [float] NULL ,
	[R09SEP] [float] NULL ,
	[R10OCT] [float] NULL ,
	[R11NOV] [float] NULL ,
	[R12DIC] [float] NULL ,
	[NOAPRESU] [varchar] (25) NULL ,
	[NOBPRESU] [varchar] (25) NULL ,
	[NOCPRESU] [varchar] (25) NULL ,
	[EMPRESA] [char] (2) NULL ,
	[KOFUOCCVAL] [char] (15) NULL ,
	[KOFUOCCAU1] [char] (15) NULL ,
	[KOFUOCCAU2] [char] (15) NULL ,
	[KOFUOCCAU3] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CACTFI] (
	[IDACTFI] [int] IDENTITY (1, 1) NOT NULL ,
	[PERIODO] [char] (4) NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMFAF] [char] (10) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[KOPR] [char] (13) NULL ,
	[NUSEPR] [char] (25) NULL ,
	[KOPRPE] [char] (13) NULL ,
	[NUSEPRPE] [char] (25) NULL ,
	[CUENTAANT] [char] (8) NULL ,
	[TIPOBIEN] [char] (1) NULL ,
	[METODO] [char] (9) NULL ,
	[VIDAUTIL] [float] NULL ,
	[FEVIDAUTIL] [datetime] NOT NULL ,
	[VALACTUAL] [float] NOT NULL ,
	[DEPACTUAL] [float] NOT NULL ,
	[FECACTUAL] [datetime] NULL ,
	[SUPR] [char] (3) NULL ,
	[TIDOADQ] [char] (3) NULL ,
	[NUDOADQ] [char] (10) NULL ,
	[ENDOADQ] [char] (13) NULL ,
	[NREGADQ] [char] (5) NULL ,
	[FEDOADQ] [datetime] NULL ,
	[VAADQ] [float] NOT NULL ,
	[DESCRIP1] [varchar] (70) NULL ,
	[DESCRIP2] [varchar] (70) NULL ,
	[HORAGRAB] [int] NULL ,
	[PORLOTE] [bit] NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CACTFID] (
	[IDACTFID] [int] IDENTITY (1, 1) NOT NULL ,
	[IDACTFI] [int] NOT NULL ,
	[FECHAEJ] [datetime] NULL ,
	[COMOAF] [float] NULL ,
	[COMODAAF] [float] NULL ,
	[VADEAF] [float] NULL ,
	[VADEAFFI] [float] NULL ,
	[VADEAFMO] [float] NULL ,
	[STFIEJ] [float] NULL ,
	[VALAFEJ] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCARTOLD] (
	[IDCARTOLD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDCARTOLE] [int] NOT NULL ,
	[TIRSCAR] [char] (3) NOT NULL ,
	[NURSCAR] [char] (10) NOT NULL ,
	[ESTALINCAR] [char] (1) NOT NULL ,
	[FECHACAR] [datetime] NOT NULL ,
	[CARGOS] [float] NOT NULL ,
	[ABONOS] [float] NOT NULL ,
	[GLOSACAR] [varchar] (25) NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[IDCOMPRD1] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCARTOLE] (
	[IDCARTOLE] [int] IDENTITY (1, 1) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUCAR] [char] (10) NOT NULL ,
	[CTACTECAR] [char] (16) NOT NULL ,
	[CUENTACON] [char] (8) NOT NULL ,
	[SUBAUXICON] [char] (13) NOT NULL ,
	[DESDE] [datetime] NOT NULL ,
	[HASTA] [datetime] NOT NULL ,
	[TSALDOA] [float] NOT NULL ,
	[TCARGOS] [float] NOT NULL ,
	[TABONOS] [float] NOT NULL ,
	[TSALDO] [float] NOT NULL ,
	[ESTADOCAR] [char] (4) NOT NULL ,
	[HORAGRAB] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCOMPRC] (
	[IDCOMPRC] [int] IDENTITY (1, 1) NOT NULL ,
	[IDCOMPRD] [int] NOT NULL ,
	[TCC] [char] (2) NOT NULL ,
	[CODCC] [char] (8) NOT NULL ,
	[PDCC] [float] NOT NULL ,
	[VALOR] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCOMPRD] (
	[IDCOMPRD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDCOMPRE] [int] NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[TCC] [char] (2) NULL ,
	[GLOSA] [varchar] (50) NULL ,
	[DEBE] [float] NULL ,
	[HABER] [float] NULL ,
	[ANALISIS] [char] (1) NULL ,
	[TIENEPRESU] [char] (1) NULL ,
	[CTAFJEF] [char] (8) NULL ,
	[GRADODET] [char] (5) NULL ,
	[KOSU] [char] (3) NULL ,
	[IFRS] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCOMPRD1] (
	[IDCOMPRD1] [int] IDENTITY (1, 1) NOT NULL ,
	[IDCOMPRD] [int] NOT NULL ,
	[SUBDEBE] [float] NOT NULL ,
	[SUBHABER] [float] NOT NULL ,
	[ANALISIS1] [char] (1) NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[CAMPORST] [char] (10) NOT NULL ,
	[SUBGLOSA] [varchar] (50) NOT NULL ,
	[TCAC] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCOMPRE] (
	[IDCOMPRE] [int] IDENTITY (1, 1) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMECOM] [char] (10) NOT NULL ,
	[TIPOCOM] [char] (1) NOT NULL ,
	[FECHCOM] [datetime] NOT NULL ,
	[GLOSACOM] [varchar] (50) NOT NULL ,
	[DEBECOM] [float] NOT NULL ,
	[HABERCOM] [float] NOT NULL ,
	[ESTACOM] [char] (5) NOT NULL ,
	[TASA] [float] NOT NULL ,
	[KOFUCC] [char] (3) NOT NULL ,
	[TIPOOP] [char] (2) NOT NULL ,
	[KOSUGEN] [char] (3) NOT NULL ,
	[HORAGRAB] [int] NULL ,
	[DEBEIFRS] [float] NULL ,
	[HABERIFRS] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCTAFJEF] (
	[CTAFJEF] [char] (8) NOT NULL ,
	[NOCTAFJEF] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCUENEMP] (
	[EMPRESA] [char] (2) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [varchar] (2) NOT NULL ,
	[MAYOR] [varchar] (3) NOT NULL ,
	[CUENTA] [varchar] (3) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CCUENTAS] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[TCC] [char] (2) NOT NULL ,
	[TIENESUB] [char] (2) NOT NULL ,
	[NOCUENTA] [varchar] (25) NOT NULL ,
	[ESBANCO] [bit] NOT NULL ,
	[ESACTFI] [bit] NOT NULL ,
	[ESEXIST] [bit] NOT NULL ,
	[ESFJEF] [bit] NOT NULL ,
	[CONANALISI] [bit] NOT NULL ,
	[CONDESTINO] [bit] NOT NULL ,
	[FORMULARIO] [char] (3) NULL ,
	[ESAJUINF] [bit] NOT NULL ,
	[CUENTAM] [char] (8) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CDICUEN] (
	[PERIODO] [char] (4) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[CODCC] [char] (8) NOT NULL ,
	[PDCC] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CDIDEST] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[CTADESTINO] [char] (8) NOT NULL ,
	[SUBDESTINO] [char] (13) NOT NULL ,
	[PORDEBE] [float] NOT NULL ,
	[PORHABER] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CDOCCOD] (
	[IDDOCCOD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDDOCCOE] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[KOPR] [char] (13) NULL ,
	[UD01PR] [char] (2) NULL ,
	[CAPRCO1] [float] NULL ,
	[PRECIOAPER] [float] NULL ,
	[VALORAPER] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CDOCCOE] (
	[IDDOCCOE] [int] IDENTITY (1, 1) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (10) NULL ,
	[ARCHIENDO] [char] (8) NULL ,
	[EMDO] [char] (13) NULL ,
	[FEEMDO] [datetime] NULL ,
	[FEVEDO] [datetime] NULL ,
	[TIMODO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TAMODO] [float] NULL ,
	[VAMODO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[VAABDO] [float] NULL ,
	[NUVEDO] [int] NULL ,
	[GLOSA] [varchar] (50) NOT NULL ,
	[CUDO] [char] (16) NULL ,
	[NUCUDO] [char] (10) NULL ,
	[ESPGDO] [char] (1) NULL ,
	[CUOGASDIF] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[CODCC] [char] (8) NULL ,
	[SIMILSISTE] [char] (1) NULL ,
	[KOTNDP] [char] (13) NULL ,
	[SUTNDP] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CFORMCON] (
	[KOFORMU] [char] (3) NOT NULL ,
	[NOKOFORMU] [char] (30) NOT NULL ,
	[PERIODO] [char] (4) NULL ,
	[EMPRESA] [char] (2) NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ARCHIENDO] [char] (8) NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[EMDO] [char] (13) NULL ,
	[FEEMDO] [datetime] NULL ,
	[FEVEDO] [datetime] NULL ,
	[TIMODO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TAMODO] [float] NULL ,
	[VAMODO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[VAABDO] [float] NULL ,
	[NUVEDO] [int] NULL ,
	[GLOSA] [varchar] (50) NULL ,
	[ESPGDO] [char] (1) NULL ,
	[CODCC] [char] (8) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[CONTABVTA] [char] (8) NULL ,
	[SUBAUXIVTA] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CGRANCUE] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[NOGRANCUE] [varchar] (25) NOT NULL ,
	[TIPOCUENTA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CGRFJEF] (
	[GRFJEF] [char] (4) NOT NULL ,
	[NOGRFJEF] [varchar] (30) NULL ,
	[ESINGRESO] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CMAYOR] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[NOMAYOR] [varchar] (25) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CNETEOS] (
	[IDPRD1ACT] [int] NOT NULL ,
	[IDPRD1PAS] [int] NOT NULL ,
	[NURANALI] [char] (10) NOT NULL ,
	[VALOR] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CONFICON] (
	[EMPRESA] [char] (2) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[FMINO] [datetime] NULL ,
	[FMAXO] [datetime] NULL ,
	[CTAIVACOM] [char] (8) NULL ,
	[SUBIVACOM] [char] (13) NULL ,
	[CTAIVARET] [char] (8) NULL ,
	[SUBIVARET] [char] (13) NULL ,
	[CTAIVAVTA] [char] (8) NULL ,
	[SUBIVAVTA] [char] (13) NULL ,
	[CTABLSVTA] [char] (8) NULL ,
	[SUBBLSVTA] [char] (13) NULL ,
	[CTAANTVTA] [char] (8) NULL ,
	[SUBANTVTA] [char] (13) NULL ,
	[CTAANTCOM] [char] (8) NULL ,
	[SUBANTCOM] [char] (13) NULL ,
	[CTACOSVTA] [char] (8) NULL ,
	[SUBCOSVTA] [char] (13) NULL ,
	[POST_ACTMG] [bit] NOT NULL ,
	[CTAAJUVTA] [char] (8) NULL ,
	[SUBAJUVTA] [char] (13) NULL ,
	[CTAVUELTO] [char] (8) NULL ,
	[SUBVUELTO] [char] (13) NULL ,
	[CTAPERDC] [char] (8) NULL ,
	[SUBPERDC] [char] (13) NULL ,
	[CTAGANDC] [char] (8) NULL ,
	[SUBGANDC] [char] (13) NULL ,
	[CMESES] [varchar] (200) NULL ,
	[CTAANTINMV] [char] (8) NULL ,
	[SUBANTINMV] [char] (13) NULL ,
	[CTAANTINMC] [char] (8) NULL ,
	[SUBANTINMC] [char] (13) NULL ,
	[PIDEAUT] [bit] NOT NULL ,
	[ENDOLARES] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CONFIEST] (
	[EMPRESA] [char] (2) NOT NULL ,
	[MODALIDAD] [char] (5) NOT NULL ,
	[ESUCURSAL] [char] (3) NULL ,
	[EBODEGA] [char] (3) NULL ,
	[ECAJA] [char] (2) NULL ,
	[ELISTAVEN] [char] (8) NULL ,
	[NLISTAVEN] [varchar] (50) NULL ,
	[ELISTACOM] [char] (8) NULL ,
	[NLISTACOM] [varchar] (50) NULL ,
	[ELISTAINT] [char] (8) NULL ,
	[NLISTAINT] [varchar] (50) NULL ,
	[EPARALELA] [char] (3) NULL ,
	[NPARALELA] [varchar] (100) NULL ,
	[ESERIAL] [char] (3) NULL ,
	[NSERIAL] [varchar] (100) NULL ,
	[EDESFACV] [char] (1) NULL ,
	[EPAGOSV] [char] (1) NULL ,
	[CRTO] [float] NULL ,
	[CRSD] [float] NULL ,
	[CRCH] [float] NULL ,
	[CRLT] [float] NULL ,
	[CRPA] [float] NULL ,
	[POPICR] [float] NULL ,
	[NUVECR] [float] NULL ,
	[FEVECR] [datetime] NULL ,
	[FMINS] [datetime] NULL ,
	[FMAXS] [datetime] NULL ,
	[FMINV] [datetime] NULL ,
	[FMAXV] [datetime] NULL ,
	[FMINA] [datetime] NULL ,
	[FMAXA] [datetime] NULL ,
	[FMINC] [datetime] NULL ,
	[FMAXC] [datetime] NULL ,
	[DRIVE] [char] (1) NULL ,
	[STOCK] [char] (1) NULL ,
	[NVI] [char] (10) NULL ,
	[NVILSR] [char] (1) NULL ,
	[NVV] [char] (10) NULL ,
	[NVVLSR] [char] (1) NULL ,
	[GDI] [char] (10) NULL ,
	[GDILSR] [char] (1) NULL ,
	[GDP] [char] (10) NULL ,
	[GDPLSR] [char] (1) NULL ,
	[GDV] [char] (10) NULL ,
	[GDVLSR] [char] (1) NULL ,
	[GDD] [char] (10) NULL ,
	[GDDLSR] [char] (1) NULL ,
	[FCV] [char] (10) NULL ,
	[FCVLSR] [char] (1) NULL ,
	[FDV] [char] (10) NULL ,
	[FDVLSR] [char] (1) NULL ,
	[NCV] [char] (10) NULL ,
	[NCVLSR] [char] (1) NULL ,
	[BLV] [char] (10) NULL ,
	[BLVLSR] [char] (1) NULL ,
	[BSV] [char] (10) NULL ,
	[BSVLSR] [char] (1) NULL ,
	[OCI] [char] (10) NULL ,
	[OCILSR] [char] (1) NULL ,
	[GRI] [char] (10) NULL ,
	[GRILSR] [char] (1) NULL ,
	[OCC] [char] (10) NULL ,
	[OCCLSR] [char] (1) NULL ,
	[COV] [char] (10) NULL ,
	[COVLSR] [char] (1) NULL ,
	[GAR] [char] (10) NULL ,
	[GARLSR] [char] (1) NULL ,
	[FEV] [char] (10) NULL ,
	[FEVLSR] [char] (1) NULL ,
	[FCT] [char] (10) NULL ,
	[FCTLSR] [char] (1) NULL ,
	[GCL] [char] (10) NULL ,
	[GCLLSR] [char] (1) NULL ,
	[FDB] [char] (10) NULL ,
	[FDBLSR] [char] (1) NULL ,
	[NCB] [char] (10) NULL ,
	[NCBLSR] [char] (1) NULL ,
	[LISTAMARG] [char] (8) NULL ,
	[TIPOMARGEN] [float] NULL ,
	[CAMBIARESP] [bit] NULL ,
	[NVIKOFOR] [char] (13) NULL ,
	[NVVKOFOR] [char] (13) NULL ,
	[GDIKOFOR] [char] (13) NULL ,
	[GTIKOFOR] [char] (13) NULL ,
	[GDPKOFOR] [char] (13) NULL ,
	[GDVKOFOR] [char] (13) NULL ,
	[GDDKOFOR] [char] (13) NULL ,
	[FCVKOFOR] [char] (13) NULL ,
	[FDVKOFOR] [char] (13) NULL ,
	[BSVKOFOR] [char] (13) NULL ,
	[BLVKOFOR] [char] (13) NULL ,
	[NCVKOFOR] [char] (13) NULL ,
	[OCIKOFOR] [char] (13) NULL ,
	[OCCKOFOR] [char] (13) NULL ,
	[GRIKOFOR] [char] (13) NULL ,
	[GRPKOFOR] [char] (13) NULL ,
	[GRCKOFOR] [char] (13) NULL ,
	[GRDKOFOR] [char] (13) NULL ,
	[FCCKOFOR] [char] (13) NULL ,
	[FDCKOFOR] [char] (13) NULL ,
	[BLCKOFOR] [char] (13) NULL ,
	[NCCKOFOR] [char] (13) NULL ,
	[COVKOFOR] [char] (13) NULL ,
	[GARKOFOR] [char] (13) NULL ,
	[FEVKOFOR] [char] (13) NULL ,
	[FCTKOFOR] [char] (13) NULL ,
	[GCLKOFOR] [char] (13) NULL ,
	[FDBKOFOR] [char] (13) NULL ,
	[NCBKOFOR] [char] (13) NULL ,
	[NOEVALIST] [bit] NULL ,
	[VERCONSOL] [bit] NULL ,
	[SOLOVERSUC] [bit] NULL ,
	[LUVTVEN] [char] (8) NULL ,
	[LUVTCOM] [char] (8) NULL ,
	[DIAEXPIVEN] [int] NULL ,
	[DIAEXPICOM] [int] NULL ,
	[FTOPEELIM] [datetime] NULL ,
	[CONODD] [bit] NOT NULL ,
	[CONOFERTA] [bit] NOT NULL ,
	[FVL] [char] (10) NULL ,
	[FVLLSR] [char] (1) NULL ,
	[FVX] [char] (10) NULL ,
	[FVXLSR] [char] (1) NULL ,
	[FDX] [char] (10) NULL ,
	[FDXLSR] [char] (1) NULL ,
	[NCX] [char] (10) NULL ,
	[NCXLSR] [char] (1) NULL ,
	[FVLKOFOR] [char] (13) NULL ,
	[FVXKOFOR] [char] (13) NULL ,
	[FDXKOFOR] [char] (13) NULL ,
	[NCXKOFOR] [char] (13) NULL ,
	[GTI] [char] (10) NULL ,
	[GTILSR] [char] (1) NULL ,
	[GRP] [char] (10) NULL ,
	[GRPLSR] [char] (1) NULL ,
	[RESPXVEND] [bit] NOT NULL ,
	[NEV] [char] (10) NULL ,
	[NEVLSR] [char] (1) NULL ,
	[NEVKOFOR] [char] (13) NULL ,
	[FABGRIAUT] [bit] NOT NULL ,
	[FVZ] [char] (10) NULL ,
	[FVZLSR] [char] (1) NULL ,
	[FVZKOFOR] [char] (13) NULL ,
	[FDZ] [char] (10) NULL ,
	[FDZLSR] [char] (1) NULL ,
	[FDZKOFOR] [char] (13) NULL ,
	[NCZ] [char] (10) NULL ,
	[NCZLSR] [char] (1) NULL ,
	[NCZKOFOR] [char] (13) NULL ,
	[NVC] [char] (10) NULL ,
	[NVCLSR] [char] (1) NULL ,
	[NVCKOFOR] [char] (13) NULL ,
	[RIN] [char] (10) NULL ,
	[RINLSR] [char] (1) NULL ,
	[RINKOFOR] [char] (13) NULL ,
	[RGA] [char] (10) NULL ,
	[RGALSR] [char] (1) NULL ,
	[RGAKOFOR] [char] (13) NULL ,
	[RES] [char] (10) NULL ,
	[RESLSR] [char] (1) NULL ,
	[RESKOFOR] [char] (13) NULL ,
	[PRO] [char] (10) NULL ,
	[PROLSR] [char] (1) NULL ,
	[PROKOFOR] [char] (13) NULL ,
	[ESC] [char] (10) NULL ,
	[ESCLSR] [char] (1) NULL ,
	[ESCKOFOR] [char] (13) NULL ,
	[NCE] [char] (10) NULL ,
	[NCELSR] [char] (1) NULL ,
	[NCEKOFOR] [char] (13) NULL ,
	[FEE] [char] (10) NULL ,
	[FEELSR] [char] (1) NULL ,
	[FEEKOFOR] [char] (13) NULL ,
	[FABGDIAUT] [bit] NOT NULL ,
	[KOTABLA] [char] (10) NULL ,
	[KOCARAC] [char] (10) NULL ,
	[VERTODOST] [bit] NOT NULL ,
	[DIASMAXDOC] [int] NULL ,
	[DIASMAXPAG] [int] NULL ,
	[COBDIADEVA] [bit] NOT NULL ,
	[AVIDIASVEN] [float] NULL ,
	[CUOTACOMER] [bit] NOT NULL ,
	[CUOTACANTI] [int] NULL ,
	[TIDOEXCLU] [char] (100) NULL ,
	[FISCONBARR] [char] (1) NULL ,
	[LIMICHVPTO] [bit] NOT NULL ,
	[MAXICHVPTO] [float] NULL ,
	[KOFUEN] [char] (3) NULL ,
	[COBRADOR] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CONFIGP] (
	[EMPRESA] [char] (2) NOT NULL ,
	[SERIE] [char] (20) NULL ,
	[RAZON] [char] (40) NULL ,
	[RUT] [char] (13) NULL ,
	[NCORTO] [char] (20) NULL ,
	[DIRECCION] [char] (40) NULL ,
	[CIUDAD] [char] (20) NULL ,
	[PAIS] [char] (10) NULL ,
	[TELEFONOS] [char] (23) NULL ,
	[GIRO] [char] (40) NULL ,
	[LLAVE1] [int] NULL ,
	[LLAVE2] [int] NULL ,
	[LLAVE3] [int] NULL ,
	[SUPERVISOR] [char] (5) NULL ,
	[IVAPAIS] [int] NULL ,
	[MRESTO] [char] (15) NULL ,
	[REGISTRO] [varchar] (2500) NULL ,
	[METODOPPP] [char] (1) NULL ,
	[DOCINTPPP] [bit] NOT NULL ,
	[NUMBASE] [float] NULL ,
	[NUMVERSION] [float] NULL ,
	[CADENA] [char] (500) NULL ,
	[TIPOMG] [float] NULL ,
	[LLAVE4] [int] NULL ,
	[LLAVE5] [int] NULL ,
	[LLAVE6] [int] NULL ,
	[LLAVE7] [int] NULL ,
	[SUCESTRICT] [bit] NOT NULL ,
	[CRITTASA] [char] (1) NULL ,
	[COMOVPROD] [char] (1) NULL ,
	[KOEN] [char] (13) NULL ,
	[ACTECO] [char] (10) NULL ,
	[NRORESOL] [char] (15) NULL ,
	[FECHRESOL] [datetime] NULL ,
	[GDVAFECRE] [bit] NOT NULL ,
	[CDOCENLIN] [bit] NOT NULL ,
	[VERSION] [int] NULL ,
	[EXCLUGRI] [bit] NOT NULL ,
	[FIRMAELEC] [char] (13) NULL ,
	[GRPAFEPPP] [bit] NOT NULL ,
	[REGNUEVO] [text] NULL ,
	[CTAMULTI] [bit] NOT NULL ,
	[CRIPRIPPP] [char] (1) NULL ,
	[VISAPRESU] [char] (1) NULL ,
	[CODPENTA] [char] (4) NULL ,
	[EXENTAIVA] [bit] NOT NULL ,
	[CONDESPRO] [char] (1) NULL ,
	[BUSCANBOD] [char] (1) NULL ,
	[CONVIGCRED] [char] (1) NULL ,
	[ENTICONPRO] [char] (1) NULL ,
	[TRANAFEPPP] [bit] NOT NULL ,
	[REGACTIV] [bit] NOT NULL ,
	[FECHINIPPP] [datetime] NULL ,
	[HORAHHMM] [bit] NOT NULL ,
	[NVVAFECRE] [bit] NOT NULL ,
	[GENLIDISRE] [bit] NOT NULL ,
	[SEPDESCREC] [bit] NOT NULL ,
	[DEUTASADIA] [char] (1) NULL ,
	[RAZONAMP] [char] (100) NULL ,
	[CAUCIEOTOB] [bit] NOT NULL ,
	[SITIOWEB] [varchar] (100) NULL ,
	[DIREFTP] [varchar] (100) NULL ,
	[USUAFTP] [varchar] (50) NULL ,
	[CLAVFTP] [varchar] (50) NULL ,
	[PUERTOFTP] [char] (10) NULL ,
	[CARPETAFTP] [varchar] (50) NULL ,
	[GIROAMP] [varchar] (200) NULL ,
	[SUCUAMP] [varchar] (200) NULL ,
	[VISARESER] [char] (1) NULL ,
	[ODDREQVB] [bit] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[CPARAMIE] (
	[NOMBRE] [varchar] (50) NOT NULL ,
	[DESCRIPCIO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CPARAMIN] (
	[IDCPARAMIN] [int] IDENTITY (1, 1) NOT NULL ,
	[CODIGO] [char] (8) NULL ,
	[DESCRIPCIO] [varchar] (40) NULL ,
	[CUENTA] [varchar] (1000) NULL ,
	[TIPO] [char] (1) NULL ,
	[NIVEL] [char] (10) NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[TOTAL] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CPRESUP] (
	[EMPRESA] [char] (2) NOT NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[KOPRESU] [char] (10) NOT NULL ,
	[APRESU] [char] (10) NOT NULL ,
	[BPRESU] [char] (10) NOT NULL ,
	[CPRESU] [char] (10) NOT NULL ,
	[CODCC] [char] (8) NULL ,
	[NPRESU] [int] NULL ,
	[TPRESU] [char] (1) NULL ,
	[NDPRESU] [char] (1) NULL ,
	[PTOTAL] [float] NULL ,
	[RTOTAL] [float] NULL ,
	[P01ENE] [float] NULL ,
	[P02FEB] [float] NULL ,
	[P03MAR] [float] NULL ,
	[P04ABR] [float] NULL ,
	[P05MAY] [float] NULL ,
	[P06JUN] [float] NULL ,
	[P07JUL] [float] NULL ,
	[P08AGO] [float] NULL ,
	[P09SEP] [float] NULL ,
	[P10OCT] [float] NULL ,
	[P11NOV] [float] NULL ,
	[P12DIC] [float] NULL ,
	[R01ENE] [float] NULL ,
	[R02FEB] [float] NULL ,
	[R03MAR] [float] NULL ,
	[R04ABR] [float] NULL ,
	[R05MAY] [float] NULL ,
	[R06JUN] [float] NULL ,
	[R07JUL] [float] NULL ,
	[R08AGO] [float] NULL ,
	[R09SEP] [float] NULL ,
	[R10OCT] [float] NULL ,
	[R11NOV] [float] NULL ,
	[R12DIC] [float] NULL ,
	[NOAPRESU] [varchar] (25) NULL ,
	[NOBPRESU] [varchar] (25) NULL ,
	[NOCPRESU] [varchar] (25) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CPRORRO] (
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDP] [char] (3) NULL ,
	[NUDP] [char] (10) NULL ,
	[ENDP] [char] (13) NULL ,
	[CUDP] [char] (16) NULL ,
	[NUCUDP] [char] (8) NULL ,
	[FEEMDP] [datetime] NULL ,
	[FEVEDP] [datetime] NULL ,
	[FEPGADP] [datetime] NULL ,
	[NUMECOM] [char] (10) NULL ,
	[NREG] [char] (5) NULL ,
	[SUBNREG] [char] (5) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CSUBAUXI] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[NOSUBAUXI] [varchar] (25) NULL ,
	[FORMULARIO] [char] (3) NULL ,
	[SUBAUXIM] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CTABAPER] (
	[EMPRESA] [char] (2) NOT NULL ,
	[FECHAREG] [datetime] NULL ,
	[KOFU] [char] (3) NULL ,
	[ABRIOMES] [bit] NOT NULL ,
	[FECHAMES] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CTABIPC] (
	[FECHAIPC] [datetime] NOT NULL ,
	[VALORIPC] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CTABTIDI] (
	[KOTIDI] [char] (3) NULL ,
	[NOKOTIDI] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[DETADPRE] (
	[IDDETADPRE] [int] IDENTITY (1, 1) NOT NULL ,
	[IDTABITPRE] [int] NOT NULL ,
	[ANOMES] [char] (6) NOT NULL ,
	[VALPRESU] [float] NULL ,
	[VALREAL] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[ELIDDO] (
	[IDMAEDDO] [int] NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (10) NULL ,
	[ENDOFI] [char] (13) NULL ,
	[LILG] [char] (2) NULL ,
	[NULIDO] [char] (5) NOT NULL ,
	[SULIDO] [char] (3) NULL ,
	[LUVTLIDO] [char] (8) NULL ,
	[BOSULIDO] [char] (3) NULL ,
	[KOFULIDO] [char] (3) NULL ,
	[NULILG] [char] (5) NULL ,
	[PRCT] [bit] NOT NULL ,
	[TICT] [char] (1) NULL ,
	[TIPR] [char] (3) NULL ,
	[NUSEPR] [char] (25) NULL ,
	[KOPRCT] [char] (13) NULL ,
	[UDTRPR] [float] NULL ,
	[RLUDPR] [float] NULL ,
	[CAPRCO1] [float] NULL ,
	[CAPRAD1] [float] NULL ,
	[CAPREX1] [float] NULL ,
	[CAPRNC1] [float] NULL ,
	[UD01PR] [char] (2) NULL ,
	[CAPRCO2] [float] NULL ,
	[CAPRAD2] [float] NULL ,
	[CAPREX2] [float] NULL ,
	[CAPRNC2] [float] NULL ,
	[UD02PR] [char] (2) NULL ,
	[KOLTPR] [char] (8) NULL ,
	[MOPPPR] [char] (3) NULL ,
	[TIMOPPPR] [char] (1) NULL ,
	[TAMOPPPR] [float] NULL ,
	[PPPRNELT] [float] NULL ,
	[PPPRNE] [float] NULL ,
	[PPPRBRLT] [float] NULL ,
	[PPPRBR] [float] NULL ,
	[NUDTLI] [float] NULL ,
	[PODTGLLI] [float] NULL ,
	[VADTNELI] [float] NULL ,
	[VADTBRLI] [float] NULL ,
	[POIVLI] [float] NULL ,
	[VAIVLI] [float] NULL ,
	[NUIMLI] [float] NULL ,
	[POIMGLLI] [float] NULL ,
	[VAIMLI] [float] NULL ,
	[VANELI] [float] NULL ,
	[VABRLI] [float] NULL ,
	[TIGELI] [char] (1) NULL ,
	[EMPREPA] [char] (2) NULL ,
	[TIDOPA] [char] (3) NULL ,
	[NUDOPA] [char] (10) NULL ,
	[ENDOPA] [char] (13) NULL ,
	[NULIDOPA] [char] (5) NULL ,
	[LLEVADESP] [float] NULL ,
	[FEEMLI] [datetime] NULL ,
	[FEERLI] [datetime] NULL ,
	[PPPRPM] [float] NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[ESLIDO] [char] (1) NULL ,
	[PPPRNERE1] [float] NULL ,
	[PPPRNERE2] [float] NULL ,
	[ESFALI] [char] (1) NULL ,
	[CAFACO] [float] NULL ,
	[CAFAAD] [float] NULL ,
	[CAFAEX] [float] NULL ,
	[CMLIDO] [float] NULL ,
	[NULOTE] [char] (15) NULL ,
	[FVENLOTE] [datetime] NULL ,
	[ARPROD] [char] (5) NULL ,
	[NULIPROD] [char] (5) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[FCRELOTE] [datetime] NULL ,
	[SUBLOTE] [char] (15) NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[ALTERNAT] [char] (21) NULL ,
	[PRENDIDO] [bit] NOT NULL ,
	[OBSERVA] [varchar] (200) NULL ,
	[KOFUAULIDO] [char] (3) NULL ,
	[KOOPLIDO] [char] (8) NULL ,
	[MGLTPR] [float] NULL ,
	[PPOPPR] [float] NULL ,
	[TIPOMG] [float] NULL ,
	[ESPRODLI] [char] (1) NULL ,
	[CAPRODCO] [float] NULL ,
	[CAPRODAD] [float] NULL ,
	[CAPRODEX] [float] NULL ,
	[CAPRODRE] [float] NULL ,
	[TASADORIG] [float] NULL ,
	[CUOGASDIF] [int] NULL ,
	[SEMILLA] [numeric](18, 0) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[POTENCIA] [float] NULL ,
	[HUMEDAD] [float] NULL ,
	[IDTABITPRE] [float] NULL ,
	[IDODDGDV] [int] NULL ,
	[LINCONDESP] [bit] NOT NULL ,
	[PODEIVLI] [float] NULL ,
	[VADEIVLI] [float] NULL ,
	[PRIIDETIQ] [int] NULL ,
	[KOLORESCA] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[ELIEDO] (
	[IDMAEEDO] [int] NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (10) NULL ,
	[ENDOFI] [char] (13) NULL ,
	[TIGEDO] [char] (1) NULL ,
	[SUDO] [char] (3) NULL ,
	[LUVTDO] [char] (8) NULL ,
	[FEEMDO] [datetime] NULL ,
	[KOFUDO] [char] (3) NULL ,
	[ESDO] [char] (1) NULL ,
	[ESPGDO] [char] (1) NULL ,
	[CAPRCO] [float] NULL ,
	[CAPRAD] [float] NULL ,
	[CAPREX] [float] NULL ,
	[CAPRNC] [float] NULL ,
	[MEARDO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TIMODO] [char] (1) NULL ,
	[TAMODO] [float] NULL ,
	[NUCTAP] [float] NULL ,
	[VACTDTNEDO] [float] NULL ,
	[VACTDTBRDO] [float] NULL ,
	[NUIVDO] [float] NULL ,
	[POIVDO] [float] NULL ,
	[VAIVDO] [float] NULL ,
	[NUIMDO] [float] NULL ,
	[VAIMDO] [float] NULL ,
	[VANEDO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[POPIDO] [float] NULL ,
	[VAPIDO] [float] NULL ,
	[FE01VEDO] [datetime] NULL ,
	[FEULVEDO] [datetime] NULL ,
	[NUVEDO] [float] NULL ,
	[VAABDO] [float] NULL ,
	[MARCA] [char] (1) NULL ,
	[FEER] [datetime] NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[KOTU] [char] (1) NULL ,
	[LIBRO] [char] (14) NULL ,
	[LCLV] [datetime] NULL ,
	[ESFADO] [char] (1) NULL ,
	[KOTRPCVH] [char] (17) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[NUDONODEFI] [bit] NOT NULL ,
	[TRANSMASI] [char] (13) NULL ,
	[POIVARET] [float] NULL ,
	[VAIVARET] [float] NULL ,
	[RESUMEN] [char] (3) NULL ,
	[LAHORA] [datetime] NULL ,
	[KOFUAUDO] [char] (3) NULL ,
	[KOOPDO] [char] (8) NULL ,
	[ESPRODDO] [char] (1) NULL ,
	[DESPACHO] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[RUTCONTACT] [char] (13) NULL ,
	[SUBTIDO] [char] (3) NULL ,
	[TIDOELEC] [bit] NOT NULL ,
	[ESDOIMP] [char] (1) NULL ,
	[CUOGASDIF] [int] NULL ,
	[BODESTI] [char] (3) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[FECHATRIB] [datetime] NULL ,
	[NUMOPERVEN] [int] NULL ,
	[BLOQUEAPAG] [char] (1) NULL ,
	[VALORRET] [float] NULL ,
	[FLIQUIFCV] [datetime] NULL ,
	[VADEIVDO] [float] NULL ,
	[KOCANAL] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[EMAEACT] (
	[IDMAEACT] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEMEN] [int] NULL ,
	[IDTABFU] [int] NULL ,
	[KOACT] [char] (25) NULL ,
	[FECHACT] [datetime] NULL ,
	[HORASACT] [float] NULL ,
	[ARCHIRSA] [char] (8) NULL ,
	[IDRSA] [int] NULL ,
	[ASUNTO] [varchar] (50) NULL ,
	[TEXTO] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[EMAEDEST] (
	[IDMAEDEST] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEMEN] [int] NOT NULL ,
	[RECEPTOR] [int] NOT NULL ,
	[LEIDO] [char] (1) NOT NULL ,
	[RECHAZO] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[EMAELINK] (
	[IDMAELINK] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEMEN] [int] NOT NULL ,
	[ARLINK] [char] (8) NOT NULL ,
	[IDLINK] [int] NOT NULL ,
	[ENTIDAD] [varchar] (50) NULL ,
	[DOCUMENTO] [char] (25) NULL ,
	[LINEA] [char] (25) NULL ,
	[IDENTIDAD] [int] NULL ,
	[ARCHIDOCU] [char] (8) NULL ,
	[IDDOCU] [int] NULL ,
	[ARCHILIN] [char] (8) NULL ,
	[IDLIN] [int] NULL ,
	[DOCUEXTE] [varchar] (100) NULL ,
	[TEXTO] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[EMAEMEN] (
	[IDMAEMEN] [int] IDENTITY (1, 1) NOT NULL ,
	[EMISOR] [int] NOT NULL ,
	[FECHEMI] [datetime] NOT NULL ,
	[HORAGRAB] [int] NOT NULL ,
	[FECHAPARI] [datetime] NOT NULL ,
	[PLAZO] [datetime] NULL ,
	[ESPERARES] [char] (10) NULL ,
	[IDRPM] [int] NULL ,
	[KOACT] [char] (25) NULL ,
	[ASUNTO] [varchar] (50) NULL ,
	[TEXTO] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[ETABACT] (
	[KOACT] [char] (25) NOT NULL ,
	[DESCRIPCIO] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FCORREO] (
	[IDCORREO] [int] IDENTITY (1, 1) NOT NULL ,
	[ESTADO] [int] NULL ,
	[FECHAGEN] [datetime] NULL ,
	[HORAGEN] [int] NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[EMAIL] [varchar] (100) NULL ,
	[FECHAMAIL] [datetime] NULL ,
	[HORAMAIL] [int] NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FFOLIOS] (
	[EMPRESA] [char] (2) NULL ,
	[RE] [char] (10) NULL ,
	[RS] [varchar] (50) NULL ,
	[TD] [char] (10) NULL ,
	[RNG_D] [char] (10) NULL ,
	[RNG_H] [char] (10) NULL ,
	[FA] [char] (10) NULL ,
	[RSAPK_M] [varchar] (500) NULL ,
	[RSAPK_E] [varchar] (50) NULL ,
	[IDK] [varchar] (50) NULL ,
	[FRMA] [varchar] (500) NULL ,
	[RSASK] [varchar] (500) NULL ,
	[RSAPUBK] [varchar] (500) NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAEDTE] (
	[IDDTE] [int] IDENTITY (1, 1) NOT NULL ,
	[IDDT] [int] NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[XML] [text] NULL ,
	[PDF417] [text] NULL ,
	[PDF417B] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAELIB] (
	[IDLIBRO] [int] IDENTITY (1, 1) NOT NULL ,
	[LIBRO] [char] (15) NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAEPETD] (
	[IDPETD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPET] [int] NOT NULL ,
	[IDDTE] [int] NOT NULL ,
	[IDLIBRO] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAEPETE] (
	[IDPET] [int] IDENTITY (1, 1) NOT NULL ,
	[KOPET] [int] NOT NULL ,
	[RUTEMI] [char] (13) NULL ,
	[RUTENVI] [char] (13) NULL ,
	[RUTRECEP] [char] (13) NULL ,
	[FRESOL] [datetime] NULL ,
	[NRESOL] [char] (20) NULL ,
	[EMPRESA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAERESD] (
	[IDRESD] [decimal](18, 0) IDENTITY (1, 1) NOT NULL ,
	[IDRESE] [decimal](18, 0) NULL ,
	[STATUS] [varchar] (50) NULL ,
	[DESCR] [varchar] (250) NULL ,
	[FOLIO] [varchar] (10) NULL ,
	[TIPO] [decimal](18, 0) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAERESE] (
	[IDRESE] [int] IDENTITY (1, 1) NOT NULL ,
	[INFORMADO] [char] (1) NOT NULL ,
	[FECHAINF] [datetime] NULL ,
	[HORAINF] [int] NULL ,
	[IDSOBE] [int] NULL ,
	[STATUS] [int] NULL ,
	[IDENVIO] [decimal](18, 0) NULL ,
	[FECHARESE] [datetime] NULL ,
	[DESCR] [varchar] (100) NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAESOBD] (
	[IDSOBD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDSOBE] [int] NULL ,
	[IDDTE] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAESOBE] (
	[IDSOBE] [numeric](18, 0) IDENTITY (1, 1) NOT NULL ,
	[IDPET] [int] NOT NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAESRD] (
	[IDSRD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDSRE] [int] NOT NULL ,
	[ESACEP] [int] NULL ,
	[DESACEP] [varchar] (100) NULL ,
	[FECHACEP] [datetime] NULL ,
	[HORAACEP] [int] NULL ,
	[ESCOME] [int] NULL ,
	[DESCOME] [varchar] (250) NULL ,
	[FECHCOME] [datetime] NULL ,
	[HORACOME] [int] NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FMAESRE] (
	[IDSRE] [int] IDENTITY (1, 1) NOT NULL ,
	[ESACEP] [int] NOT NULL ,
	[DESACEP] [varchar] (100) NULL ,
	[ARCHIVO] [varchar] (100) NULL ,
	[FECHARE] [datetime] NULL ,
	[HORAGRAB] [int] NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[FPASODT] (
	[IDDT] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[XML] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIDAUT] (
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KOFUOCCVAL] [char] (3) NULL ,
	[FIRMAVAL] [char] (3) NULL ,
	[KOFUOCCAU1] [char] (3) NULL ,
	[FIRMAAU1] [char] (3) NULL ,
	[KOFUOCCAU2] [char] (3) NULL ,
	[FIRMAAU2] [char] (3) NULL ,
	[KOFUOCCAU3] [char] (3) NULL ,
	[FIRMAAU3] [char] (3) NULL ,
	[KOFUPAGO] [char] (3) NULL ,
	[FIRMAPAGO] [char] (3) NULL ,
	[RESERVADO] [bit] NOT NULL ,
	[KOFURESE] [char] (3) NULL ,
	[FECHARESE] [datetime] NULL ,
	[COMENRESE] [char] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIDDO] (
	[IDMAEDDO] [int] NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[ENDOFI] [varchar] (13) NULL ,
	[LILG] [char] (2) NULL ,
	[NULIDO] [char] (5) NOT NULL ,
	[SULIDO] [char] (3) NULL ,
	[LUVTLIDO] [char] (8) NULL ,
	[BOSULIDO] [char] (3) NULL ,
	[KOFULIDO] [char] (3) NULL ,
	[NULILG] [char] (5) NULL ,
	[PRCT] [bit] NOT NULL ,
	[TICT] [char] (1) NULL ,
	[TIPR] [char] (3) NULL ,
	[NUSEPR] [char] (25) NULL ,
	[KOPRCT] [char] (13) NULL ,
	[UDTRPR] [float] NULL ,
	[RLUDPR] [float] NULL ,
	[CAPRCO1] [float] NULL ,
	[CAPRAD1] [float] NULL ,
	[CAPREX1] [float] NULL ,
	[CAPRNC1] [float] NULL ,
	[UD01PR] [char] (2) NULL ,
	[CAPRCO2] [float] NULL ,
	[CAPRAD2] [float] NULL ,
	[CAPREX2] [float] NULL ,
	[CAPRNC2] [float] NULL ,
	[UD02PR] [char] (2) NULL ,
	[KOLTPR] [char] (8) NULL ,
	[MOPPPR] [char] (3) NULL ,
	[TIMOPPPR] [char] (1) NULL ,
	[TAMOPPPR] [float] NULL ,
	[PPPRNELT] [float] NULL ,
	[PPPRNE] [float] NULL ,
	[PPPRBRLT] [float] NULL ,
	[PPPRBR] [float] NULL ,
	[NUDTLI] [float] NULL ,
	[PODTGLLI] [float] NULL ,
	[VADTNELI] [float] NULL ,
	[VADTBRLI] [float] NULL ,
	[POIVLI] [float] NULL ,
	[VAIVLI] [float] NULL ,
	[NUIMLI] [float] NULL ,
	[POIMGLLI] [float] NULL ,
	[VAIMLI] [float] NULL ,
	[VANELI] [float] NULL ,
	[VABRLI] [float] NULL ,
	[TIGELI] [char] (1) NULL ,
	[EMPREPA] [char] (2) NOT NULL ,
	[TIDOPA] [char] (3) NULL ,
	[NUDOPA] [char] (10) NULL ,
	[ENDOPA] [char] (13) NULL ,
	[NULIDOPA] [char] (5) NULL ,
	[LLEVADESP] [float] NULL ,
	[FEEMLI] [datetime] NULL ,
	[FEERLI] [datetime] NULL ,
	[PPPRPM] [float] NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[ESLIDO] [char] (1) NULL ,
	[PPPRNERE1] [float] NULL ,
	[PPPRNERE2] [float] NULL ,
	[ESFALI] [char] (1) NULL ,
	[CAFACO] [float] NULL ,
	[CAFAAD] [float] NULL ,
	[CAFAEX] [float] NULL ,
	[CMLIDO] [float] NULL ,
	[NULOTE] [char] (15) NULL ,
	[FVENLOTE] [datetime] NULL ,
	[ARPROD] [char] (5) NULL ,
	[NULIPROD] [char] (5) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[FCRELOTE] [datetime] NULL ,
	[SUBLOTE] [char] (15) NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[ALTERNAT] [char] (21) NULL ,
	[PRENDIDO] [bit] NOT NULL ,
	[OBSERVA] [varchar] (200) NULL ,
	[KOFUAULIDO] [char] (3) NULL ,
	[KOOPLIDO] [char] (8) NULL ,
	[MGLTPR] [float] NULL ,
	[PPOPPR] [float] NULL ,
	[TIPOMG] [float] NULL ,
	[ESPRODLI] [char] (1) NULL ,
	[CAPRODCO] [float] NULL ,
	[CAPRODAD] [float] NULL ,
	[CAPRODEX] [float] NULL ,
	[CAPRODRE] [float] NULL ,
	[TASADORIG] [float] NULL ,
	[CUOGASDIF] [int] NULL ,
	[SEMILLA] [numeric](18, 0) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[POTENCIA] [float] NULL ,
	[HUMEDAD] [float] NULL ,
	[IDTABITPRE] [float] NULL ,
	[IDODDGDV] [int] NULL ,
	[LINCONDESP] [bit] NOT NULL ,
	[PODEIVLI] [float] NULL ,
	[VADEIVLI] [float] NULL ,
	[PRIIDETIQ] [int] NULL ,
	[KOLORESCA] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIDTLI] (
	[IDMAEDTLI] [int] NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KODT] [char] (10) NULL ,
	[PODT] [float] NULL ,
	[VADT] [float] NULL ,
	[LILG] [char] (2) NULL ,
	[OPERA] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIEDO] (
	[IDMAEEDO] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [varchar] (3) NOT NULL ,
	[NUDO] [varchar] (10) NOT NULL ,
	[ENDO] [varchar] (13) NOT NULL ,
	[SUENDO] [varchar] (10) NULL ,
	[ENDOFI] [varchar] (13) NULL ,
	[TIGEDO] [varchar] (1) NULL ,
	[SUDO] [varchar] (3) NULL ,
	[LUVTDO] [varchar] (8) NULL ,
	[FEEMDO] [datetime] NULL ,
	[KOFUDO] [varchar] (3) NULL ,
	[ESDO] [varchar] (1) NULL ,
	[ESPGDO] [varchar] (1) NULL ,
	[CAPRCO] [float] NULL ,
	[CAPRAD] [float] NULL ,
	[CAPREX] [float] NULL ,
	[CAPRNC] [float] NULL ,
	[MEARDO] [varchar] (1) NULL ,
	[MODO] [varchar] (3) NULL ,
	[TIMODO] [varchar] (1) NULL ,
	[TAMODO] [float] NULL ,
	[NUCTAP] [float] NULL ,
	[VACTDTNEDO] [float] NULL ,
	[VACTDTBRDO] [float] NULL ,
	[NUIVDO] [float] NULL ,
	[POIVDO] [float] NULL ,
	[VAIVDO] [float] NULL ,
	[NUIMDO] [float] NULL ,
	[VAIMDO] [float] NULL ,
	[VANEDO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[POPIDO] [float] NULL ,
	[VAPIDO] [float] NULL ,
	[FE01VEDO] [datetime] NULL ,
	[FEULVEDO] [datetime] NULL ,
	[NUVEDO] [float] NULL ,
	[VAABDO] [float] NULL ,
	[MARCA] [char] (1) NULL ,
	[FEER] [datetime] NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[KOTU] [char] (1) NULL ,
	[LIBRO] [char] (14) NULL ,
	[LCLV] [datetime] NULL ,
	[ESFADO] [char] (1) NULL ,
	[KOTRPCVH] [char] (17) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[NUDONODEFI] [bit] NOT NULL ,
	[TRANSMASI] [char] (13) NULL ,
	[POIVARET] [float] NULL ,
	[VAIVARET] [float] NULL ,
	[RESUMEN] [char] (3) NULL ,
	[LAHORA] [datetime] NULL ,
	[KOFUAUDO] [char] (3) NULL ,
	[KOOPDO] [char] (8) NULL ,
	[ESPRODDO] [char] (1) NULL ,
	[DESPACHO] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[RUTCONTACT] [char] (13) NULL ,
	[SUBTIDO] [char] (3) NULL ,
	[TIDOELEC] [bit] NOT NULL ,
	[ESDOIMP] [char] (1) NULL ,
	[CUOGASDIF] [int] NULL ,
	[BODESTI] [char] (3) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[FECHATRIB] [datetime] NULL ,
	[NUMOPERVEN] [int] NULL ,
	[BLOQUEAPAG] [char] (1) NULL ,
	[VALORRET] [float] NULL ,
	[FLIQUIFCV] [datetime] NULL ,
	[VADEIVDO] [float] NULL ,
	[KOCANAL] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIEDOB] (
	[IDMAEEDO] [int] NOT NULL ,
	[OBDO] [varchar] (250) NULL ,
	[CPDO] [varchar] (40) NULL ,
	[OCDO] [varchar] (40) NULL ,
	[DIENDESP] [varchar] (50) NULL ,
	[TEXTO1] [varchar] (80) NULL ,
	[TEXTO2] [varchar] (80) NULL ,
	[TEXTO3] [varchar] (80) NULL ,
	[TEXTO4] [varchar] (80) NULL ,
	[TEXTO5] [varchar] (80) NULL ,
	[TEXTO6] [varchar] (80) NULL ,
	[TEXTO7] [varchar] (80) NULL ,
	[TEXTO8] [varchar] (80) NULL ,
	[TEXTO9] [varchar] (80) NULL ,
	[TEXTO10] [varchar] (80) NULL ,
	[TEXTO11] [varchar] (80) NULL ,
	[TEXTO12] [varchar] (80) NULL ,
	[TEXTO13] [varchar] (80) NULL ,
	[TEXTO14] [varchar] (80) NULL ,
	[TEXTO15] [varchar] (80) NULL ,
	[CARRIER] [char] (13) NULL ,
	[BOOKING] [varchar] (20) NULL ,
	[LADING] [varchar] (20) NULL ,
	[AGENTE] [char] (13) NULL ,
	[MEDIOPAGO] [varchar] (20) NULL ,
	[TIPOTRANS] [varchar] (20) NULL ,
	[KOPAE] [char] (4) NULL ,
	[KOCIE] [char] (4) NULL ,
	[KOCME] [char] (4) NULL ,
	[FECHAE] [datetime] NULL ,
	[HORAE] [char] (8) NULL ,
	[KOPAD] [char] (4) NULL ,
	[KOCID] [char] (4) NULL ,
	[KOCMD] [char] (4) NULL ,
	[FECHAD] [datetime] NULL ,
	[HORAD] [char] (8) NULL ,
	[OBDOEXPO] [varchar] (500) NULL ,
	[MOTIVO] [char] (10) NULL ,
	[TEXTO16] [varchar] (80) NULL ,
	[TEXTO17] [varchar] (80) NULL ,
	[TEXTO18] [varchar] (80) NULL ,
	[TEXTO19] [varchar] (80) NULL ,
	[TEXTO20] [varchar] (80) NULL ,
	[TEXTO21] [varchar] (80) NULL ,
	[TEXTO22] [varchar] (80) NULL ,
	[TEXTO23] [varchar] (80) NULL ,
	[TEXTO24] [varchar] (80) NULL ,
	[TEXTO25] [varchar] (80) NULL ,
	[TEXTO26] [varchar] (80) NULL ,
	[TEXTO27] [varchar] (80) NULL ,
	[TEXTO28] [varchar] (80) NULL ,
	[TEXTO29] [varchar] (80) NULL ,
	[TEXTO30] [varchar] (80) NULL ,
	[TEXTO31] [varchar] (80) NULL ,
	[TEXTO32] [varchar] (80) NULL ,
	[TEXTO33] [varchar] (80) NULL ,
	[TEXTO34] [varchar] (80) NULL ,
	[TEXTO35] [varchar] (80) NULL ,
	[PLACAPAT] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KASIIMLI] (
	[IDMAEIMLI] [int] NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KOIMLI] [char] (13) NULL ,
	[POIMLI] [float] NULL ,
	[VAIMLI] [float] NULL ,
	[LILG] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[KEVENTO] (
	[IDEVENTO] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRVE] [char] (8) NULL ,
	[IDRVE] [int] NULL ,
	[KOFU] [char] (3) NULL ,
	[FEVENTO] [datetime] NULL ,
	[KOTABLA] [char] (10) NULL ,
	[KOCARAC] [char] (10) NULL ,
	[NOKOCARAC] [varchar] (50) NULL ,
	[ARCHIRSE] [char] (8) NULL ,
	[IDRSE] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[FECHAREF] [datetime] NULL ,
	[LINK] [varchar] (200) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[LORESCAD] (
	[KOLORESCA] [char] (15) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[RESERVA] [float] NOT NULL ,
	[PORNVI] [float] NOT NULL ,
	[PORNVV] [float] NOT NULL ,
	[PORFCV] [float] NOT NULL ,
	[PORGTI] [float] NOT NULL ,
	[PORGDV] [float] NOT NULL ,
	[DEVGTI] [float] NOT NULL ,
	[DEVGRI] [float] NOT NULL ,
	[SALDO] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[LORESCAE] (
	[KOLORESCA] [char] (15) NOT NULL ,
	[FILORESCA] [datetime] NULL ,
	[FTLORESCA] [datetime] NULL ,
	[KOCANAL] [char] (15) NOT NULL ,
	[NOLORESCA] [char] (50) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[ESTADO] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDCR] (
	[IDMAEDCR] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[RECARCALCU] [char] (13) NULL ,
	[IDDDODCR] [int] NULL ,
	[VALDCR] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDDO] (
	[IDMAEDDO] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (10) NULL ,
	[ENDOFI] [char] (13) NULL ,
	[LILG] [char] (2) NULL ,
	[NULIDO] [char] (5) NOT NULL ,
	[SULIDO] [char] (3) NULL ,
	[LUVTLIDO] [char] (8) NULL ,
	[BOSULIDO] [char] (3) NULL ,
	[KOFULIDO] [char] (3) NULL ,
	[NULILG] [char] (5) NULL ,
	[PRCT] [bit] NOT NULL ,
	[TICT] [char] (1) NULL ,
	[TIPR] [char] (3) NULL ,
	[NUSEPR] [char] (25) NULL ,
	[KOPRCT] [char] (13) NULL ,
	[UDTRPR] [float] NULL ,
	[RLUDPR] [float] NULL ,
	[CAPRCO1] [float] NULL ,
	[CAPRAD1] [float] NULL ,
	[CAPREX1] [float] NULL ,
	[CAPRNC1] [float] NULL ,
	[UD01PR] [char] (2) NULL ,
	[CAPRCO2] [float] NULL ,
	[CAPRAD2] [float] NULL ,
	[CAPREX2] [float] NULL ,
	[CAPRNC2] [float] NULL ,
	[UD02PR] [char] (2) NULL ,
	[KOLTPR] [char] (8) NULL ,
	[MOPPPR] [char] (3) NULL ,
	[TIMOPPPR] [char] (1) NULL ,
	[TAMOPPPR] [float] NULL ,
	[PPPRNELT] [float] NULL ,
	[PPPRNE] [float] NULL ,
	[PPPRBRLT] [float] NULL ,
	[PPPRBR] [float] NULL ,
	[NUDTLI] [float] NULL ,
	[PODTGLLI] [float] NULL ,
	[VADTNELI] [float] NULL ,
	[VADTBRLI] [float] NULL ,
	[POIVLI] [float] NULL ,
	[VAIVLI] [float] NULL ,
	[NUIMLI] [float] NULL ,
	[POIMGLLI] [float] NULL ,
	[VAIMLI] [float] NULL ,
	[VANELI] [float] NULL ,
	[VABRLI] [float] NULL ,
	[TIGELI] [char] (1) NULL ,
	[EMPREPA] [char] (2) NULL ,
	[TIDOPA] [char] (3) NULL ,
	[NUDOPA] [char] (10) NULL ,
	[ENDOPA] [char] (13) NULL ,
	[NULIDOPA] [char] (5) NULL ,
	[LLEVADESP] [float] NULL ,
	[FEEMLI] [datetime] NULL ,
	[FEERLI] [datetime] NULL ,
	[PPPRPM] [float] NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[ESLIDO] [char] (1) NULL ,
	[PPPRNERE1] [float] NULL ,
	[PPPRNERE2] [float] NULL ,
	[ESFALI] [char] (1) NULL ,
	[CAFACO] [float] NULL ,
	[CAFAAD] [float] NULL ,
	[CAFAEX] [float] NULL ,
	[CMLIDO] [float] NULL ,
	[NULOTE] [char] (15) NULL ,
	[FVENLOTE] [datetime] NULL ,
	[ARPROD] [char] (5) NULL ,
	[NULIPROD] [char] (5) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[FCRELOTE] [datetime] NULL ,
	[SUBLOTE] [char] (15) NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[ALTERNAT] [char] (21) NULL ,
	[PRENDIDO] [bit] NOT NULL ,
	[OBSERVA] [varchar] (200) NULL ,
	[KOFUAULIDO] [char] (3) NULL ,
	[KOOPLIDO] [char] (8) NULL ,
	[MGLTPR] [float] NULL ,
	[PPOPPR] [float] NULL ,
	[TIPOMG] [float] NULL ,
	[ESPRODLI] [char] (1) NULL ,
	[CAPRODCO] [float] NULL ,
	[CAPRODAD] [float] NULL ,
	[CAPRODEX] [float] NULL ,
	[CAPRODRE] [float] NULL ,
	[TASADORIG] [float] NULL ,
	[CUOGASDIF] [int] NULL ,
	[SEMILLA] [numeric](18, 0) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[POTENCIA] [float] NULL ,
	[HUMEDAD] [float] NULL ,
	[IDTABITPRE] [float] NULL ,
	[IDODDGDV] [int] NULL ,
	[LINCONDESP] [bit] NOT NULL ,
	[PODEIVLI] [float] NULL ,
	[VADEIVLI] [float] NULL ,
	[PRIIDETIQ] [int] NULL ,
	[KOLORESCA] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDDOAU] (
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KOFUOCCVAL] [char] (3) NULL ,
	[FIRMAVAL] [char] (3) NULL ,
	[KOFUOCCAU1] [char] (3) NULL ,
	[FIRMAAU1] [char] (3) NULL ,
	[KOFUOCCAU2] [char] (3) NULL ,
	[FIRMAAU2] [char] (3) NULL ,
	[KOFUOCCAU3] [char] (3) NULL ,
	[FIRMAAU3] [char] (3) NULL ,
	[KOFUPAGO] [char] (3) NULL ,
	[FIRMAPAGO] [char] (3) NULL ,
	[RESERVADO] [bit] NOT NULL ,
	[KOFURESE] [char] (3) NULL ,
	[FECHARESE] [datetime] NULL ,
	[COMENRESE] [char] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDFT] (
	[TIDO] [char] (3) NOT NULL ,
	[AMDO] [char] (1) NOT NULL ,
	[NOEP] [varchar] (50) NULL ,
	[FFCE] [float] NOT NULL ,
	[CCCE] [float] NOT NULL ,
	[TILT] [char] (1) NULL ,
	[TIEP] [char] (1) NULL ,
	[LAEP] [float] NULL ,
	[TIPO] [char] (1) NULL ,
	[PIEP] [char] (1) NULL ,
	[KOEP] [varchar] (132) NULL ,
	[FTEP] [varchar] (132) NULL ,
	[EMDP] [char] (13) NOT NULL ,
	[KOFOR] [char] (13) NOT NULL ,
	[NEGRITA] [bit] NOT NULL ,
	[COLOR] [char] (10) NULL ,
	[SUBTIDO] [char] (3) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDPCD] (
	[IDMAEDPCD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEDPCE] [int] NOT NULL ,
	[VAASDP] [float] NULL ,
	[FEASDP] [datetime] NULL ,
	[TIDOPA] [char] (3) NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[TCASIG] [float] NULL ,
	[REFERENCIA] [float] NULL ,
	[KOFUASDP] [char] (3) NULL ,
	[SUASDP] [char] (3) NULL ,
	[CJASDP] [char] (3) NULL ,
	[HORAGRAB] [int] NULL ,
	[LAHORA] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDPCE] (
	[IDMAEDPCE] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDP] [char] (3) NOT NULL ,
	[NUDP] [char] (10) NOT NULL ,
	[ENDP] [char] (13) NOT NULL ,
	[EMDP] [char] (13) NULL ,
	[SUEMDP] [char] (3) NULL ,
	[CUDP] [char] (16) NULL ,
	[NUCUDP] [char] (8) NULL ,
	[FEEMDP] [datetime] NOT NULL ,
	[FEVEDP] [datetime] NULL ,
	[MODP] [char] (3) NULL ,
	[TIMODP] [char] (1) NULL ,
	[TAMODP] [float] NULL ,
	[VADP] [float] NULL ,
	[VAABDP] [float] NULL ,
	[VAASDP] [float] NULL ,
	[VAVUDP] [float] NULL ,
	[ESASDP] [char] (1) NULL ,
	[ESPGDP] [char] (1) NULL ,
	[SUREDP] [char] (3) NULL ,
	[CJREDP] [char] (2) NULL ,
	[KOFUDP] [char] (3) NULL ,
	[KOTNDP] [char] (13) NULL ,
	[SUTNDP] [char] (3) NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[KOTU] [char] (1) NULL ,
	[REFANTI] [varchar] (80) NULL ,
	[DOCUENANTI] [char] (13) NULL ,
	[IMDP] [char] (1) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[TUVOPROTES] [bit] NOT NULL ,
	[FECHAPROTE] [datetime] NULL ,
	[RESUMEN] [char] (3) NULL ,
	[KOENDOSO] [char] (13) NULL ,
	[NOENDOSO] [varchar] (50) NULL ,
	[NUVISA] [varchar] (10) NULL ,
	[KOVISADOR] [char] (13) NULL ,
	[ARCHIRSD] [char] (8) NULL ,
	[IDRSD] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[LAHORA] [datetime] NULL ,
	[CUOTAS] [int] NULL ,
	[REFERENCIA] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDRES] (
	[CODIGO] [char] (13) NOT NULL ,
	[NREG] [float] NOT NULL ,
	[ELEMENTO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NULL ,
	[UDAD] [char] (2) NULL ,
	[OPERACION] [char] (4) NULL ,
	[ECUCANT] [varchar] (242) NULL ,
	[COMODIN] [char] (13) NULL ,
	[TIPO] [char] (8) NULL ,
	[CALIDAD] [char] (1) NULL ,
	[TABPRE] [char] (8) NULL ,
	[PORCDESC] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEDTLI] (
	[IDMAEDTLI] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KODT] [char] (10) NULL ,
	[PODT] [float] NULL ,
	[VADT] [float] NULL ,
	[LILG] [char] (2) NULL ,
	[OPERA] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEEDO] (
	[IDMAEEDO] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (10) NULL ,
	[ENDOFI] [char] (13) NULL ,
	[TIGEDO] [char] (1) NULL ,
	[SUDO] [char] (3) NULL ,
	[LUVTDO] [char] (8) NULL ,
	[FEEMDO] [datetime] NULL ,
	[KOFUDO] [char] (3) NULL ,
	[ESDO] [char] (1) NULL ,
	[ESPGDO] [char] (1) NULL ,
	[CAPRCO] [float] NULL ,
	[CAPRAD] [float] NULL ,
	[CAPREX] [float] NULL ,
	[CAPRNC] [float] NULL ,
	[MEARDO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TIMODO] [char] (1) NULL ,
	[TAMODO] [float] NULL ,
	[NUCTAP] [float] NULL ,
	[VACTDTNEDO] [float] NULL ,
	[VACTDTBRDO] [float] NULL ,
	[NUIVDO] [float] NULL ,
	[POIVDO] [float] NULL ,
	[VAIVDO] [float] NULL ,
	[NUIMDO] [float] NULL ,
	[VAIMDO] [float] NULL ,
	[VANEDO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[POPIDO] [float] NULL ,
	[VAPIDO] [float] NULL ,
	[FE01VEDO] [datetime] NULL ,
	[FEULVEDO] [datetime] NULL ,
	[NUVEDO] [float] NULL ,
	[VAABDO] [float] NULL ,
	[MARCA] [char] (1) NULL ,
	[FEER] [datetime] NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[KOTU] [char] (1) NULL ,
	[LIBRO] [char] (14) NULL ,
	[LCLV] [datetime] NULL ,
	[ESFADO] [char] (1) NULL ,
	[KOTRPCVH] [char] (17) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[NUDONODEFI] [bit] NOT NULL ,
	[TRANSMASI] [char] (13) NULL ,
	[POIVARET] [float] NULL ,
	[VAIVARET] [float] NULL ,
	[RESUMEN] [char] (3) NULL ,
	[LAHORA] [datetime] NULL ,
	[KOFUAUDO] [char] (3) NULL ,
	[KOOPDO] [char] (8) NULL ,
	[ESPRODDO] [char] (1) NULL ,
	[DESPACHO] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[RUTCONTACT] [char] (13) NULL ,
	[SUBTIDO] [char] (3) NULL ,
	[TIDOELEC] [bit] NOT NULL ,
	[ESDOIMP] [char] (1) NULL ,
	[CUOGASDIF] [int] NULL ,
	[BODESTI] [char] (3) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[FECHATRIB] [datetime] NULL ,
	[NUMOPERVEN] [int] NULL ,
	[BLOQUEAPAG] [char] (1) NULL ,
	[VALORRET] [float] NULL ,
	[FLIQUIFCV] [datetime] NULL ,
	[VADEIVDO] [float] NULL ,
	[KOCANAL] [char] (15) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEEDOOB] (
	[IDMAEEDO] [int] NOT NULL ,
	[OBDO] [varchar] (250) NULL ,
	[CPDO] [varchar] (40) NULL ,
	[OCDO] [varchar] (40) NULL ,
	[DIENDESP] [varchar] (50) NULL ,
	[TEXTO1] [varchar] (80) NULL ,
	[TEXTO2] [varchar] (80) NULL ,
	[TEXTO3] [varchar] (80) NULL ,
	[TEXTO4] [varchar] (80) NULL ,
	[TEXTO5] [varchar] (80) NULL ,
	[TEXTO6] [varchar] (80) NULL ,
	[TEXTO7] [varchar] (80) NULL ,
	[TEXTO8] [varchar] (80) NULL ,
	[TEXTO9] [varchar] (80) NULL ,
	[TEXTO10] [varchar] (80) NULL ,
	[TEXTO11] [varchar] (80) NULL ,
	[TEXTO12] [varchar] (80) NULL ,
	[TEXTO13] [varchar] (80) NULL ,
	[TEXTO14] [varchar] (80) NULL ,
	[TEXTO15] [varchar] (80) NULL ,
	[CARRIER] [char] (13) NULL ,
	[BOOKING] [char] (20) NULL ,
	[LADING] [char] (20) NULL ,
	[AGENTE] [char] (13) NULL ,
	[MEDIOPAGO] [char] (20) NULL ,
	[TIPOTRANS] [char] (20) NULL ,
	[KOPAE] [char] (4) NULL ,
	[KOCIE] [char] (4) NULL ,
	[KOCME] [char] (4) NULL ,
	[FECHAE] [datetime] NULL ,
	[HORAE] [char] (8) NULL ,
	[KOPAD] [char] (4) NULL ,
	[KOCID] [char] (4) NULL ,
	[KOCMD] [char] (4) NULL ,
	[FECHAD] [datetime] NULL ,
	[HORAD] [char] (8) NULL ,
	[OBDOEXPO] [varchar] (500) NULL ,
	[MOTIVO] [char] (10) NULL ,
	[TEXTO16] [varchar] (80) NULL ,
	[TEXTO17] [varchar] (80) NULL ,
	[TEXTO18] [varchar] (80) NULL ,
	[TEXTO19] [varchar] (80) NULL ,
	[TEXTO20] [varchar] (80) NULL ,
	[TEXTO21] [varchar] (80) NULL ,
	[TEXTO22] [varchar] (80) NULL ,
	[TEXTO23] [varchar] (80) NULL ,
	[TEXTO24] [varchar] (80) NULL ,
	[TEXTO25] [varchar] (80) NULL ,
	[TEXTO26] [varchar] (80) NULL ,
	[TEXTO27] [varchar] (80) NULL ,
	[TEXTO28] [varchar] (80) NULL ,
	[TEXTO29] [varchar] (80) NULL ,
	[TEXTO30] [varchar] (80) NULL ,
	[TEXTO31] [varchar] (80) NULL ,
	[TEXTO32] [varchar] (80) NULL ,
	[TEXTO33] [varchar] (80) NULL ,
	[TEXTO34] [varchar] (80) NULL ,
	[TEXTO35] [varchar] (80) NULL ,
	[PLACAPAT] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEEFT] (
	[TIDO] [varchar] (3) NOT NULL ,
	[LADOCE] [float] NULL ,
	[ANDOCE] [float] NULL ,
	[NULIDO] [float] NULL ,
	[INILADLCE] [float] NULL ,
	[FINLADLCE] [float] NULL ,
	[INIANDLCE] [float] NULL ,
	[FINANDLCE] [float] NULL ,
	[FFPTRF] [float] NULL ,
	[CCPTRF] [float] NULL ,
	[CELIDL] [float] NULL ,
	[FTOB] [varchar] (1) NULL ,
	[TIPODET] [varchar] (2) NULL ,
	[LDEFDET] [varchar] (2) NULL ,
	[EMDP] [varchar] (13) NOT NULL ,
	[FONT_ENC] [varchar] (50) NULL ,
	[FONT_ENCSI] [float] NULL ,
	[FONT_DET] [varchar] (50) NULL ,
	[FONT_DETSI] [float] NULL ,
	[TIPO_DOS] [bit] NOT NULL ,
	[LICRELIN] [bit] NOT NULL ,
	[KOFOR] [char] (13) NOT NULL ,
	[NOKOFOR] [varchar] (30) NULL ,
	[SUBTIDO] [char] (3) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEELIMI] (
	[ARCHIDOCEL] [char] (8) NULL ,
	[IDDOCEL] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[FEEMDO] [datetime] NULL ,
	[FEELIDO] [datetime] NULL ,
	[KOFUDO] [char] (3) NULL ,
	[VANEDO] [float] NULL ,
	[VABRDO] [float] NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUMECOM] [char] (10) NULL ,
	[TIPOCOM] [char] (1) NULL ,
	[PERIODO] [char] (4) NULL ,
	[DEBE] [float] NULL ,
	[HABER] [float] NULL ,
	[TRANSMASI] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEELOTE] (
	[NULOTE] [char] (15) NOT NULL ,
	[SUBLOTE] [char] (15) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[FCRELOTE] [datetime] NULL ,
	[FVENLOTE] [datetime] NULL ,
	[STFI1] [float] NULL ,
	[STDV1] [float] NULL ,
	[STOCNV1] [float] NULL ,
	[STFI2] [float] NULL ,
	[STDV2] [float] NULL ,
	[STOCNV2] [float] NULL ,
	[STDV1C] [float] NULL ,
	[STOCNV1C] [float] NULL ,
	[STDV2C] [float] NULL ,
	[STOCNV2C] [float] NULL ,
	[DESPNOFAC1] [float] NULL ,
	[DESPNOFAC2] [float] NULL ,
	[RECENOFAC1] [float] NULL ,
	[RECENOFAC2] [float] NULL ,
	[STTR1] [float] NULL ,
	[STTR2] [float] NULL ,
	[PRESALCLI1] [float] NULL ,
	[PRESALCLI2] [float] NULL ,
	[PRESDEPRO1] [float] NULL ,
	[PRESDEPRO2] [float] NULL ,
	[CONSALCLI1] [float] NULL ,
	[CONSALCLI2] [float] NULL ,
	[CONSDEPRO1] [float] NULL ,
	[CONSDEPRO2] [float] NULL ,
	[DEVENGNCV1] [float] NULL ,
	[DEVENGNCV2] [float] NULL ,
	[DEVENGNCC1] [float] NULL ,
	[DEVENGNCC2] [float] NULL ,
	[DEVSINNCV1] [float] NULL ,
	[DEVSINNCV2] [float] NULL ,
	[DEVSINNCC1] [float] NULL ,
	[DEVSINNCC2] [float] NULL ,
	[STENFAB1] [float] NULL ,
	[STENFAB2] [float] NULL ,
	[STREQFAB1] [float] NULL ,
	[STREQFAB2] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEEN] (
	[IDMAEEN] [int] IDENTITY (1, 1) NOT NULL ,
	[KOEN] [char] (13) NOT NULL ,
	[TIEN] [char] (1) NOT NULL ,
	[RTEN] [char] (13) NULL ,
	[SUEN] [char] (10) NOT NULL ,
	[TIPOSUC] [char] (1) NULL ,
	[NOKOEN] [varchar] (50) NULL ,
	[SIEN] [char] (15) NULL ,
	[GIEN] [varchar] (100) NULL ,
	[PAEN] [char] (3) NULL ,
	[CIEN] [char] (3) NULL ,
	[CMEN] [char] (3) NOT NULL ,
	[DIEN] [varchar] (50) NULL ,
	[ZOEN] [char] (3) NULL ,
	[FOEN] [varchar] (20) NOT NULL ,
	[FAEN] [varchar] (20) NULL ,
	[CNEN] [varchar] (30) NULL ,
	[KOFUEN] [char] (3) NOT NULL ,
	[LCEN] [char] (8) NULL ,
	[LVEN] [char] (8) NULL ,
	[CRSD] [float] NULL ,
	[CRCH] [float] NULL ,
	[CRLT] [float] NULL ,
	[CRPA] [float] NULL ,
	[CRTO] [float] NULL ,
	[CREN] [char] (10) NULL ,
	[FEVECREN] [datetime] NULL ,
	[FEULTR] [datetime] NULL ,
	[NUVECR] [float] NULL ,
	[DCCR] [float] NULL ,
	[INCR] [float] NULL ,
	[POPICR] [float] NULL ,
	[KOPLCR] [char] (3) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[CONTABVTA] [char] (8) NULL ,
	[SUBAUXIVTA] [char] (13) NULL ,
	[CODCC] [char] (2) NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[RUEN] [char] (3) NULL ,
	[CPEN] [varchar] (40) NULL ,
	[OBEN] [varchar] (60) NULL ,
	[DIPRVE] [float] NULL ,
	[EMAIL] [varchar] (50) NOT NULL ,
	[CNEN2] [varchar] (30) NULL ,
	[COBRADOR] [char] (3) NULL ,
	[PROTEACUM] [float] NULL ,
	[PROTEVIGE] [float] NULL ,
	[CPOSTAL] [varchar] (25) NULL ,
	[HABILITA] [bit] NOT NULL ,
	[CODCONVE] [char] (13) NULL ,
	[NOTRAEDEUD] [bit] NOT NULL ,
	[NOKOENAMP] [varchar] (100) NULL ,
	[BLOQUEADO] [bit] NOT NULL ,
	[DIMOPER] [float] NULL ,
	[PREFEN] [bit] NOT NULL ,
	[BLOQENCOM] [bit] NOT NULL ,
	[TIPOEN] [char] (10) NULL ,
	[ACTIEN] [char] (10) NULL ,
	[TAMAEN] [char] (10) NULL ,
	[PORPREFEN] [float] NULL ,
	[CLAVEEN] [char] (10) NULL ,
	[NVVPIDEPIE] [bit] NOT NULL ,
	[RECEPELECT] [bit] NOT NULL ,
	[ACTECO] [char] (10) NULL ,
	[DIASVENCI] [int] NULL ,
	[CATTRIB] [char] (3) NULL ,
	[AGRETIVA] [bit] NOT NULL ,
	[AGRETIIBB] [bit] NOT NULL ,
	[AGRETGAN] [bit] NOT NULL ,
	[AGPERIVA] [bit] NOT NULL ,
	[AGPERIIBB] [bit] NOT NULL ,
	[TRANSPOEN] [char] (10) NULL ,
	[FECREEN] [datetime] NULL ,
	[FIRMA] [varchar] (25) NULL ,
	[MOCTAEN] [char] (3) NULL ,
	[CTASDELAEN] [varchar] (96) NULL ,
	[NACIONEN] [varchar] (25) NULL ,
	[DIRPAREN] [varchar] (50) NULL ,
	[FECNACEN] [datetime] NULL ,
	[ESTCIVEN] [char] (1) NULL ,
	[PROFECEN] [varchar] (25) NULL ,
	[CONYUGEN] [varchar] (50) NULL ,
	[RUTCONEN] [varchar] (10) NULL ,
	[RUTSOCEN] [varchar] (10) NULL ,
	[SEXOEN] [char] (1) NULL ,
	[RELACIEN] [char] (1) NULL ,
	[ANEXEN1] [varchar] (50) NULL ,
	[ANEXEN2] [varchar] (50) NULL ,
	[ANEXEN3] [varchar] (50) NULL ,
	[ANEXEN4] [varchar] (50) NULL ,
	[OCCOBLI] [bit] NOT NULL ,
	[VALIVENPAG] [bit] NOT NULL ,
	[EMAILCOMER] [varchar] (50) NULL ,
	[TIPOCONTR] [char] (1) NULL ,
	[FEREFAUTO] [bit] NOT NULL ,
	[DIACOBRA] [char] (7) NULL ,
	[CUENTABCO] [char] (20) NULL ,
	[KOENDPEN] [char] (13) NULL ,
	[SUENDPEN] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENCON] (
	[KOEN] [char] (13) NOT NULL ,
	[RUTCONTACT] [char] (13) NOT NULL ,
	[SUTRABCON] [char] (3) NULL ,
	[CLAVECON] [char] (25) NULL ,
	[NOKOCON] [varchar] (50) NULL ,
	[FONOCON] [varchar] (15) NULL ,
	[FAXCON] [varchar] (15) NULL ,
	[EMAILCON] [varchar] (100) NULL ,
	[CARGOCON] [char] (10) NULL ,
	[AREACON] [char] (10) NULL ,
	[AUTORIZADO] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENCTA] (
	[KOEN] [char] (13) NOT NULL ,
	[TIPOPAGO] [char] (3) NOT NULL ,
	[EMISOR] [char] (13) NOT NULL ,
	[CUENTA] [char] (16) NOT NULL ,
	[RUT] [char] (13) NULL ,
	[NORUT] [char] (35) NULL ,
	[BLOQUEADA] [bit] NOT NULL ,
	[SUCURSAL] [char] (3) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENFOR] (
	[KOEN] [char] (13) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[KOFOR] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENOBS] (
	[KOEN] [char] (13) NOT NULL ,
	[SUEN] [char] (10) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[FECHA] [datetime] NULL ,
	[HORAGRAB] [int] NULL ,
	[POSIT] [varchar] (200) NULL ,
	[SEMILLA] [int] IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENPRO] (
	[KOEN] [char] (13) NOT NULL ,
	[SUEN] [char] (10) NOT NULL ,
	[PROYECTO] [char] (10) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEENVA] (
	[KOENVASE] [char] (15) NOT NULL ,
	[CAPENVASE] [float] NOT NULL ,
	[UNIENVASE] [char] (2) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEERES] (
	[CODIGO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NULL ,
	[UDAD] [char] (2) NULL ,
	[DESCRIPTOR] [varchar] (50) NULL ,
	[ESTARESE] [char] (1) NULL ,
	[TIPORESE] [char] (3) NULL ,
	[CONCEPTO] [char] (13) NULL ,
	[LISTAS] [varchar] (200) NULL ,
	[FIOFERTA] [datetime] NULL ,
	[FTOFERTA] [datetime] NULL ,
	[APLICAUT] [bit] NOT NULL ,
	[PORDESC] [float] NULL ,
	[ECUPORDESC] [varchar] (242) NULL ,
	[DESC_LUN] [char] (1) NULL ,
	[DESC_MAR] [char] (1) NULL ,
	[DESC_MIE] [char] (1) NULL ,
	[DESC_JUE] [char] (1) NULL ,
	[DESC_VIE] [char] (1) NULL ,
	[DESC_SAB] [char] (1) NULL ,
	[DESC_DOM] [char] (1) NULL ,
	[DESCVALOR] [bit] NOT NULL ,
	[VALDESC] [float] NULL ,
	[ECUVALDESC] [varchar] (242) NULL ,
	[KOGEN] [char] (13) NULL ,
	[CANTMIN] [float] NULL ,
	[TIPOTRAT] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEETIQ] (
	[IDETIQ] [int] IDENTITY (1, 1) NOT NULL ,
	[FECRE] [datetime] NOT NULL ,
	[TIPO] [char] (9) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[CANUD01] [float] NOT NULL ,
	[CANUD02] [float] NOT NULL ,
	[KOENVASE] [char] (15) NOT NULL ,
	[FEPRIRST] [datetime] NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[LIDDOCRI] [char] (41) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEFICHA] (
	[KOPR] [char] (13) NOT NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[FICHA] [varchar] (255) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEFICHD] (
	[KOPR] [char] (13) NOT NULL ,
	[FICHA] [varchar] (80) NULL ,
	[SEMILLA] [numeric](18, 0) IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEIMLI] (
	[IDMAEIMLI] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[KOIMLI] [char] (13) NULL ,
	[POIMLI] [float] NULL ,
	[VAIMLI] [float] NULL ,
	[LILG] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAELIFO] (
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[FEEMLI] [datetime] NULL ,
	[KOPR] [char] (13) NULL ,
	[NULIDO] [char] (5) NOT NULL ,
	[ENTRADA] [float] NULL ,
	[SALIDA] [float] NULL ,
	[VALOR] [float] NULL ,
	[ESTADO] [char] (1) NULL ,
	[SEMILLA] [int] IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEMEN] (
	[IDMAEMEN] [int] IDENTITY (1, 1) NOT NULL ,
	[IDTABMEN] [int] NOT NULL ,
	[EMISOR] [char] (3) NOT NULL ,
	[RECEPTOR] [char] (3) NOT NULL ,
	[FECHENVIO] [datetime] NOT NULL ,
	[HORAENVIO] [int] NOT NULL ,
	[ESPERARES] [bit] NOT NULL ,
	[LEIDO] [char] (1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEMO] (
	[IDMAEMO] [int] IDENTITY (1, 1) NOT NULL ,
	[KOMO] [char] (3) NOT NULL ,
	[TIMO] [char] (1) NULL ,
	[NOKOMO] [varchar] (30) NULL ,
	[VAMO] [float] NULL ,
	[FEMO] [datetime] NOT NULL ,
	[VAMOCOM] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEMOADU] (
	[IDMAEMOADU] [int] IDENTITY (1, 1) NOT NULL ,
	[KOMO] [char] (3) NOT NULL ,
	[TIMO] [char] (1) NULL ,
	[NOKOMO] [varchar] (30) NULL ,
	[VAMO] [float] NULL ,
	[PERIODO] [char] (4) NOT NULL ,
	[MES] [char] (2) NOT NULL ,
	[VAMOCOM] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEOFERD] (
	[CODIGO] [char] (13) NOT NULL ,
	[NREG] [int] NOT NULL ,
	[ELEMENTO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NULL ,
	[UDAD] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEOFERE] (
	[CODIGO] [char] (13) NOT NULL ,
	[DESCRIPCIO] [varchar] (50) NULL ,
	[TABPRE] [char] (8) NULL ,
	[FECHAINI] [datetime] NULL ,
	[FECHAFIN] [datetime] NULL ,
	[OFERTA] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEOP] (
	[KOOP] [char] (8) NOT NULL ,
	[NOKOOP] [char] (100) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPOSLI] (
	[IDPOSLI] [int] IDENTITY (1, 1) NOT NULL ,
	[KOBOFILA] [int] NOT NULL ,
	[KOBOCOLU] [int] NOT NULL ,
	[KOBONIVEL] [int] NOT NULL ,
	[CANTIDAD] [float] NOT NULL ,
	[SIGNO] [int] NULL ,
	[IDMAEDDO] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPOSST] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[KOBOFILA] [int] NOT NULL ,
	[KOBOCOLU] [int] NOT NULL ,
	[KOBONIVEL] [int] NOT NULL ,
	[DEFINIDO] [char] (1) NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[STFI1] [float] NULL ,
	[STFI2] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPR] (
	[TIPR] [char] (3) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[KOPRRA] [char] (6) NULL ,
	[NOKOPRRA] [varchar] (20) NULL ,
	[KOPRTE] [char] (20) NULL ,
	[KOGE] [char] (13) NULL ,
	[NMARCA] [char] (1) NULL ,
	[UD01PR] [char] (2) NULL ,
	[UD02PR] [char] (2) NULL ,
	[RLUD] [float] NULL ,
	[POIVPR] [float] NULL ,
	[NUIMPR] [float] NULL ,
	[RGPR] [char] (1) NULL ,
	[STMIPR] [float] NULL ,
	[STMAPR] [float] NULL ,
	[MRPR] [char] (20) NULL ,
	[ATPR] [char] (3) NULL ,
	[RUPR] [char] (3) NULL ,
	[STFI1] [float] NULL ,
	[STDV1] [float] NULL ,
	[STOCNV1] [float] NULL ,
	[STFI2] [float] NULL ,
	[STDV2] [float] NULL ,
	[STOCNV2] [float] NULL ,
	[PPUL01] [float] NULL ,
	[PPUL02] [float] NULL ,
	[MOUL] [char] (3) NULL ,
	[TIMOUL] [char] (1) NULL ,
	[TAUL] [float] NULL ,
	[FEUL] [datetime] NULL ,
	[PM] [float] NULL ,
	[FEPM] [datetime] NULL ,
	[FMPR] [char] (4) NULL ,
	[PFPR] [char] (4) NULL ,
	[HFPR] [char] (4) NULL ,
	[VALI] [float] NULL ,
	[FEVALI] [datetime] NULL ,
	[TTREPR] [float] NULL ,
	[PRRG] [bit] NOT NULL ,
	[NIPRRG] [char] (5) NULL ,
	[NFPRRG] [char] (5) NULL ,
	[PMIN] [float] NULL ,
	[CAMICO] [float] NULL ,
	[CAMIFA] [float] NULL ,
	[LOMIFA] [float] NULL ,
	[PLANO] [varchar] (25) NULL ,
	[STDV1C] [float] NULL ,
	[STOCNV1C] [float] NULL ,
	[STDV2C] [float] NULL ,
	[STOCNV2C] [float] NULL ,
	[METRCO] [char] (3) NULL ,
	[DESPNOFAC1] [float] NULL ,
	[DESPNOFAC2] [float] NULL ,
	[RECENOFAC1] [float] NULL ,
	[RECENOFAC2] [float] NULL ,
	[TRATALOTE] [bit] NOT NULL ,
	[DIVISIBLE] [char] (1) NULL ,
	[MUDEFA] [float] NULL ,
	[EXENTO] [bit] NOT NULL ,
	[KOMODE] [char] (13) NULL ,
	[PRDESRES] [bit] NOT NULL ,
	[LISCOSTO] [char] (8) NULL ,
	[STOCKASEG] [bit] NOT NULL ,
	[ESACTFI] [bit] NOT NULL ,
	[CLALIBPR] [char] (10) NULL ,
	[KOFUPR] [char] (3) NULL ,
	[KOPRDIM] [char] (13) NULL ,
	[NODIM1] [char] (10) NULL ,
	[NODIM2] [char] (10) NULL ,
	[NODIM3] [char] (10) NULL ,
	[BLOQUEAPR] [char] (1) NULL ,
	[ZONAPR] [char] (10) NULL ,
	[CONUBIC] [bit] NOT NULL ,
	[LTSUBIC] [float] NULL ,
	[PESOUBIC] [float] NULL ,
	[FUNCLOTE] [char] (1) NULL ,
	[LOMAFA] [float] NULL ,
	[COLEGPR] [char] (5) NULL ,
	[MORGPR] [char] (3) NULL ,
	[FECRPR] [datetime] NULL ,
	[FEMOPR] [datetime] NULL ,
	[LOTECAJA] [bit] NOT NULL ,
	[STTR1] [float] NULL ,
	[STTR2] [float] NULL ,
	[PODEIVPR] [float] NULL ,
	[DIVISIBLE2] [char] (1) NULL ,
	[MOVETIQ] [bit] NOT NULL ,
	[REPUESTO] [char] (1) NULL ,
	[VIDAMEDIA] [float] NULL ,
	[TRATVMEDIA] [bit] NOT NULL ,
	[PRESALCLI1] [float] NULL ,
	[PRESALCLI2] [float] NULL ,
	[PRESDEPRO1] [float] NULL ,
	[PRESDEPRO2] [float] NULL ,
	[CONSALCLI1] [float] NULL ,
	[CONSALCLI2] [float] NULL ,
	[CONSDEPRO1] [float] NULL ,
	[CONSDEPRO2] [float] NULL ,
	[DEVENGNCV1] [float] NULL ,
	[DEVENGNCV2] [float] NULL ,
	[DEVENGNCC1] [float] NULL ,
	[DEVENGNCC2] [float] NULL ,
	[DEVSINNCV1] [float] NULL ,
	[DEVSINNCV2] [float] NULL ,
	[DEVSINNCC1] [float] NULL ,
	[DEVSINNCC2] [float] NULL ,
	[STENFAB1] [float] NULL ,
	[STENFAB2] [float] NULL ,
	[STREQFAB1] [float] NULL ,
	[STREQFAB2] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPREM] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[STMIPR] [float] NOT NULL ,
	[STMAPR] [float] NOT NULL ,
	[STFI1] [float] NOT NULL ,
	[STDV1] [float] NOT NULL ,
	[STOCNV1] [float] NOT NULL ,
	[STFI2] [float] NOT NULL ,
	[STDV2] [float] NOT NULL ,
	[STOCNV2] [float] NOT NULL ,
	[PPUL01] [float] NOT NULL ,
	[PPUL02] [float] NOT NULL ,
	[MOUL] [char] (3) NULL ,
	[TIMOUL] [char] (1) NULL ,
	[TAUL] [float] NOT NULL ,
	[FEUL] [datetime] NULL ,
	[PM] [float] NOT NULL ,
	[FEPM] [datetime] NULL ,
	[METRCO] [char] (3) NULL ,
	[VALI] [float] NOT NULL ,
	[FEVALI] [datetime] NULL ,
	[PMIN] [float] NOT NULL ,
	[STDV1C] [float] NOT NULL ,
	[STOCNV1C] [float] NOT NULL ,
	[STDV2C] [float] NOT NULL ,
	[STOCNV2C] [float] NOT NULL ,
	[DESPNOFAC1] [float] NOT NULL ,
	[DESPNOFAC2] [float] NOT NULL ,
	[RECENOFAC1] [float] NOT NULL ,
	[RECENOFAC2] [float] NOT NULL ,
	[LISCOSTO] [char] (8) NULL ,
	[CUENTACON] [char] (8) NULL ,
	[SUBAUXICON] [char] (13) NULL ,
	[CUENTACOE] [char] (8) NULL ,
	[SUBAUXICOE] [char] (13) NULL ,
	[CUENTAVEN] [char] (8) NULL ,
	[SUBAUXIVEN] [char] (13) NULL ,
	[CUENTAVEE] [char] (8) NULL ,
	[SUBAUXIVEE] [char] (13) NULL ,
	[CUENTASIA] [char] (8) NULL ,
	[SUBAUXISIA] [char] (13) NULL ,
	[CUENTASIP] [char] (8) NULL ,
	[SUBAUXISIP] [char] (13) NULL ,
	[CUENTARIA] [char] (8) NULL ,
	[SUBAUXIRIA] [char] (13) NULL ,
	[CUENTARIP] [char] (8) NULL ,
	[SUBAUXIRIP] [char] (13) NULL ,
	[CUENTASTP] [char] (8) NULL ,
	[SUBAUXISTP] [char] (13) NULL ,
	[CUENTARTP] [char] (8) NULL ,
	[SUBAUXIRTP] [char] (13) NULL ,
	[CTACOSVTA] [char] (8) NULL ,
	[SUBCOSVTA] [char] (13) NULL ,
	[CUENTAMO] [char] (8) NULL ,
	[SUBAUXIMO] [char] (13) NULL ,
	[CTACMAF] [char] (8) NULL ,
	[SUBCMAF] [char] (13) NULL ,
	[CTADEAF] [char] (8) NULL ,
	[SUBDEAF] [char] (13) NULL ,
	[CTADAAF] [char] (8) NULL ,
	[SUBDAAF] [char] (13) NULL ,
	[CUENTAMQ] [char] (8) NULL ,
	[SUBAUXIMQ] [char] (13) NULL ,
	[CTAIMPCA] [char] (8) NULL ,
	[SAUXIMPCA] [char] (13) NULL ,
	[CTAIMPAB] [char] (8) NULL ,
	[SAUXIMPAB] [char] (13) NULL ,
	[CUENTAGTI] [char] (8) NULL ,
	[SUBAUXIGTI] [char] (13) NULL ,
	[CTAVCONSI] [char] (8) NULL ,
	[SUBVCONSI] [char] (13) NULL ,
	[CTACCONSI] [char] (8) NULL ,
	[SUBCCONSI] [char] (13) NULL ,
	[CTAVPREST] [char] (8) NULL ,
	[SUBVPREST] [char] (13) NULL ,
	[CTACPREST] [char] (8) NULL ,
	[SUBCPREST] [char] (13) NULL ,
	[CTAVCONSIH] [char] (8) NULL ,
	[SUBVCONSIH] [char] (13) NULL ,
	[CTACCONSIH] [char] (8) NULL ,
	[SUBCCONSIH] [char] (13) NULL ,
	[CTAVPRESTH] [char] (8) NULL ,
	[SUBVPRESTH] [char] (13) NULL ,
	[CTACPRESTH] [char] (8) NULL ,
	[SUBCPRESTH] [char] (13) NULL ,
	[STTR1] [float] NULL ,
	[STTR2] [float] NULL ,
	[CTAAJUSAL] [char] (8) NULL ,
	[SUBAJUSAL] [char] (13) NULL ,
	[CTAAJUING] [char] (8) NULL ,
	[SUBAJUING] [char] (13) NULL ,
	[CTAFXRCOM] [char] (8) NULL ,
	[SUBFXRCOM] [char] (13) NULL ,
	[CTAFXRVTA] [char] (8) NULL ,
	[SUBFXRVTA] [char] (13) NULL ,
	[CTAPROCOVE] [char] (8) NULL ,
	[SUBPROCOVE] [char] (13) NULL ,
	[PRESALCLI1] [float] NULL ,
	[PRESALCLI2] [float] NULL ,
	[PRESDEPRO1] [float] NULL ,
	[PRESDEPRO2] [float] NULL ,
	[CONSALCLI1] [float] NULL ,
	[CONSALCLI2] [float] NULL ,
	[CONSDEPRO1] [float] NULL ,
	[CONSDEPRO2] [float] NULL ,
	[DEVENGNCV1] [float] NULL ,
	[DEVENGNCV2] [float] NULL ,
	[DEVENGNCC1] [float] NULL ,
	[DEVENGNCC2] [float] NULL ,
	[DEVSINNCV1] [float] NULL ,
	[DEVSINNCV2] [float] NULL ,
	[DEVSINNCC1] [float] NULL ,
	[DEVSINNCC2] [float] NULL ,
	[STENFAB1] [float] NULL ,
	[STENFAB2] [float] NULL ,
	[STREQFAB1] [float] NULL ,
	[STREQFAB2] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPROBS] (
	[KOPR] [char] (13) NOT NULL ,
	[EMPRESA] [char] (2) NULL ,
	[MENSAJE01] [varchar] (200) NULL ,
	[MENSAJE02] [varchar] (200) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEPR_Respaldo] (
	[TIPR] [char] (3) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[KOPRRA] [char] (6) NULL ,
	[NOKOPRRA] [varchar] (20) NULL ,
	[KOPRTE] [char] (20) NULL ,
	[KOGE] [char] (13) NULL ,
	[NMARCA] [char] (1) NULL ,
	[UD01PR] [char] (2) NULL ,
	[UD02PR] [char] (2) NULL ,
	[RLUD] [float] NULL ,
	[POIVPR] [float] NULL ,
	[NUIMPR] [float] NULL ,
	[RGPR] [char] (1) NULL ,
	[STMIPR] [float] NULL ,
	[STMAPR] [float] NULL ,
	[MRPR] [char] (20) NULL ,
	[ATPR] [char] (3) NULL ,
	[RUPR] [char] (3) NULL ,
	[STFI1] [float] NULL ,
	[STDV1] [float] NULL ,
	[STOCNV1] [float] NULL ,
	[STFI2] [float] NULL ,
	[STDV2] [float] NULL ,
	[STOCNV2] [float] NULL ,
	[PPUL01] [float] NULL ,
	[PPUL02] [float] NULL ,
	[MOUL] [char] (3) NULL ,
	[TIMOUL] [char] (1) NULL ,
	[TAUL] [float] NULL ,
	[FEUL] [datetime] NULL ,
	[PM] [float] NULL ,
	[FEPM] [datetime] NULL ,
	[FMPR] [char] (4) NULL ,
	[PFPR] [char] (4) NULL ,
	[HFPR] [char] (4) NULL ,
	[VALI] [float] NULL ,
	[FEVALI] [datetime] NULL ,
	[TTREPR] [float] NULL ,
	[PRRG] [bit] NOT NULL ,
	[NIPRRG] [char] (5) NULL ,
	[NFPRRG] [char] (5) NULL ,
	[PMIN] [float] NULL ,
	[CAMICO] [float] NULL ,
	[CAMIFA] [float] NULL ,
	[LOMIFA] [float] NULL ,
	[PLANO] [varchar] (25) NULL ,
	[STDV1C] [float] NULL ,
	[STOCNV1C] [float] NULL ,
	[STDV2C] [float] NULL ,
	[STOCNV2C] [float] NULL ,
	[METRCO] [char] (3) NULL ,
	[DESPNOFAC1] [float] NULL ,
	[DESPNOFAC2] [float] NULL ,
	[RECENOFAC1] [float] NULL ,
	[RECENOFAC2] [float] NULL ,
	[TRATALOTE] [bit] NOT NULL ,
	[DIVISIBLE] [char] (1) NULL ,
	[MUDEFA] [float] NULL ,
	[EXENTO] [bit] NOT NULL ,
	[KOMODE] [char] (13) NULL ,
	[PRDESRES] [bit] NOT NULL ,
	[LISCOSTO] [char] (8) NULL ,
	[STOCKASEG] [bit] NOT NULL ,
	[ESACTFI] [bit] NOT NULL ,
	[CLALIBPR] [char] (10) NULL ,
	[KOFUPR] [char] (3) NULL ,
	[KOPRDIM] [char] (13) NULL ,
	[NODIM1] [char] (10) NULL ,
	[NODIM2] [char] (10) NULL ,
	[NODIM3] [char] (10) NULL ,
	[BLOQUEAPR] [char] (1) NULL ,
	[ZONAPR] [char] (10) NULL ,
	[CONUBIC] [bit] NOT NULL ,
	[LTSUBIC] [float] NULL ,
	[PESOUBIC] [float] NULL ,
	[FUNCLOTE] [char] (1) NULL ,
	[LOMAFA] [float] NULL ,
	[COLEGPR] [char] (5) NULL ,
	[MORGPR] [char] (3) NULL ,
	[FECRPR] [datetime] NULL ,
	[FEMOPR] [datetime] NULL ,
	[LOTECAJA] [bit] NOT NULL ,
	[STTR1] [float] NULL ,
	[STTR2] [float] NULL ,
	[PODEIVPR] [float] NULL ,
	[DIVISIBLE2] [char] (1) NULL ,
	[MOVETIQ] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAESERIE] (
	[KOPR] [char] (13) NOT NULL ,
	[NUSEPR] [char] (25) NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[NULIDO] [char] (5) NULL ,
	[KOPA] [char] (3) NULL ,
	[KOMR] [char] (20) NULL ,
	[MODELO] [char] (20) NULL ,
	[FFABRIC] [datetime] NULL ,
	[NROMOTOR] [char] (25) NULL ,
	[TIPOCOMBUS] [char] (20) NULL ,
	[COLOR] [char] (20) NULL ,
	[PESOKG] [float] NULL ,
	[CARGAKG] [float] NULL ,
	[OBSERVA] [varchar] (50) NULL ,
	[ESNUEVA] [bit] NOT NULL ,
	[ESTADSERIE] [char] (10) NULL ,
	[DIASPERMAN] [float] NULL ,
	[FPROXMAN] [datetime] NULL ,
	[HOROMETRO] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEST] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[STFI1] [float] NULL ,
	[STDV1] [float] NULL ,
	[STOCNV1] [float] NULL ,
	[STFI2] [float] NULL ,
	[STDV2] [float] NULL ,
	[STOCNV2] [float] NULL ,
	[STDV1C] [float] NULL ,
	[STOCNV1C] [float] NULL ,
	[STDV2C] [float] NULL ,
	[STOCNV2C] [float] NULL ,
	[DESPNOFAC1] [float] NULL ,
	[DESPNOFAC2] [float] NULL ,
	[RECENOFAC1] [float] NULL ,
	[RECENOFAC2] [float] NULL ,
	[STTR1] [float] NULL ,
	[STTR2] [float] NULL ,
	[PRESALCLI1] [float] NULL ,
	[PRESALCLI2] [float] NULL ,
	[PRESDEPRO1] [float] NULL ,
	[PRESDEPRO2] [float] NULL ,
	[CONSALCLI1] [float] NULL ,
	[CONSALCLI2] [float] NULL ,
	[CONSDEPRO1] [float] NULL ,
	[CONSDEPRO2] [float] NULL ,
	[DEVENGNCV1] [float] NULL ,
	[DEVENGNCV2] [float] NULL ,
	[DEVENGNCC1] [float] NULL ,
	[DEVENGNCC2] [float] NULL ,
	[DEVSINNCV1] [float] NULL ,
	[DEVSINNCV2] [float] NULL ,
	[DEVSINNCC1] [float] NULL ,
	[DEVSINNCC2] [float] NULL ,
	[STENFAB1] [float] NULL ,
	[STENFAB2] [float] NULL ,
	[STREQFAB1] [float] NULL ,
	[STREQFAB2] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAETRANS] (
	[NUTRANSMI] [char] (13) NOT NULL ,
	[NUTRANSMI1] [char] (13) NULL ,
	[NUDETRANS] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEUS] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOUS] [char] (3) NOT NULL ,
	[KOOP] [char] (8) NOT NULL ,
	[ECKOUS] [float] NULL ,
	[TIPO] [char] (1) NULL ,
	[VALOR] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MAEVEN] (
	[IDMAEVEN] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NOT NULL ,
	[FEVE] [datetime] NULL ,
	[ESPGVE] [char] (1) NULL ,
	[VAVE] [float] NULL ,
	[VAABVE] [float] NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[PORESTPAG] [float] NULL ,
	[OBSERVA] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MALERT] (
	[IDMALERT] [int] IDENTITY (1, 1) NOT NULL ,
	[KOALERT] [char] (30) NOT NULL ,
	[ESTADO] [char] (1) NOT NULL ,
	[PARAMETROS] [char] (100) NOT NULL ,
	[PERIODO] [int] NOT NULL ,
	[TPOSUSPEN] [int] NOT NULL ,
	[DIASSEM] [char] (7) NOT NULL ,
	[DIASMES] [char] (31) NOT NULL ,
	[HORAINIPER] [int] NOT NULL ,
	[HORAFINPER] [int] NOT NULL ,
	[TPOULTEST] [int] NOT NULL ,
	[TPOPROEST] [int] NOT NULL ,
	[CONDAVISO] [char] (1) NULL ,
	[RESUALERT] [bit] NOT NULL ,
	[VRESUALERT] [char] (200) NULL ,
	[VINDICADOR] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MCODBAR] (
	[IDMCODBAR] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMAEEDO] [int] NULL ,
	[KOPR] [char] (13) NULL ,
	[CODBAR] [char] (21) NULL ,
	[CANTIDAD] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MDDOETIQ] (
	[IDMAEDDO] [int] NOT NULL ,
	[IDETIQ] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MEVENTO] (
	[IDEVENTO] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRVE] [char] (8) NULL ,
	[IDRVE] [int] NULL ,
	[KOFU] [char] (3) NULL ,
	[FEVENTO] [datetime] NULL ,
	[KOTABLA] [char] (10) NULL ,
	[KOCARAC] [char] (10) NULL ,
	[NOKOCARAC] [varchar] (50) NULL ,
	[ARCHIRSE] [char] (8) NULL ,
	[IDRSE] [int] NULL ,
	[HORAGRAB] [int] NULL ,
	[FECHAREF] [datetime] NULL ,
	[LINK] [varchar] (200) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MHALERT] (
	[IDMHALERT] [int] IDENTITY (1, 1) NOT NULL ,
	[IDMALERT] [int] NOT NULL ,
	[RESUALERT] [bit] NOT NULL ,
	[VRESUALERT] [char] (200) NULL ,
	[VINDICADOR] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MLIQARR] (
	[IDPOTL] [int] NOT NULL ,
	[IDPOTE] [int] NOT NULL ,
	[NUMOT] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[FIOT] [datetime] NULL ,
	[FTOT] [datetime] NULL ,
	[KOFUCRE] [char] (3) NULL ,
	[TIMODO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TASALIQ] [float] NULL ,
	[REFERENCIA] [varchar] (50) NULL ,
	[NOKOEN] [varchar] (50) NULL ,
	[NREG] [char] (5) NULL ,
	[CODIGO] [char] (13) NULL ,
	[GLOSA] [varchar] (50) NULL ,
	[TOTVALOR] [float] NULL ,
	[FACTURADO] [float] NULL ,
	[A_FACTURAR] [float] NULL ,
	[FLIQUID] [datetime] NULL ,
	[IDMAEDDO] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MLIQARRD] (
	[IDPOTD] [float] NULL ,
	[IDPOTL] [float] NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[TIMODO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[TASALIQ] [float] NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREG] [char] (5) NULL ,
	[SUBNREG] [char] (5) NULL ,
	[CODIGO] [char] (13) NULL ,
	[P_INSUMOS] [float] NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[NULIDO] [char] (5) NULL ,
	[CAPRCO1] [float] NULL ,
	[CAPRAD1] [float] NULL ,
	[FEEMLI] [datetime] NULL ,
	[FLIQUID] [datetime] NULL ,
	[LOSDIAS] [float] NULL ,
	[TOTVALOR] [float] NULL ,
	[TIPR] [char] (3) NULL ,
	[UD01PR] [char] (2) NULL ,
	[UD02PR] [char] (2) NULL ,
	[RLUD] [float] NULL ,
	[POIVPR] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MPROENVA] (
	[KOPR] [char] (13) NOT NULL ,
	[KOENVASE] [char] (15) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[MTEXTOS] (
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[TEMA] [char] (13) NOT NULL ,
	[ELTEXTO] [text] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[ORBAUS] (
	[KOUS] [char] (3) NOT NULL ,
	[KOORB] [char] (11) NOT NULL ,
	[PARAMETROS] [varchar] (150) NULL ,
	[FINGORB] [datetime] NULL ,
	[FULTORB] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[ORBITALES] (
	[KOORB] [char] (11) NOT NULL ,
	[NOKOORB] [varchar] (50) NULL ,
	[NUKOORB] [float] NULL ,
	[CONTROL] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[ORBREAL] (
	[KOORB] [char] (11) NOT NULL ,
	[LLAVE] [varchar] (50) NOT NULL ,
	[KOUS] [char] (3) NULL ,
	[FECHA] [datetime] NULL ,
	[LAHORA] [datetime] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PASPD] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUASP] [char] (10) NOT NULL ,
	[FEASP] [datetime] NOT NULL ,
	[KOFUASP] [char] (3) NOT NULL ,
	[EMPREOT] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[EMPRECOTI] [char] (2) NOT NULL ,
	[DESDE] [char] (3) NOT NULL ,
	[NUMECOTI] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[NREGCOT] [char] (5) NOT NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[UDAD] [char] (2) NOT NULL ,
	[FABRICAR] [float] NOT NULL ,
	[REALIZADO] [float] NOT NULL ,
	[DESISTIDO] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PASPE] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUASP] [char] (10) NOT NULL ,
	[FEASP] [datetime] NOT NULL ,
	[KOFUASP] [char] (3) NOT NULL ,
	[REFERENCIA] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PAYUDAS] (
	[DESCRIPCIO] [varchar] (120) NULL ,
	[PROGRAMA] [varchar] (8) NOT NULL ,
	[VENTANA] [varchar] (10) NOT NULL ,
	[ELCONTROL] [char] (10) NOT NULL ,
	[NREG] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PCALEN] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NDIA] [float] NOT NULL ,
	[FECHA] [datetime] NULL ,
	[HORASDIA] [float] NULL ,
	[HCALEN] [float] NULL ,
	[HORAUNO] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PCOMODI] (
	[KOCOMO] [char] (13) NOT NULL ,
	[NOKOCOMO] [varchar] (50) NULL ,
	[COMODIN] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDATFAD] (
	[IDPDATFAD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPDATFAE] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMDF] [char] (10) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NUMODC] [char] (10) NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[CODMAQ] [char] (13) NOT NULL ,
	[FECHA] [datetime] NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[CODIGO] [char] (13) NULL ,
	[UDAD] [char] (2) NULL ,
	[REALJOR] [float] NULL ,
	[FECHINI] [datetime] NULL ,
	[HORAINI] [float] NULL ,
	[FECHTER] [datetime] NULL ,
	[HORATER] [float] NULL ,
	[TIEMPO] [float] NULL ,
	[OBRERO1] [char] (8) NULL ,
	[OBRERO2] [char] (8) NULL ,
	[OBRERO3] [char] (8) NULL ,
	[OBRERO4] [char] (8) NULL ,
	[OBRERO5] [char] (8) NULL ,
	[OBRERO6] [char] (8) NULL ,
	[ESULTOPER] [bit] NOT NULL ,
	[UDAD2] [char] (2) NULL ,
	[REALJOR2] [float] NULL ,
	[RLUD] [float] NULL ,
	[KOCAUDET] [char] (10) NULL ,
	[FACTOR] [float] NULL ,
	[IDGDI] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDATFAE] (
	[IDPDATFAE] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMDF] [char] (10) NOT NULL ,
	[NUMODC] [char] (10) NULL ,
	[FECHA] [datetime] NULL ,
	[RESPONSABL] [char] (3) NULL ,
	[HORAGRAB] [int] NULL ,
	[REQCONFIR] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDATODC] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMDF] [char] (10) NOT NULL ,
	[NREGODC] [char] (5) NOT NULL ,
	[NUMODC] [char] (10) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[CARPR01] [float] NOT NULL ,
	[CARPR02] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDATTAD] (
	[IDPDATTAD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPDATTAE] [int] NOT NULL ,
	[OPERARIO] [char] (8) NULL ,
	[REALIZADO] [float] NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[IDPTICKET] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDATTAE] (
	[IDPDATTAE] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMDF] [char] (10) NOT NULL ,
	[NUMODC] [char] (10) NULL ,
	[FECHA] [datetime] NULL ,
	[RESPONSABL] [char] (3) NULL ,
	[HORAGRAB] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDIMCAR] (
	[NREG] [char] (5) NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREGOTL] [char] (5) NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[UDAD] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDIMCLI] (
	[NREG] [char] (5) NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[NOMBRE] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDIMEN] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[UDAD] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PDIMOT] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CODIGO] [char] (13) NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[UDAD] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PETAPAS] (
	[KOETAPA] [char] (25) NOT NULL ,
	[NOETAPA] [char] (50) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PHDMAQ] (
	[CODMAQ] [char] (13) NOT NULL ,
	[NUMDETEN] [float] NOT NULL ,
	[FECHINI] [datetime] NULL ,
	[HORAINI] [float] NULL ,
	[FECHTER] [datetime] NULL ,
	[HORATER] [float] NULL ,
	[TIEMPO] [float] NULL ,
	[CAUSADET] [char] (10) NULL ,
	[COMENTARIO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PHORAMAQ] (
	[CODMAQ] [char] (13) NOT NULL ,
	[DHORAI] [float] NULL ,
	[DHORAF] [float] NULL ,
	[CODUTI] [float] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NULL ,
	[ELORDEN] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PINSUPRO] (
	[CODNOMEN] [char] (13) NOT NULL ,
	[NREGNOM] [float] NOT NULL ,
	[INSUMO] [char] (13) NOT NULL ,
	[PRODUCTO] [char] (13) NOT NULL ,
	[CLIENTE] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PJORTRAD] (
	[KOJORNADA] [char] (13) NOT NULL ,
	[DIASEMANA] [int] NOT NULL ,
	[HIJOR01] [decimal](18, 0) NULL ,
	[HTJOR01] [decimal](18, 0) NULL ,
	[HIJOR02] [decimal](18, 0) NULL ,
	[HTJOR02] [decimal](18, 0) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PJORTRAE] (
	[KOJORNADA] [char] (13) NOT NULL ,
	[NOKOJOR] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PMAEOB] (
	[CODIGOOB] [char] (8) NOT NULL ,
	[RUTOB] [char] (13) NULL ,
	[NOMBREOB] [varchar] (30) NULL ,
	[TIFU] [char] (3) NULL ,
	[RTFU] [char] (13) NULL ,
	[CIFU] [char] (3) NULL ,
	[CMFU] [char] (3) NULL ,
	[DIFU] [varchar] (30) NULL ,
	[FOFU] [varchar] (8) NULL ,
	[PWFU] [char] (5) NULL ,
	[PLANO] [varchar] (25) NULL ,
	[VAHROB] [float] NULL ,
	[CODRELCON] [char] (5) NULL ,
	[KOJORNADA] [char] (13) NULL ,
	[VAHROBHE] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PMAQALT] (
	[EMPRESA] [char] (2) NOT NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQPR] [char] (13) NOT NULL ,
	[CODMAQAL] [char] (13) NOT NULL ,
	[RENDIMIEN] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PMAQUI] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CODMAQ] [char] (13) NOT NULL ,
	[NOMBREMAQ] [varchar] (25) NULL ,
	[DESCRIPCIO] [varchar] (30) NULL ,
	[HLUI1] [float] NULL ,
	[HLUT1] [float] NULL ,
	[HLUI2] [float] NULL ,
	[HLUT2] [float] NULL ,
	[HLUI3] [float] NULL ,
	[HLUT3] [float] NULL ,
	[HMAI1] [float] NULL ,
	[HMAT1] [float] NULL ,
	[HMAI2] [float] NULL ,
	[HMAT2] [float] NULL ,
	[HMAI3] [float] NULL ,
	[HMAT3] [float] NULL ,
	[HMII1] [float] NULL ,
	[HMIT1] [float] NULL ,
	[HMII2] [float] NULL ,
	[HMIT2] [float] NULL ,
	[HMII3] [float] NULL ,
	[HMIT3] [float] NULL ,
	[HJUI1] [float] NULL ,
	[HJUT1] [float] NULL ,
	[HJUI2] [float] NULL ,
	[HJUT2] [float] NULL ,
	[HJUI3] [float] NULL ,
	[HJUT3] [float] NULL ,
	[HVII1] [float] NULL ,
	[HVIT1] [float] NULL ,
	[HVII2] [float] NULL ,
	[HVIT2] [float] NULL ,
	[HVII3] [float] NULL ,
	[HVIT3] [float] NULL ,
	[HSAI1] [float] NULL ,
	[HSAT1] [float] NULL ,
	[HSAI2] [float] NULL ,
	[HSAT2] [float] NULL ,
	[HSAI3] [float] NULL ,
	[HSAT3] [float] NULL ,
	[HDOI1] [float] NULL ,
	[HDOT1] [float] NULL ,
	[HDOI2] [float] NULL ,
	[HDOT2] [float] NULL ,
	[HDOI3] [float] NULL ,
	[HDOT3] [float] NULL ,
	[PLANO] [varchar] (25) NULL ,
	[TPOCRITICO] [float] NULL ,
	[ECUTPOCRI] [char] (242) NULL ,
	[PLANTA] [char] (3) NULL ,
	[MULTICARGA] [char] (1) NULL ,
	[CAPACIDAD] [float] NULL ,
	[UDADCARGA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNOMCAR] (
	[CODIGO] [char] (10) NOT NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[LARGOOBLI] [int] NULL ,
	[LARGOMAX] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNOMDIM] (
	[CODIGO] [char] (10) NOT NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[DEPENDENCI] [char] (12) NULL ,
	[VALOR] [float] NULL ,
	[LARGOOBLI] [int] NULL ,
	[LARGOMAX] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNPA] (
	[CODIGO] [char] (13) NOT NULL ,
	[NREG] [float] NOT NULL ,
	[ELEMENTO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NOT NULL ,
	[UDAD] [char] (2) NULL ,
	[OPERACION] [char] (4) NULL ,
	[ECUCANT] [char] (242) NULL ,
	[COMODIN] [char] (13) NULL ,
	[TIPO] [char] (8) NULL ,
	[CALIDAD] [char] (1) NULL ,
	[ESMODELO] [char] (1) NOT NULL ,
	[DEPENDENCI] [char] (1) NOT NULL ,
	[KOSUDEFE] [char] (3) NULL ,
	[KOBODEFE] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNPD] (
	[CODIGO] [char] (13) NOT NULL ,
	[NREG] [float] NOT NULL ,
	[ELEMENTO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NOT NULL ,
	[UDAD] [char] (2) NOT NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[ECUCANT] [char] (242) NULL ,
	[COMODIN] [char] (13) NOT NULL ,
	[TIPO] [char] (8) NOT NULL ,
	[CALIDAD] [char] (1) NOT NULL ,
	[ESMODELO] [char] (1) NOT NULL ,
	[DEPENDENCI] [char] (1) NOT NULL ,
	[KOSUDEFE] [char] (3) NULL ,
	[KOBODEFE] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNPE] (
	[CODIGO] [char] (13) NOT NULL ,
	[CANTIDAD] [float] NOT NULL ,
	[UDAD] [char] (2) NOT NULL ,
	[DESCRIPTOR] [varchar] (50) NOT NULL ,
	[PLANO] [varchar] (25) NOT NULL ,
	[ESODD] [char] (1) NOT NULL ,
	[INACTIVA] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNPR] (
	[CODIGO] [char] (13) NOT NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[ORDEN] [float] NOT NULL ,
	[POROPANT] [float] NOT NULL ,
	[PORREQCOMP] [float] NOT NULL ,
	[SALPROXJOR] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PNPRA] (
	[CODIGO] [char] (13) NOT NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[ORDEN] [float] NOT NULL ,
	[POROPANT] [float] NOT NULL ,
	[PORREQCOMP] [float] NOT NULL ,
	[SALPROXJOR] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POBREFAD] (
	[IDOBREFAD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPDATFAD] [int] NULL ,
	[OBRERO] [char] (8) NULL ,
	[FECHINIOB] [datetime] NULL ,
	[HORAINIOB] [float] NULL ,
	[FECHTEROB] [datetime] NULL ,
	[HORATEROB] [float] NULL ,
	[TIEMPOOB] [float] NULL ,
	[VALHORA] [float] NULL ,
	[VALUNID] [float] NULL ,
	[VALADI1] [float] NULL ,
	[VALADI2] [float] NULL ,
	[KOJORNADA] [char] (13) NULL ,
	[TIEMPOOBHE] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PODCD] (
	[IDPODCD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPODCE] [int] NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMODC] [char] (10) NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[NREG] [char] (5) NOT NULL ,
	[KOPR] [char] (13) NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[SULIODC] [char] (3) NULL ,
	[BOLIODC] [char] (3) NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREGOTL] [char] (5) NULL ,
	[UD01PR] [char] (2) NULL ,
	[RLUD] [float] NOT NULL ,
	[UD02PR] [char] (2) NULL ,
	[CATPR01] [float] NOT NULL ,
	[CATPR02] [float] NOT NULL ,
	[CARPR01] [float] NOT NULL ,
	[CARPR02] [float] NOT NULL ,
	[CABPR01] [float] NOT NULL ,
	[CABPR02] [float] NOT NULL ,
	[VANELI] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PODCE] (
	[IDPODCE] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMODC] [char] (10) NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[FRODC] [datetime] NULL ,
	[REFERENCIA] [varchar] (50) NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[SULIODC] [char] (3) NULL ,
	[BOLIODC] [char] (3) NULL ,
	[KOIN] [char] (13) NULL ,
	[NOKOIN] [varchar] (50) NULL ,
	[UD01IN] [char] (2) NULL ,
	[RLUD] [float] NOT NULL ,
	[UD02IN] [char] (2) NULL ,
	[FITODC] [datetime] NULL ,
	[TTTODC] [float] NOT NULL ,
	[CATIN01] [float] NOT NULL ,
	[CATIN02] [float] NOT NULL ,
	[COTIN] [float] NOT NULL ,
	[COTMO] [float] NOT NULL ,
	[COTMA] [float] NOT NULL ,
	[FIRODC] [datetime] NULL ,
	[TTRODC] [float] NOT NULL ,
	[CARIN01] [float] NOT NULL ,
	[CARIN02] [float] NOT NULL ,
	[CARIN01FA] [float] NOT NULL ,
	[CORIN] [float] NOT NULL ,
	[CORMO] [float] NOT NULL ,
	[CORMA] [float] NOT NULL ,
	[CATTOTPRFA] [float] NOT NULL ,
	[CARTOTPRFA] [float] NOT NULL ,
	[PPERDIDAT] [float] NOT NULL ,
	[PERDIDAT] [float] NOT NULL ,
	[PPERDIDAR] [float] NULL ,
	[PERDIDAR] [float] NULL ,
	[QUEMANDA] [char] (10) NULL ,
	[HORAGRAB] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POPER] (
	[OPERACION] [char] (4) NOT NULL ,
	[UDAD] [char] (2) NULL ,
	[TIPOOP] [char] (1) NULL ,
	[NOMBREOP] [varchar] (50) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[PUNTOS] [float] NULL ,
	[LOTE] [float] NULL ,
	[ECULOTE] [char] (242) NULL ,
	[TPU] [float] NULL ,
	[ECUTPU] [char] (242) NULL ,
	[RANGO_1] [float] NULL ,
	[RANGO_2] [float] NULL ,
	[RANGO_3] [float] NULL ,
	[ECURANGO1] [char] (242) NULL ,
	[ECURANGO2] [char] (242) NULL ,
	[ECURANGO3] [char] (242) NULL ,
	[CUT] [float] NULL ,
	[ECUCUT] [char] (242) NULL ,
	[CUP] [float] NULL ,
	[ECUCUP] [char] (242) NULL ,
	[OBREROS] [float] NULL ,
	[CHMO] [float] NULL ,
	[ECUCHMO] [char] (242) NULL ,
	[CHMOP] [float] NULL ,
	[ECUCHMOP] [char] (242) NULL ,
	[PORTICKET] [bit] NOT NULL ,
	[TPOTICKET] [bit] NOT NULL ,
	[PUT] [float] NULL ,
	[ECUPUT] [char] (242) NULL ,
	[PUP] [float] NULL ,
	[ECUPUP] [char] (242) NULL ,
	[PHMO] [float] NULL ,
	[ECUPHMO] [char] (242) NULL ,
	[PHMOP] [float] NULL ,
	[ECUPHMOP] [char] (242) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTD] (
	[IDPOTD] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPOTL] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREG] [char] (5) NOT NULL ,
	[SUBNREG] [char] (5) NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[PERTENECE] [char] (5) NULL ,
	[NIVEL] [int] NOT NULL ,
	[AUXI] [char] (1) NULL ,
	[CODIGO] [char] (13) NULL ,
	[MARCANOM] [char] (1) NULL ,
	[CODNOMEN] [char] (13) NULL ,
	[NUMDEEST] [float] NULL ,
	[GLOSA] [varchar] (50) NULL ,
	[TIPOUNI] [float] NULL ,
	[DOBLEU] [bit] NOT NULL ,
	[CANTIDADF] [float] NULL ,
	[CANTIDACF] [float] NULL ,
	[CANTIDADR] [float] NULL ,
	[CANTANTI] [float] NULL ,
	[UNIDAD] [char] (2) NULL ,
	[UNIDADC] [char] (2) NULL ,
	[TIPO] [char] (8) NULL ,
	[OPERACION] [char] (4) NULL ,
	[CALIDAD] [char] (1) NULL ,
	[NIVELSUP] [char] (5) NULL ,
	[NUMPLAN] [char] (8) NULL ,
	[LILG] [char] (2) NULL ,
	[NUMODC] [char] (10) NULL ,
	[NREGODC] [char] (5) NULL ,
	[SULIOTD] [char] (3) NULL ,
	[BOLIOTD] [char] (3) NULL ,
	[PNPDNREG] [float] NULL ,
	[C_SALIDA] [float] NULL ,
	[C_INSUMOS] [float] NULL ,
	[P_INSUMOS] [float] NULL ,
	[CCINSUMOS] [float] NULL ,
	[PCINSUMOS] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTE] (
	[IDPOTE] [int] IDENTITY (1, 1) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[FIOT] [datetime] NULL ,
	[FTOT] [datetime] NULL ,
	[REFERENCIA] [varchar] (50) NULL ,
	[PLANO] [varchar] (25) NULL ,
	[EXTEN] [char] (3) NULL ,
	[NUMPLAN] [char] (8) NULL ,
	[SUOT] [char] (3) NULL ,
	[KOFUCRE] [char] (3) NULL ,
	[KOFUCIE] [char] (3) NULL ,
	[HORAGRAB] [int] NULL ,
	[TIPOOT] [char] (10) NULL ,
	[ESODD] [char] (1) NULL ,
	[ENDO] [char] (13) NULL ,
	[SUENDO] [char] (10) NULL ,
	[FACTURAR] [bit] NOT NULL ,
	[KOFUFACTU] [char] (3) NULL ,
	[MODO] [char] (3) NULL ,
	[TIMODO] [char] (1) NULL ,
	[TAMODO] [float] NULL ,
	[KOCT01] [char] (13) NULL ,
	[POKOCT01] [float] NULL ,
	[KOCT02] [char] (13) NULL ,
	[POKOCT02] [float] NULL ,
	[KOCT03] [char] (13) NULL ,
	[POKOCT03] [float] NULL ,
	[DIASVIGCOT] [int] NULL ,
	[FORMAPAGO] [char] (25) NULL ,
	[ENCARGADO] [char] (25) NULL ,
	[CARGO] [char] (25) NULL ,
	[KOPROYE] [char] (25) NULL ,
	[KOETAPA] [char] (25) NULL ,
	[OCDO] [varchar] (20) NULL ,
	[FECHAOC] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTL] (
	[IDPOTL] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPOTE] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREG] [char] (5) NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[DESDE] [char] (3) NULL ,
	[CODIGO] [char] (13) NULL ,
	[UDAD] [char] (2) NULL ,
	[CODNOMEN] [char] (13) NULL ,
	[NUMECOTI] [char] (10) NULL ,
	[NREGCOT] [char] (5) NULL ,
	[FABRICAR] [float] NULL ,
	[REALIZADO] [float] NULL ,
	[DIFERENCIA] [float] NULL ,
	[MARCANOM] [char] (1) NULL ,
	[NUMDEEST] [float] NULL ,
	[NIVEL] [int] NULL ,
	[GLOSA] [varchar] (50) NULL ,
	[PLANO] [varchar] (25) NULL ,
	[EXTEN] [char] (3) NULL ,
	[NIVELSUP] [char] (5) NULL ,
	[ESCADENA] [char] (1) NULL ,
	[PORENTRAR] [float] NULL ,
	[NUMPLAN] [char] (8) NULL ,
	[INFORABODE] [char] (1) NULL ,
	[LILG] [char] (2) NOT NULL ,
	[NUMODC] [char] (10) NOT NULL ,
	[NREGODC] [char] (5) NOT NULL ,
	[SULIOTL] [char] (3) NULL ,
	[BOLIOTL] [char] (3) NULL ,
	[PORASIGNAR] [char] (1) NULL ,
	[KOFUCRE] [char] (3) NULL ,
	[KOFUCIE] [char] (3) NULL ,
	[F_COSTEO] [datetime] NULL ,
	[C_FABRIC] [float] NULL ,
	[C_INSUMOS] [float] NULL ,
	[C_MAQUINAS] [float] NULL ,
	[C_M_OBRA] [float] NULL ,
	[ESODD] [char] (1) NULL ,
	[VNSERVICIO] [float] NULL ,
	[P_FABRIC] [float] NULL ,
	[P_INSUMOS] [float] NULL ,
	[P_MAQUINAS] [float] NULL ,
	[P_M_OBRA] [float] NULL ,
	[CCFABRIC] [float] NULL ,
	[CCINSUMOS] [float] NULL ,
	[CCMAQUINAS] [float] NULL ,
	[CCM_OBRA] [float] NULL ,
	[PCFABRIC] [float] NULL ,
	[PCINSUMOS] [float] NULL ,
	[PCMAQUINAS] [float] NULL ,
	[PCM_OBRA] [float] NULL ,
	[PODESVNSER] [float] NULL ,
	[ECUVNSERVI] [varchar] (242) NULL ,
	[OBSERVA] [varchar] (25) NULL ,
	[FIPOTL] [datetime] NULL ,
	[FTPOTL] [datetime] NULL ,
	[PLANTA] [float] NULL ,
	[USOS] [float] NULL ,
	[PREFIJADO] [char] (1) NULL ,
	[PODESINSU] [float] NULL ,
	[PODESMO] [float] NULL ,
	[PODESMAQ] [float] NULL ,
	[PODESSAL] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTLCOM] (
	[IDPOTLCOM] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPOTL] [int] NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[DESDE] [char] (3) NOT NULL ,
	[NUMECOTI] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[NREGCOT] [char] (5) NOT NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[UDAD] [char] (2) NOT NULL ,
	[FABRICAR] [float] NOT NULL ,
	[REALIZADO] [float] NOT NULL ,
	[DESISTIDO] [float] NOT NULL ,
	[ASIGNADO] [float] NULL ,
	[ESODD] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTLSER] (
	[KOPR] [char] (13) NOT NULL ,
	[NUSEPR] [char] (25) NOT NULL ,
	[IDPOTL] [int] NULL ,
	[EMPRESA] [char] (2) NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREGOTL] [char] (5) NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTPR] (
	[IDPOTPR] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPOTL] [int] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[CODIGO] [char] (13) NULL ,
	[OPERACION] [char] (4) NULL ,
	[ORDEN] [float] NOT NULL ,
	[POROPANT] [float] NULL ,
	[PORREQCOMP] [float] NULL ,
	[TIPOOP] [char] (1) NULL ,
	[ESTADO] [char] (1) NULL ,
	[SITPEDFAB] [char] (1) NULL ,
	[FABRICAR] [float] NULL ,
	[REALIZADO] [float] NULL ,
	[SALPROXJOR] [char] (1) NULL ,
	[PORMAQUILA] [float] NULL ,
	[LILG] [char] (2) NOT NULL ,
	[NUMODC] [char] (10) NOT NULL ,
	[NREGODC] [char] (5) NOT NULL ,
	[CODMAQOT] [char] (13) NULL ,
	[C_FABRIC] [float] NULL ,
	[C_INSUMOS] [float] NULL ,
	[C_MAQUINAS] [float] NULL ,
	[C_M_OBRA] [float] NULL ,
	[P_FABRIC] [float] NULL ,
	[P_INSUMOS] [float] NULL ,
	[P_MAQUINAS] [float] NULL ,
	[P_M_OBRA] [float] NULL ,
	[CCFABRIC] [float] NULL ,
	[CCINSUMOS] [float] NULL ,
	[CCMAQUINAS] [float] NULL ,
	[CCM_OBRA] [float] NULL ,
	[PCFABRIC] [float] NULL ,
	[PCINSUMOS] [float] NULL ,
	[PCMAQUINAS] [float] NULL ,
	[PCM_OBRA] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[POTPRTA] (
	[IDPOTPRTA] [int] IDENTITY (1, 1) NOT NULL ,
	[IDPOTPR] [int] NOT NULL ,
	[TAREA] [char] (13) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[VALTAREA] [float] NULL ,
	[REALIZADO] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLAMAQ] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CODMAQ] [char] (13) NOT NULL ,
	[LINEA] [float] NULL ,
	[UDAD] [char] (2) NULL ,
	[NOMBRE] [char] (25) NULL ,
	[ULTHORAANT] [float] NULL ,
	[HRSTRABANT] [float] NULL ,
	[HRSESPEANT] [float] NULL ,
	[HRSDETEANT] [float] NULL ,
	[ULTHORAACT] [float] NULL ,
	[HRSTRABACT] [float] NULL ,
	[HRSESPEACT] [float] NULL ,
	[HRSDETEACT] [float] NULL ,
	[PARAORDEN] [float] NULL ,
	[TPOCRITICO] [float] NULL ,
	[ECUTPOCRI] [varchar] (242) NULL ,
	[PLANTA] [char] (3) NULL ,
	[MULTICARGA] [char] (1) NULL ,
	[CAPACIDAD] [float] NULL ,
	[UDADCARGA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLAND] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMPLAN] [char] (8) NOT NULL ,
	[PRIORIDAD] [float] NULL ,
	[NUMOT] [char] (10) NULL ,
	[NREGOTL] [char] (5) NULL ,
	[NIVEL] [int] NULL ,
	[NIVELSUP] [char] (5) NULL ,
	[CODIGO] [char] (13) NULL ,
	[UDAD] [char] (2) NULL ,
	[OPERACION] [char] (4) NULL ,
	[CODMAQ] [char] (13) NULL ,
	[POROPANT] [float] NULL ,
	[PORREQCOMP] [float] NULL ,
	[NULOTES] [float] NULL ,
	[LINEA] [float] NULL ,
	[ORDEN] [float] NULL ,
	[COLCAD] [float] NULL ,
	[KOLOR] [float] NULL ,
	[CARAC] [char] (1) NULL ,
	[TIEMPO] [float] NULL ,
	[TIEMPOE] [float] NULL ,
	[ASIGNADO] [float] NULL ,
	[ASIGOPAN] [float] NULL ,
	[HORAI] [float] NOT NULL ,
	[HORAANT] [float] NULL ,
	[ULTOPER] [bit] NOT NULL ,
	[FABRICAR] [float] NULL ,
	[REALIZADO] [float] NULL ,
	[PORFABRI] [float] NULL ,
	[PORENTRAR] [float] NULL ,
	[AGREGADO] [bit] NOT NULL ,
	[PIVOTE] [float] NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[NOMBREOP] [varchar] (50) NULL ,
	[ESCADENA] [char] (1) NULL ,
	[DESDE] [char] (3) NULL ,
	[NUMECOTI] [char] (10) NULL ,
	[NREGCOT] [char] (5) NULL ,
	[PREFIJADO] [char] (1) NULL ,
	[HORAFINOP] [float] NULL ,
	[BORRADO] [float] NULL ,
	[COLOT] [float] NULL ,
	[SALPROXJOR] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLANE] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMPLAN] [char] (8) NOT NULL ,
	[FIPLAN] [datetime] NULL ,
	[FTPLAN] [datetime] NULL ,
	[DESCRIPCIO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLANOS] (
	[PLANO] [char] (13) NOT NULL ,
	[EXTEN] [char] (3) NULL ,
	[TEMA] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLANPR] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[UDAD] [char] (2) NULL ,
	[MARCANOM] [char] (1) NULL ,
	[INICIAL] [float] NULL ,
	[RETIRADO] [float] NULL ,
	[REQUERIDO] [float] NULL ,
	[ENBODEGA] [float] NULL ,
	[PORENTRAR] [float] NULL ,
	[PEDIDOS] [float] NULL ,
	[ENFABRI] [float] NULL ,
	[ENFABRIP] [float] NULL ,
	[COMPROM] [float] NULL ,
	[COMPROMP] [float] NULL ,
	[AJUSTES] [float] NULL ,
	[SALDODIS] [float] NULL ,
	[RETSIMUL] [float] NULL ,
	[INGSIMUL] [float] NULL ,
	[SALDOSIMUL] [float] NULL ,
	[SALDOSIMT] [float] NULL ,
	[STINISIMU] [float] NULL ,
	[AJUSTE] [float] NULL ,
	[GLOSA] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLAPRIO] (
	[EMPRESA] [char] (2) NOT NULL ,
	[NUMOT] [char] (10) NOT NULL ,
	[NREGOTL] [char] (5) NOT NULL ,
	[CODIGO] [char] (13) NULL ,
	[KOLOR] [float] NULL ,
	[CARAC] [char] (1) NULL ,
	[TIEMPO] [float] NULL ,
	[NUTOPER] [float] NULL ,
	[PIVOTE] [bit] NOT NULL ,
	[NOKOPR] [varchar] (50) NULL ,
	[UD01PR] [char] (2) NULL ,
	[FABRICAR] [float] NULL ,
	[REALIZADO] [float] NULL ,
	[LISTO] [bit] NOT NULL ,
	[ESCADENA] [char] (1) NULL ,
	[DESDE] [char] (3) NULL ,
	[NUMECOTI] [char] (10) NULL ,
	[NREGCOT] [char] (5) NULL ,
	[PREFIJADO] [char] (1) NULL ,
	[FECHPART] [datetime] NULL ,
	[SECUENCIA] [char] (8) NULL ,
	[FTOT] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLASIMU] (
	[EMPRESA] [char] (2) NOT NULL ,
	[EVENTO] [float] NOT NULL ,
	[EXITOS] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPLAVST] (
	[EMPRESA] [char] (2) NOT NULL ,
	[EVENTO] [float] NOT NULL ,
	[HORAGENE] [float] NULL ,
	[PIVOTE] [float] NULL ,
	[NUMOTPRO] [char] (10) NULL ,
	[NREGOTLPRO] [char] (5) NULL ,
	[OPERAPRO] [char] (4) NULL ,
	[NUMOTCON] [char] (10) NULL ,
	[NREGOTLCON] [char] (5) NULL ,
	[OPERACON] [char] (4) NULL ,
	[CODIGO] [char] (13) NULL ,
	[UDAD] [char] (2) NULL ,
	[CANTIDAD] [float] NULL ,
	[BORRADO] [float] NULL ,
	[UTILIZADO] [bit] NOT NULL ,
	[LEIDO] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPROTAR] (
	[KOPR] [char] (13) NOT NULL ,
	[TAREA] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPROYED] (
	[KOPROYE] [char] (25) NOT NULL ,
	[NUETAPA] [char] (5) NOT NULL ,
	[KOETAPA] [char] (25) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PPROYEE] (
	[KOPROYE] [char] (25) NOT NULL ,
	[FIPROYE] [datetime] NULL ,
	[FTPROYE] [datetime] NULL ,
	[NOPROYE] [varchar] (100) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PRELA] (
	[CODIGO] [char] (13) NOT NULL ,
	[ORDEN] [float] NULL ,
	[CODNOMEN] [char] (13) NOT NULL ,
	[ESMODELO] [char] (1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PRESERVA] (
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[ARCHIDEST] [char] (8) NOT NULL ,
	[IDDEST] [int] NOT NULL ,
	[CODIGO] [char] (13) NOT NULL ,
	[RESERVA] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PTAREAS] (
	[TAREA] [char] (13) NOT NULL ,
	[NOMTAREA] [varchar] (50) NULL ,
	[VALTAREA] [float] NULL ,
	[ECUTAREA] [varchar] (242) NULL ,
	[TPOTAREA] [float] NULL ,
	[ECTPOTAREA] [varchar] (242) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PTAROP] (
	[IDPTAROP] [int] IDENTITY (1, 1) NOT NULL ,
	[TAREA] [char] (13) NOT NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[ORDEN] [char] (5) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PTICKET] (
	[IDPTICKET] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[FABRICAR] [float] NOT NULL ,
	[FEEMTICKET] [datetime] NOT NULL ,
	[RESPONSABL] [char] (3) NOT NULL ,
	[ANULADO] [bit] NOT NULL ,
	[RESPOANUL] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PTIPOOT] (
	[TIPOOT] [char] (10) NOT NULL ,
	[NOTIPO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[PVELPROP] (
	[KOPR] [char] (13) NOT NULL ,
	[OPERACION] [char] (4) NOT NULL ,
	[VALOR] [float] NULL ,
	[NOOPPR] [char] (50) NULL ,
	[CODMAQOPPR] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RCLASED] (
	[KOPERNULO] [char] (13) NULL ,
	[NREGNULO] [char] (12) NULL ,
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[NOKOCO] [varchar] (50) NULL ,
	[FECHAINI] [datetime] NULL ,
	[FECHAFIN] [datetime] NULL ,
	[VALPRIN] [varchar] (150) NULL ,
	[VALAUX1] [varchar] (150) NULL ,
	[VALAUX2] [varchar] (150) NULL ,
	[VALAUX3] [varchar] (150) NULL ,
	[VALDESCRIP] [varchar] (50) NULL ,
	[CODCC] [char] (8) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[IMPONIBLE] [bit] NOT NULL ,
	[TRIBUTABLE] [bit] NOT NULL ,
	[APPATER] [varchar] (20) NULL ,
	[APMATER] [varchar] (20) NULL ,
	[NOMBRES] [varchar] (25) NULL ,
	[FNACIM] [datetime] NULL ,
	[ORDEN] [float] NULL ,
	[CONTAB1] [char] (8) NULL ,
	[SUBAUXI1] [char] (13) NULL ,
	[CONTAB2] [char] (8) NULL ,
	[SUBAUXI2] [char] (13) NULL ,
	[CONTAB3] [char] (8) NULL ,
	[SUBAUXI3] [char] (13) NULL ,
	[DEBEHABE] [char] (1) NULL ,
	[DEBEHABE1] [char] (1) NULL ,
	[DEBEHABE2] [char] (1) NULL ,
	[DEBEHABE3] [char] (1) NULL ,
	[PORTAB] [int] NOT NULL ,
	[KOTAB] [char] (10) NULL ,
	[NCOLVALOR] [int] NULL ,
	[VALACCETAB] [varchar] (150) NULL ,
	[PORTABDES] [int] NULL ,
	[KOTABDES] [char] (10) NULL ,
	[NCOLVALDES] [int] NULL ,
	[EVENTUAL] [char] (1) NULL ,
	[DECIMAL] [int] NULL ,
	[DECIMAL1] [int] NULL ,
	[DECIMAL2] [int] NULL ,
	[DECIMAL3] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RCLASEE] (
	[CLASE] [char] (10) NOT NULL ,
	[NOCLASE] [varchar] (50) NULL ,
	[TIPOCLASE] [char] (1) NULL ,
	[NUEVASI] [bit] NOT NULL ,
	[CAMPOSCLA] [char] (40) NULL ,
	[ORDENAPAR] [int] NULL ,
	[NVALPRIN] [char] (20) NULL ,
	[NVALAUX1] [char] (20) NULL ,
	[NVALAUX2] [char] (20) NULL ,
	[NVALAUX3] [char] (20) NULL ,
	[NVALDESCRI] [char] (20) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RCLASEIN] (
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[CLASEI] [char] (10) NOT NULL ,
	[KOCOI] [char] (10) NOT NULL ,
	[QUECAMPO] [char] (10) NOT NULL ,
	[NUCAMPO] [char] (5) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RCLASEN] (
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[NVALPRIN] [char] (20) NULL ,
	[NVALAUX1] [char] (20) NULL ,
	[NVALAUX2] [char] (20) NULL ,
	[NVALAUX3] [char] (20) NULL ,
	[NVALDESCRI] [char] (20) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RDIMEN] (
	[NPROCESO] [char] (10) NOT NULL ,
	[KOPER] [char] (13) NOT NULL ,
	[NOKOPER] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RFORMATD] (
	[FORMATO] [char] (10) NOT NULL ,
	[TIPO] [char] (1) NOT NULL ,
	[MARCA] [int] NULL ,
	[NSOF] [char] (2) NOT NULL ,
	[NREG] [int] NOT NULL ,
	[FILAI] [char] (12) NOT NULL ,
	[FILAT] [char] (12) NULL ,
	[COLUI] [int] NOT NULL ,
	[TIPODATO] [char] (5) NOT NULL ,
	[NOMTABLA] [char] (10) NULL ,
	[CLASE] [char] (10) NULL ,
	[KOCO] [char] (10) NULL ,
	[CAMPO] [char] (10) NULL ,
	[ELPICTURE] [varchar] (20) NULL ,
	[TEXTO] [varchar] (132) NULL ,
	[QUECAMPO] [char] (10) NULL ,
	[FILASSECCI] [int] NULL ,
	[TIPOTOTAL] [char] (2) NULL ,
	[SUBSECCI] [int] NULL ,
	[NEGRITA] [bit] NOT NULL ,
	[COMPRIMIDA] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RFORMATE] (
	[FORMATO] [char] (10) NOT NULL ,
	[DESCRIP] [varchar] (50) NULL ,
	[NIVEL] [char] (10) NULL ,
	[CLASE] [char] (10) NULL ,
	[KOCO] [char] (10) NULL ,
	[CARROANCHO] [char] (1) NULL ,
	[HORIZONTAL] [char] (1) NULL ,
	[LINEAS] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RIMPUNIC] (
	[FIPROC] [datetime] NOT NULL ,
	[FTPROC] [datetime] NOT NULL ,
	[KOPER] [char] (13) NOT NULL ,
	[FOLIO] [char] (10) NOT NULL ,
	[SBRUTO] [float] NULL ,
	[COTIZ] [float] NULL ,
	[RENTAIMP] [float] NULL ,
	[IMPUNIC] [float] NULL ,
	[RENTAAFE] [float] NULL ,
	[IMPUNIAFE] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RLIQUID] (
	[IDRLIQUID] [int] IDENTITY (1, 1) NOT NULL ,
	[NPROCESO] [char] (10) NOT NULL ,
	[NPROCEVEN] [char] (8) NULL ,
	[KOPER] [char] (13) NOT NULL ,
	[ORDEN] [int] NOT NULL ,
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[NOKOCO] [varchar] (50) NULL ,
	[FECHAINI] [datetime] NULL ,
	[FECHAFIN] [datetime] NULL ,
	[VALPRIN] [float] NULL ,
	[VALAUX1] [float] NULL ,
	[VALAUX2] [float] NULL ,
	[VALAUX3] [float] NULL ,
	[VALDESCRIP] [varchar] (50) NULL ,
	[CODCC] [char] (8) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[IMPONIBLE] [bit] NOT NULL ,
	[TRIBUTABLE] [bit] NOT NULL ,
	[CONTAB1] [char] (8) NULL ,
	[SUBAUXI1] [char] (13) NULL ,
	[CONTAB2] [char] (8) NULL ,
	[SUBAUXI2] [char] (13) NULL ,
	[CONTAB3] [char] (8) NULL ,
	[SUBAUXI3] [char] (13) NULL ,
	[DEBEHABE] [char] (1) NULL ,
	[DEBEHABE1] [char] (1) NULL ,
	[DEBEHABE2] [char] (1) NULL ,
	[DEBEHABE3] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RLIQUIDM] (
	[IDRLIQUID] [int] IDENTITY (1, 1) NOT NULL ,
	[NPROCESO] [char] (10) NOT NULL ,
	[NPROCEVEN] [char] (8) NULL ,
	[KOPER] [char] (13) NOT NULL ,
	[ORDEN] [int] NOT NULL ,
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[NOKOCO] [varchar] (50) NULL ,
	[FECHAINI] [datetime] NULL ,
	[FECHAFIN] [datetime] NULL ,
	[VALPRIN] [float] NULL ,
	[VALAUX1] [float] NULL ,
	[VALAUX2] [float] NULL ,
	[VALAUX3] [float] NULL ,
	[VALDESCRIP] [varchar] (50) NULL ,
	[CODCC] [char] (8) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[IMPONIBLE] [bit] NOT NULL ,
	[TRIBUTABLE] [bit] NOT NULL ,
	[CONTAB1] [char] (8) NULL ,
	[SUBAUXI1] [char] (13) NULL ,
	[CONTAB2] [char] (8) NULL ,
	[SUBAUXI2] [char] (13) NULL ,
	[CONTAB3] [char] (8) NULL ,
	[SUBAUXI3] [char] (13) NULL ,
	[DEBEHABE] [char] (1) NULL ,
	[DEBEHABE1] [char] (1) NULL ,
	[DEBEHABE2] [char] (1) NULL ,
	[DEBEHABE3] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RMODLIQ] (
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[RESUELVE] [char] (1) NULL ,
	[ORDEN] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RNOMCAMP] (
	[TABLA] [char] (10) NOT NULL ,
	[CAMPO] [char] (10) NOT NULL ,
	[NOMCORTO] [varchar] (20) NULL ,
	[NOMLARGO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RPARAMREM] (
	[PAR_MES] [char] (2) NULL ,
	[PAR_ANO] [char] (2) NULL ,
	[PAR_UF] [float] NULL ,
	[PAR_UTM] [float] NULL ,
	[PAR_SUEMIN] [float] NULL ,
	[PAR_TOPEUF] [float] NULL ,
	[PAR_PORSAL] [float] NULL ,
	[PAR_FDOPEN] [float] NULL ,
	[PAR_FACHE1] [float] NULL ,
	[PAR_FACHE2] [float] NULL ,
	[PAR_FACHE3] [float] NULL ,
	[PAR_PORGRA] [float] NULL ,
	[PAR_TOPGRA] [float] NULL ,
	[PAR_M01GRA] [char] (1) NULL ,
	[PAR_M02GRA] [char] (1) NULL ,
	[PAR_M03GRA] [char] (1) NULL ,
	[PAR_M04GRA] [char] (1) NULL ,
	[PAR_M05GRA] [char] (1) NULL ,
	[PAR_M06GRA] [char] (1) NULL ,
	[PAR_M07GRA] [char] (1) NULL ,
	[PAR_M08GRA] [char] (1) NULL ,
	[PAR_M09GRA] [char] (1) NULL ,
	[PAR_M10GRA] [char] (1) NULL ,
	[PAR_M11GRA] [char] (1) NULL ,
	[PAR_M12GRA] [char] (1) NULL ,
	[PAR_TRA1CF] [float] NULL ,
	[PAR_VAL1CF] [float] NULL ,
	[PAR_TRA2CF] [float] NULL ,
	[PAR_VAL2CF] [float] NULL ,
	[PAR_TRA3CF] [float] NULL ,
	[PAR_VAL3CF] [float] NULL ,
	[PAR_TRA4CF] [float] NULL ,
	[PAR_VAL4CF] [float] NULL ,
	[PAR_TOPZON] [float] NULL ,
	[PAR_TOP889] [float] NULL ,
	[PAR_POR889] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RPERSE] (
	[KOPER] [char] (13) NOT NULL ,
	[RUTPER] [char] (13) NULL ,
	[KOFU] [varchar] (3) NULL ,
	[NOKOPER] [varchar] (50) NULL ,
	[APPPER] [varchar] (20) NULL ,
	[APMPER] [varchar] (20) NULL ,
	[NOMPER] [varchar] (25) NULL ,
	[SEXPER] [char] (1) NULL ,
	[FNACPER] [datetime] NULL ,
	[NACIONPER] [varchar] (20) NULL ,
	[PROFEPER] [varchar] (30) NULL ,
	[PAPER] [char] (3) NULL ,
	[CIPER] [char] (3) NULL ,
	[CMPER] [char] (3) NULL ,
	[DIPER] [varchar] (50) NULL ,
	[NRODIPER] [varchar] (10) NULL ,
	[TELEPER] [varchar] (10) NULL ,
	[CELUPER] [varchar] (10) NULL ,
	[EMAILPER] [varchar] (50) NULL ,
	[PLANO] [varchar] (25) NULL ,
	[AUXILIAR] [char] (10) NULL ,
	[EVENTUAL] [char] (1) NULL ,
	[CODCC] [char] (8) NULL ,
	[FOPAPER] [char] (10) NULL ,
	[KOENDP] [char] (13) NULL ,
	[SUENDP] [char] (10) NULL ,
	[CUENTA] [char] (30) NULL ,
	[TIPOCTA] [int] NULL ,
	[MEDIOPAGO] [char] (10) NULL ,
	[FINIQUI] [char] (1) NULL ,
	[EMPRESA] [char] (2) NULL ,
	[ESMINIMO] [char] (1) NULL ,
	[CLAMINREEM] [char] (10) NULL ,
	[KOCOMIREEM] [char] (10) NULL ,
	[VALREEM] [char] (150) NULL ,
	[NROCONAPVI] [char] (20) NULL ,
	[NROCONAPVC] [char] (20) NULL ,
	[NRORUTAPV] [char] (10) NULL ,
	[NRODVAPV] [char] (1) NULL ,
	[APEPATAPV] [char] (30) NULL ,
	[APEMATAPV] [char] (30) NULL ,
	[NOMBREAPV] [char] (30) NULL ,
	[IDSUCEMPL] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RPERSED] (
	[KOPER] [char] (13) NOT NULL ,
	[NREG] [char] (12) NOT NULL ,
	[CLASE] [char] (10) NOT NULL ,
	[KOCO] [char] (10) NOT NULL ,
	[NOKOCO] [varchar] (50) NULL ,
	[FECHAINI] [datetime] NULL ,
	[FECHAFIN] [datetime] NULL ,
	[VALPRIN] [varchar] (150) NULL ,
	[VALAUX1] [varchar] (150) NULL ,
	[VALAUX2] [varchar] (150) NULL ,
	[VALAUX3] [varchar] (150) NULL ,
	[VALDESCRIP] [varchar] (50) NULL ,
	[CODCC] [char] (8) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[IMPONIBLE] [bit] NOT NULL ,
	[TRIBUTABLE] [bit] NOT NULL ,
	[APPATER] [varchar] (20) NULL ,
	[APMATER] [varchar] (20) NULL ,
	[NOMBRES] [varchar] (25) NULL ,
	[FNACIM] [datetime] NULL ,
	[ORDEN] [float] NULL ,
	[CONTAB1] [char] (8) NULL ,
	[SUBAUXI1] [char] (13) NULL ,
	[CONTAB2] [char] (8) NULL ,
	[SUBAUXI2] [char] (13) NULL ,
	[CONTAB3] [char] (8) NULL ,
	[SUBAUXI3] [char] (13) NULL ,
	[DEBEHABE] [char] (1) NULL ,
	[DEBEHABE1] [char] (1) NULL ,
	[DEBEHABE2] [char] (1) NULL ,
	[DEBEHABE3] [char] (1) NULL ,
	[PORTAB] [int] NOT NULL ,
	[KOTAB] [char] (10) NULL ,
	[NCOLVALOR] [int] NULL ,
	[VALACCETAB] [varchar] (150) NULL ,
	[PORTABDES] [int] NULL ,
	[KOTABDES] [char] (10) NULL ,
	[NCOLVALDES] [int] NULL ,
	[EVENTUAL] [char] (1) NULL ,
	[DECIMAL] [int] NULL ,
	[DECIMAL1] [int] NULL ,
	[DECIMAL2] [int] NULL ,
	[DECIMAL3] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RPROCESO] (
	[NPROCESO] [char] (10) NOT NULL ,
	[FIPROCESO] [datetime] NULL ,
	[FTPROCESO] [datetime] NULL ,
	[ESTADO] [char] (1) NOT NULL ,
	[OBPROCESO] [varchar] (50) NULL ,
	[FACTOR1] [float] NULL ,
	[FACTOR2] [float] NULL ,
	[FACTOR3] [float] NULL ,
	[FACTOR4] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RTABLASD] (
	[KOTAB] [char] (10) NOT NULL ,
	[NPOS] [int] NOT NULL ,
	[CODIGO] [char] (10) NULL ,
	[FIRANGOTAB] [datetime] NULL ,
	[FFRANGOTAB] [datetime] NULL ,
	[VIRANGOTAB] [float] NULL ,
	[VFRANGOTAB] [float] NULL ,
	[VALTABDES] [varchar] (30) NULL ,
	[VALTAB1] [float] NULL ,
	[VALTAB2] [float] NULL ,
	[COMENTARIO] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RTABLASE] (
	[KOTAB] [char] (10) NOT NULL ,
	[NOKOTAB] [varchar] (50) NULL ,
	[CAMPOSTAB] [char] (11) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[RVARMES] (
	[NPROCESO] [char] (10) NOT NULL ,
	[VARIABLE] [char] (10) NOT NULL ,
	[VALOR] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[SATAUS] (
	[KOUS] [char] (3) NOT NULL ,
	[SATELITE] [varchar] (11) NULL ,
	[PARAMETROS] [varchar] (150) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[STARREAL] (
	[SATELITE] [char] (11) NULL ,
	[LLAVE] [varchar] (50) NULL ,
	[KOUS] [varchar] (3) NULL ,
	[FECHA] [datetime] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABACTUS] (
	[KOFU] [char] (3) NOT NULL ,
	[KOFUAUTO] [char] (3) NULL ,
	[KOOP] [char] (8) NULL ,
	[FECHA] [datetime] NULL ,
	[HORAGRAB] [int] NULL ,
	[ACCION] [varchar] (1000) NULL ,
	[SEMILLA] [int] IDENTITY (1, 1) NOT NULL ,
	[IPPIDE] [char] (20) NULL ,
	[IPOTORGA] [char] (20) NULL ,
	[VERSION] [char] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABADPRE] (
	[PERIODO] [char] (4) NOT NULL ,
	[KOPRESU] [char] (10) NOT NULL ,
	[NOKOPRESU] [varchar] (50) NULL ,
	[TPRESU] [char] (1) NULL ,
	[KOLTPRE] [char] (8) NULL ,
	[MATERIA] [char] (10) NULL ,
	[PROYECTO] [char] (10) NULL ,
	[ENVALBRUTO] [bit] NOT NULL ,
	[SEGUNFEPAG] [bit] NOT NULL ,
	[TIMODO] [char] (1) NULL ,
	[MODO] [char] (3) NULL ,
	[EMPRESAS] [char] (20) NULL ,
	[ANOMESINI] [char] (6) NULL ,
	[ANOMESFIN] [char] (6) NULL ,
	[MONAUTPAG] [float] NULL ,
	[BLOQUEADO] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABBO] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[KOFUBO] [char] (3) NULL ,
	[NOKOBO] [varchar] (30) NULL ,
	[DIBO] [varchar] (30) NULL ,
	[FOBO] [varchar] (20) NULL ,
	[NOEXPLOSI] [bit] NOT NULL ,
	[SINLOTE] [bit] NOT NULL ,
	[SINUBIC] [bit] NOT NULL ,
	[BUSCAUBIC] [char] (1) NULL ,
	[TIPOBODE] [char] (1) NULL ,
	[CAPCARKG] [float] NULL ,
	[CAPCARLT] [float] NULL ,
	[KOENBODE] [char] (13) NULL ,
	[KOPA] [char] (3) NULL ,
	[KOMR] [char] (20) NULL ,
	[MODELO] [char] (20) NULL ,
	[FFABRIC] [datetime] NULL ,
	[NROMOTOR] [char] (25) NULL ,
	[TIPOCOMBUS] [char] (20) NULL ,
	[COLOR] [char] (20) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABBOPR] (
	[KOPR] [char] (13) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[STMIPR] [float] NULL ,
	[STMAPR] [float] NULL ,
	[DATOSUBIC] [varchar] (20) NULL ,
	[VESAPR] [float] NULL ,
	[FIVESAPR] [datetime] NULL ,
	[FTVESAPR] [datetime] NULL ,
	[CATOVESAPR] [float] NULL ,
	[STOCKASEG] [bit] NOT NULL ,
	[ECUTPOREP] [varchar] (242) NULL ,
	[ECUCANPER] [varchar] (242) NULL ,
	[ECUVELSAL] [varchar] (242) NULL ,
	[ECUSTMIN] [varchar] (242) NULL ,
	[ECUSTMAX] [varchar] (242) NULL ,
	[TDISTRIINT] [float] NULL ,
	[BLOQBOPR] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCARAC] (
	[KOTABLA] [char] (10) NOT NULL ,
	[NOKOTABLA] [varchar] (50) NULL ,
	[KOCARAC] [char] (10) NOT NULL ,
	[NOKOCARAC] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCARAE] (
	[KOTABLA] [char] (10) NOT NULL ,
	[NOKOTABLA] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCFG] (
	[LLAVE] [int] NOT NULL ,
	[SERIE] [char] (20) NULL ,
	[RAZON] [char] (40) NULL ,
	[RUT] [char] (13) NULL ,
	[NCORTO] [char] (20) NULL ,
	[DIRECCION] [char] (40) NULL ,
	[CIUDAD] [char] (20) NULL ,
	[PAIS] [char] (10) NULL ,
	[TELEFONOS] [char] (23) NULL ,
	[GIRO] [char] (40) NULL ,
	[LLAVE1] [int] NULL ,
	[LLAVE2] [int] NULL ,
	[LLAVE3] [int] NULL ,
	[SUPERVISOR] [char] (5) NULL ,
	[IVAPAIS] [int] NULL ,
	[MRESTO] [char] (15) NULL ,
	[LLAVE4] [int] NULL ,
	[REGISTRO] [varchar] (1000) NULL ,
	[LLAVE5] [int] NULL ,
	[LLAVE6] [int] NULL ,
	[LLAVE7] [int] NULL ,
	[METODOPPP] [char] (1) NULL ,
	[DOCINTPPP] [bit] NOT NULL ,
	[NUMBASE] [float] NULL ,
	[NUMVERSION] [float] NULL ,
	[CADENA] [char] (500) NOT NULL ,
	[FCREACION] [datetime] NULL ,
	[FULTMODIF] [datetime] NULL ,
	[OBSERVAC] [varchar] (1000) NULL ,
	[FEXPIRAC] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCI] (
	[KOPA] [char] (3) NOT NULL ,
	[KOCI] [char] (3) NOT NULL ,
	[NOKOCI] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCJ] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOCJ] [char] (2) NOT NULL ,
	[NOKOCJ] [varchar] (30) NULL ,
	[KOFUCJ] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCM] (
	[KOPA] [char] (3) NOT NULL ,
	[KOCI] [char] (3) NOT NULL ,
	[KOCM] [char] (3) NOT NULL ,
	[NOKOCM] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCODAL] (
	[KOPRAL] [char] (21) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[NOKOPRAL] [varchar] (50) NOT NULL ,
	[KOEN] [char] (13) NOT NULL ,
	[NMARCA] [char] (1) NULL ,
	[CANTMINCOM] [float] NULL ,
	[MULTDECOM] [float] NULL ,
	[KOPRAL2] [char] (21) NULL ,
	[KOPRAL3] [char] (21) NULL ,
	[KOPRAL4] [char] (21) NULL ,
	[KOPRAL5] [char] (21) NULL ,
	[AUX01] [varchar] (21) NULL ,
	[AUX02] [varchar] (21) NULL ,
	[AUX03] [varchar] (21) NULL ,
	[AUX04] [varchar] (21) NULL ,
	[AUX05] [varchar] (21) NULL ,
	[AUX06] [varchar] (21) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCT] (
	[TICT] [char] (1) NULL ,
	[KOCT] [char] (13) NOT NULL ,
	[NOKOCT] [varchar] (50) NULL ,
	[POIVCT] [float] NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[CONTABVTA] [char] (8) NULL ,
	[SUBAUXIVTA] [char] (13) NULL ,
	[RECAPRRE] [bit] NOT NULL ,
	[POCT] [float] NULL ,
	[ECUCT] [varchar] (80) NULL ,
	[COLEGCT] [char] (5) NULL ,
	[APLICACION] [char] (30) NULL ,
	[VALIPRESU] [bit] NOT NULL ,
	[BLOQUEADO] [bit] NOT NULL ,
	[PROVCOM] [char] (8) NULL ,
	[SUBPROVCOM] [char] (13) NULL ,
	[COVENCT] [char] (8) NULL ,
	[SUBCOVENCT] [char] (13) NULL ,
	[BASECAPRRE] [char] (10) NULL ,
	[SIPAGOEF] [bit] NOT NULL ,
	[SIPAGOCH] [bit] NOT NULL ,
	[SIPAGOTJ] [bit] NOT NULL ,
	[SIPAGOTJEN] [bit] NOT NULL ,
	[KOENDP] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABCTAEM] (
	[EMPRESA] [char] (2) NOT NULL ,
	[CTACTEEM] [char] (16) NOT NULL ,
	[NOCTACTEEM] [char] (25) NULL ,
	[KOENCTA] [char] (13) NULL ,
	[SUENCTA] [char] (3) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[TIMO] [char] (1) NULL ,
	[KOMO] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABDEFBAR] (
	[DEFBAR] [char] (10) NOT NULL ,
	[DESCRIPCIO] [varchar] (50) NOT NULL ,
	[TEXTO] [varchar] (100) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABDPCE] (
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDP] [char] (3) NULL ,
	[NUDP] [char] (10) NULL ,
	[ENDP] [char] (13) NOT NULL ,
	[EMDP] [char] (13) NULL ,
	[SUEMDP] [char] (3) NULL ,
	[CUDP] [char] (16) NULL ,
	[NUCUDP] [char] (8) NULL ,
	[FEEMDP] [datetime] NULL ,
	[FEVEDP] [datetime] NULL ,
	[MODP] [char] (3) NULL ,
	[TIMODP] [char] (1) NULL ,
	[TAMODP] [float] NULL ,
	[VADP] [float] NULL ,
	[VAABDP] [float] NULL ,
	[VAASDP] [float] NULL ,
	[VAVUDP] [float] NULL ,
	[ESASDP] [char] (1) NULL ,
	[ESPGDP] [char] (1) NULL ,
	[SUREDP] [char] (3) NULL ,
	[CJREDP] [char] (2) NULL ,
	[KOFUDP] [char] (3) NULL ,
	[KOTNDP] [char] (13) NULL ,
	[SUTNDP] [char] (3) NULL ,
	[NUTRANSMI] [char] (13) NULL ,
	[NUCOCO] [char] (10) NULL ,
	[KOTU] [char] (1) NULL ,
	[REFANTI] [varchar] (80) NULL ,
	[DOCUENANTI] [char] (13) NULL ,
	[IMDP] [char] (1) NULL ,
	[NULICO] [char] (5) NULL ,
	[PERIODO] [char] (4) NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[KOENDOSO] [char] (13) NULL ,
	[NOENDOSO] [varchar] (50) NULL ,
	[NUVISA] [char] (10) NULL ,
	[KOVISADOR] [char] (13) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABENDP] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOENDP] [char] (13) NOT NULL ,
	[SUENDP] [char] (3) NOT NULL ,
	[TIDPEN] [char] (2) NOT NULL ,
	[KOTEENDP] [char] (20) NULL ,
	[NOKOENDP] [varchar] (30) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[CONTABVTA] [char] (8) NULL ,
	[SUBAUXIVTA] [char] (13) NULL ,
	[CTACTE] [varchar] (16) NULL ,
	[KOENDPPIA] [char] (2) NULL ,
	[NUCHLT] [char] (10) NULL ,
	[NUCHLTINI] [char] (10) NULL ,
	[CMESAP] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABENPRE] (
	[PERIODO] [char] (4) NULL ,
	[KOPRESU] [varchar] (10) NULL ,
	[NOKOPRESU] [varchar] (50) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABEP] (
	[TIDO] [varchar] (3) NOT NULL ,
	[AMDO] [varchar] (1) NOT NULL ,
	[KOEP] [varchar] (80) NOT NULL ,
	[NOEP] [varchar] (50) NOT NULL ,
	[FTEP] [varchar] (100) NOT NULL ,
	[PIEP] [varchar] (1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABFM] (
	[KOFM] [char] (4) NOT NULL ,
	[NOKOFM] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABFU] (
	[IDTABFU] [int] IDENTITY (1, 1) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[NOKOFU] [char] (30) NOT NULL ,
	[TIFU] [char] (3) NOT NULL ,
	[RTFU] [char] (13) NOT NULL ,
	[CIFU] [char] (3) NOT NULL ,
	[CMFU] [char] (3) NOT NULL ,
	[DIFU] [char] (30) NOT NULL ,
	[FOFU] [char] (8) NOT NULL ,
	[PWFU] [char] (25) NOT NULL ,
	[PLANO] [varchar] (25) NOT NULL ,
	[KOFUAUTO] [char] (3) NOT NULL ,
	[KOOP] [char] (8) NOT NULL ,
	[TEMA] [varchar] (150) NOT NULL ,
	[OTORGA] [char] (11) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[MODALIDAD] [char] (5) NOT NULL ,
	[INACTIVO] [bit] NOT NULL ,
	[KOTABLA] [char] (10) NOT NULL ,
	[KOCARAC] [char] (10) NOT NULL ,
	[EMAIL] [varchar] (80) NOT NULL ,
	[PARAFIRMA] [char] (1) NOT NULL ,
	[CODEXTERN] [varchar] (80) NOT NULL ,
	[PERCONTACT] [char] (4) NOT NULL ,
	[EMAILSUP] [varchar] (80) NULL ,
	[NROCOMU] [int] NULL ,
	[REGACTIV] [bit] NOT NULL ,
	[CLAVEEXPI] [bit] NOT NULL ,
	[DIASEXPI] [int] NULL ,
	[FECHEXPI] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABFUEM] (
	[KOFU] [char] (3) NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[CONTROL] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABFUGD] (
	[KOGRU] [char] (15) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[ORDEN] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABFUGE] (
	[KOGRU] [char] (15) NOT NULL ,
	[NOKOGRU] [varchar] (50) NULL ,
	[KOFUJEFE] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABGRUEN] (
	[KOENFCC] [char] (13) NOT NULL ,
	[KOENOCC] [char] (13) NOT NULL ,
	[SUENFCC] [char] (10) NULL ,
	[SUENOCC] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABHF] (
	[KOFM] [char] (4) NOT NULL ,
	[KOPF] [char] (4) NOT NULL ,
	[KOHF] [char] (4) NOT NULL ,
	[NOKOHF] [varchar] (30) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABIM] (
	[KOIM] [char] (13) NOT NULL ,
	[NOKOIM] [varchar] (50) NULL ,
	[POIM] [float] NULL ,
	[MEIM] [varchar] (50) NULL ,
	[CONTAB] [char] (8) NULL ,
	[SUBAUXI] [char] (13) NULL ,
	[CONTABVTA] [char] (8) NULL ,
	[SUBAUXIVTA] [char] (13) NULL ,
	[KOIMSII] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABIMPFE] (
	[KOIM] [char] (13) NOT NULL ,
	[FECHIM] [datetime] NOT NULL ,
	[VALORIM] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABIMPR] (
	[KOPR] [char] (13) NOT NULL ,
	[KOIM] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABINFO] (
	[PROCESO] [char] (10) NOT NULL ,
	[NOMBRE] [char] (30) NOT NULL ,
	[CAMPO] [char] (30) NULL ,
	[TOTAL] [bit] NOT NULL ,
	[CONTROL] [bit] NOT NULL ,
	[CONTENIDO] [varchar] (100) NULL ,
	[ORDEN] [float] NULL ,
	[SEMILLA] [numeric](18, 0) IDENTITY (1, 1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABITPRE] (
	[IDTABITPRE] [int] IDENTITY (1, 1) NOT NULL ,
	[KOPRESU] [char] (10) NOT NULL ,
	[APRESU] [char] (20) NOT NULL ,
	[BPRESU] [char] (20) NOT NULL ,
	[CPRESU] [char] (20) NOT NULL ,
	[NPRESU] [int] NULL ,
	[TPRESU] [char] (1) NULL ,
	[NDPRESU] [char] (1) NULL ,
	[NUDEPRO] [float] NULL ,
	[TDEPOR] [float] NULL ,
	[TDEVAL] [float] NULL ,
	[PTOTAL] [float] NULL ,
	[RTOTAL] [float] NULL ,
	[TVALPRESU] [float] NULL ,
	[TVALREAL] [float] NULL ,
	[TAUX1] [float] NULL ,
	[TAUX2] [float] NULL ,
	[NOAPRESU] [varchar] (25) NULL ,
	[NOBPRESU] [varchar] (25) NULL ,
	[NOCPRESU] [varchar] (25) NULL ,
	[KOFUOCCVAL] [char] (15) NULL ,
	[KOFUOCCAU1] [char] (15) NULL ,
	[KOFUOCCAU2] [char] (15) NULL ,
	[KOFUOCCAU3] [char] (15) NULL ,
	[TIPOVAL] [char] (1) NULL ,
	[IDNIVELSUP] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABKOPRE] (
	[PERIODO] [char] (4) NOT NULL ,
	[ELEMENTO] [char] (13) NOT NULL ,
	[KOPRESU] [char] (10) NOT NULL ,
	[APRESU] [char] (20) NOT NULL ,
	[BPRESU] [char] (20) NOT NULL ,
	[CPRESU] [char] (20) NOT NULL ,
	[LCUENTA] [bit] NOT NULL ,
	[FACTOR] [float] NULL ,
	[PRECIO] [float] NULL ,
	[KOFUOCCVAL] [char] (3) NULL ,
	[KOFUOCCAU1] [char] (15) NULL ,
	[KOFUOCCAU2] [char] (15) NULL ,
	[KOFUOCCAU3] [char] (15) NULL ,
	[IDTABITPRE] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABLOTES] (
	[IDTABLOTES] [numeric](18, 0) IDENTITY (1, 1) NOT NULL ,
	[NULOTE] [char] (15) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[FCRELOTE] [datetime] NULL ,
	[FVENLOTE] [datetime] NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NULL ,
	[NUDO] [char] (10) NULL ,
	[ENDO] [char] (13) NULL ,
	[SUDO] [char] (3) NULL ,
	[KOSU] [char] (3) NULL ,
	[KOBO] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABLUG] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NULL ,
	[LUVT] [char] (8) NOT NULL ,
	[NOLUVT] [varchar] (30) NULL ,
	[EMPRESAS] [char] (200) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMEN] (
	[IDTABMEN] [int] IDENTITY (1, 1) NOT NULL ,
	[REDACTOR] [char] (3) NOT NULL ,
	[FECHCRE] [datetime] NOT NULL ,
	[HORACRE] [int] NOT NULL ,
	[TIPOMENSA] [char] (10) NOT NULL ,
	[ASUNTO] [varchar] (50) NULL ,
	[ESREGAGEND] [bit] NOT NULL ,
	[FECHAGENDA] [datetime] NULL ,
	[HORIAGENDA] [int] NULL ,
	[HORTAGENDA] [int] NULL ,
	[HORAAVISO] [int] NULL ,
	[ESTAAVISO] [char] (1) NULL ,
	[TEXTO] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMETAS] (
	[PERIODO] [char] (4) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[NOKOFU] [varchar] (50) NULL ,
	[ENERO] [float] NULL ,
	[FEBRERO] [float] NULL ,
	[MARZO] [float] NULL ,
	[ABRIL] [float] NULL ,
	[MAYO] [float] NULL ,
	[JUNIO] [float] NULL ,
	[JULIO] [float] NULL ,
	[AGOSTO] [float] NULL ,
	[SEPTIEMBRE] [float] NULL ,
	[OCTUBRE] [float] NULL ,
	[NOVIEMBRE] [float] NULL ,
	[DICIEMBRE] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMO] (
	[KOMO] [char] (3) NOT NULL ,
	[TIMO] [char] (1) NULL ,
	[NOKOMO] [varchar] (30) NULL ,
	[VAMO] [float] NULL ,
	[FEMO] [datetime] NULL ,
	[FACOMOAN] [float] NULL ,
	[FACOMO1S] [float] NULL ,
	[FACOMO2S] [float] NULL ,
	[VAMOCOM] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMODE] (
	[TIPR] [char] (3) NULL ,
	[KOMODE] [char] (13) NOT NULL ,
	[NOKOMODE] [varchar] (50) NULL ,
	[FUKOPR] [char] (242) NULL ,
	[FUNOKOPR] [char] (242) NULL ,
	[UD01PR] [char] (2) NULL ,
	[UD02PR] [char] (2) NULL ,
	[RLUD] [char] (242) NULL ,
	[POIVPR] [float] NULL ,
	[NUIMPR] [float] NULL ,
	[RGPR] [char] (1) NULL ,
	[MRPR] [char] (20) NULL ,
	[RUPR] [char] (3) NULL ,
	[FMPR] [char] (4) NULL ,
	[PFPR] [char] (4) NULL ,
	[HFPR] [char] (4) NULL ,
	[PLANO] [varchar] (25) NULL ,
	[TRATALOTE] [bit] NOT NULL ,
	[DIVISIBLE] [char] (1) NULL ,
	[NMARCA] [char] (1) NULL ,
	[PRECIOS] [varchar] (200) NULL ,
	[BODEGAS] [varchar] (200) NULL ,
	[IMPUESTOS] [varchar] (200) NULL ,
	[ATPR] [char] (3) NULL ,
	[LISCOSTO] [char] (8) NULL ,
	[STOCKASEG] [bit] NOT NULL ,
	[CLALIBPR] [char] (10) NULL ,
	[KOGE] [char] (13) NULL ,
	[PRRG] [bit] NOT NULL ,
	[CONUBIC] [bit] NOT NULL ,
	[LTSUBIC] [float] NULL ,
	[PESOUBIC] [float] NULL ,
	[FUNCLOTE] [char] (1) NULL ,
	[FUNCPRECIO] [varchar] (242) NULL ,
	[OTRASVAR] [char] (242) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMR] (
	[KOMR] [char] (20) NOT NULL ,
	[NOKOMR] [varchar] (30) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABMULP] (
	[MODALIDAD] [varchar] (5) NOT NULL ,
	[TIDO] [varchar] (3) NOT NULL ,
	[MULTIPLES] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABNOFAVO] (
	[KOFU] [char] (3) NOT NULL ,
	[TABLA] [char] (8) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPA] (
	[KOPA] [char] (3) NOT NULL ,
	[NOKOPA] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPERMISO] (
	[IDPERMISO] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[NULIDO] [char] (5) NULL ,
	[USUARIO0] [char] (3) NULL ,
	[ESTADO0] [char] (2) NULL ,
	[FECHA0] [datetime] NULL ,
	[HORA0] [char] (5) NULL ,
	[PERMISOS] [int] NOT NULL ,
	[USUARIO1] [char] (3) NULL ,
	[ESTADO1] [char] (2) NULL ,
	[MENSAJE1] [varchar] (50) NULL ,
	[FECHA1] [datetime] NULL ,
	[HORA1] [char] (5) NULL ,
	[USUARIO2] [char] (3) NULL ,
	[ESTADO2] [char] (2) NULL ,
	[MENSAJE2] [varchar] (50) NULL ,
	[FECHA2] [datetime] NULL ,
	[HORA2] [char] (5) NULL ,
	[USUARIO3] [char] (3) NULL ,
	[ESTADO3] [char] (2) NULL ,
	[MENSAJE3] [varchar] (50) NULL ,
	[FECHA3] [datetime] NULL ,
	[HORA3] [char] (5) NULL ,
	[USUARIO4] [char] (3) NULL ,
	[ESTADO4] [char] (2) NULL ,
	[MENSAJE4] [varchar] (50) NULL ,
	[FECHA4] [datetime] NULL ,
	[HORA4] [char] (5) NULL ,
	[USUARIO5] [char] (3) NULL ,
	[ESTADO5] [char] (2) NULL ,
	[MENSAJE5] [varchar] (50) NULL ,
	[FECHA5] [datetime] NULL ,
	[HORA5] [char] (5) NULL ,
	[TIPOPERMI] [char] (5) NULL ,
	[ENVIOS1] [int] NULL ,
	[ENVIOS2] [int] NULL ,
	[ENVIOS3] [int] NULL ,
	[ENVIOS4] [int] NULL ,
	[ENVIOS5] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPF] (
	[KOFM] [char] (4) NOT NULL ,
	[KOPF] [char] (4) NOT NULL ,
	[NOKOPF] [varchar] (30) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPLACA] (
	[PLACA] [char] (10) NOT NULL ,
	[DESCRIP] [varchar] (50) NULL ,
	[KOENRESP] [char] (13) NOT NULL ,
	[SUENRESP] [char] (10) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPLCR] (
	[KOPLCR] [char] (3) NOT NULL ,
	[NOKOPLCR] [varchar] (30) NULL ,
	[NOFUAP] [char] (10) NULL ,
	[CONVENIO] [char] (13) NULL ,
	[CUOTAS] [float] NULL ,
	[INTERES] [float] NULL ,
	[TIPOINT] [float] NULL ,
	[DOCUMENTO] [char] (3) NULL ,
	[MODIFICAR] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPP] (
	[TILT] [char] (1) NOT NULL ,
	[KOLT] [char] (3) NOT NULL ,
	[MELT] [char] (1) NULL ,
	[MOLT] [char] (3) NULL ,
	[TIMOLT] [char] (1) NULL ,
	[NOKOLT] [varchar] (30) NULL ,
	[FEVI] [datetime] NULL ,
	[OPERA] [varchar] (120) NULL ,
	[ECUDEF01UD] [char] (242) NULL ,
	[ECUDEF02UD] [char] (242) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABPRE] (
	[KOLT] [char] (3) NOT NULL ,
	[KOPR] [char] (13) NOT NULL ,
	[KOPRRA] [char] (6) NOT NULL ,
	[KOPRTE] [char] (20) NOT NULL ,
	[FEVI] [datetime] NULL ,
	[ECUACION] [varchar] (242) NULL ,
	[RLUD] [float] NULL ,
	[PP01UD] [float] NULL ,
	[MG01UD] [float] NULL ,
	[DTMA01UD] [float] NULL ,
	[PP02UD] [float] NULL ,
	[MG02UD] [float] NULL ,
	[DTMA02UD] [float] NULL ,
	[PPUL01] [float] NULL ,
	[PPUL02] [float] NULL ,
	[PM01] [float] NULL ,
	[PM02] [float] NULL ,
	[C_INSUMOS] [float] NULL ,
	[C_MAQUINAS] [float] NULL ,
	[C_M_OBRA] [float] NULL ,
	[C_FABRIC] [float] NULL ,
	[C_COMPRA] [float] NULL ,
	[C_LIBRE] [float] NULL ,
	[ECUACIONU2] [varchar] (242) NULL ,
	[EMG01UD] [varchar] (242) NULL ,
	[EMG02UD] [varchar] (242) NULL ,
	[EDTMA01UD] [varchar] (242) NULL ,
	[EDTMA02UD] [varchar] (242) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABRECPR] (
	[KOPR] [char] (13) NOT NULL ,
	[RECARGO] [float] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABREMOT] (
	[KOFU] [char] (3) NOT NULL ,
	[NUREMOT] [char] (10) NOT NULL ,
	[NOKOFU] [varchar] (30) NULL ,
	[KOFUAUTO] [char] (3) NULL ,
	[KOOP] [char] (8) NULL ,
	[TEMA] [varchar] (150) NULL ,
	[OTORGA] [char] (11) NULL ,
	[NUDOKASI] [int] NULL ,
	[KOEN] [char] (13) NULL ,
	[NOKOEN] [varchar] (50) NULL ,
	[VABRDO] [float] NULL ,
	[NIVEL] [char] (1) NULL ,
	[REGDDO] [char] (5) NULL ,
	[IPPIDE] [char] (20) NULL ,
	[IPOTORGA] [char] (20) NULL ,
	[VALORSUP] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABREMP] (
	[KOPR] [char] (13) NOT NULL ,
	[KOPRREM] [char] (13) NOT NULL ,
	[POSICION] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABRETI] (
	[KORETI] [char] (13) NOT NULL ,
	[RURETI] [char] (13) NULL ,
	[NORETI] [varchar] (50) NULL ,
	[DIRETI] [varchar] (50) NULL ,
	[PARETI] [char] (3) NULL ,
	[CIRETI] [char] (3) NULL ,
	[CMRETI] [char] (3) NULL ,
	[RETCLI] [bit] NOT NULL ,
	[KOENRESP] [char] (13) NULL ,
	[SUENRESP] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABRU] (
	[KORU] [char] (3) NOT NULL ,
	[NOKORU] [varchar] (30) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABRUTAD] (
	[CODRUTA] [char] (13) NOT NULL ,
	[NREG] [char] (5) NULL ,
	[ARCHIDESTI] [char] (8) NULL ,
	[KOZO] [char] (3) NULL ,
	[IDMAEEN] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABRUTAE] (
	[CODRUTA] [char] (13) NOT NULL ,
	[NOMRUTA] [varchar] (50) NULL ,
	[FECHRUTA] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABSELEC] (
	[IDTABSELEC] [int] IDENTITY (1, 1) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[TIPO] [char] (1) NOT NULL ,
	[AREA] [char] (10) NULL ,
	[DESCRIPCIO] [varchar] (50) NULL ,
	[CONSULTA] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABSU] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOFUSU] [char] (3) NULL ,
	[NOKOSU] [varchar] (30) NULL ,
	[CISU] [char] (3) NULL ,
	[CMSU] [char] (3) NULL ,
	[DISU] [varchar] (50) NULL ,
	[FOSU] [varchar] (20) NULL ,
	[IVADIFSU] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABSUPRE] (
	[PERIODO] [char] (4) NOT NULL ,
	[GRANCUE] [char] (2) NOT NULL ,
	[MAYOR] [char] (3) NOT NULL ,
	[CUENTA] [char] (3) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[KOPRESU] [char] (10) NULL ,
	[APRESU] [char] (10) NULL ,
	[BPRESU] [char] (10) NULL ,
	[CPRESU] [char] (10) NULL ,
	[LCUENTA] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABTIDO] (
	[NUTIDO] [float] NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NOTIDO] [varchar] (30) NULL ,
	[TIGEDO] [char] (1) NULL ,
	[LFORMATO] [bit] NOT NULL ,
	[FECHA] [datetime] NULL ,
	[NUEMRO] [float] NULL ,
	[MEARDO] [char] (1) NULL ,
	[FICO] [int] NULL ,
	[FIAD] [int] NULL ,
	[PERMISOS] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABTIPRE] (
	[KOENPR] [varchar] (3) NULL ,
	[KOTIPR] [varchar] (3) NULL ,
	[NOKOTI] [varchar] (50) NULL ,
	[ESINGRESO] [varchar] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABTN] (
	[TITN] [char] (1) NOT NULL ,
	[KOTN] [char] (13) NOT NULL ,
	[SUTN] [char] (3) NOT NULL ,
	[NOTN] [varchar] (30) NULL ,
	[KOTNPIA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABTR] (
	[KOTR] [varchar] (13) NOT NULL ,
	[NOKOTR] [varchar] (50) NULL ,
	[PATR] [varchar] (3) NULL ,
	[CITR] [varchar] (3) NULL ,
	[CMTR] [varchar] (3) NULL ,
	[DITR] [varchar] (30) NULL ,
	[RTTR] [varchar] (13) NULL ,
	[FOTR] [varchar] (20) NULL ,
	[FATR] [varchar] (20) NULL ,
	[NOVH] [varchar] (30) NULL ,
	[PCVH] [varchar] (9) NOT NULL ,
	[TOVH] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABTURNO] (
	[EMPRESA] [char] (2) NOT NULL ,
	[KOTU] [char] (1) NOT NULL ,
	[HITU] [float] NULL ,
	[HTTU] [float] NULL ,
	[NOKOTU] [varchar] (30) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABUSER] (
	[IP] [char] (20) NOT NULL ,
	[SISTEMA] [char] (20) NOT NULL ,
	[FECHA] [datetime] NOT NULL ,
	[ESTADO] [char] (1) NULL ,
	[VALOR] [float] NULL ,
	[EMPRESA] [char] (2) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABVISBUE] (
	[IDPERMI] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRST] [char] (8) NOT NULL ,
	[IDRST] [int] NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[FECHA] [datetime] NOT NULL ,
	[HORA] [int] NOT NULL ,
	[VISTOBUENO] [bit] NOT NULL ,
	[VALIDADOR] [varchar] (100) NULL ,
	[IPOTORGA] [varchar] (20) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TABZO] (
	[KOZO] [char] (3) NOT NULL ,
	[NOKOZO] [varchar] (25) NULL ,
	[DESP_LUN] [char] (1) NULL ,
	[DESP_MAR] [char] (1) NULL ,
	[DESP_MIE] [char] (1) NULL ,
	[DESP_JUE] [char] (1) NULL ,
	[DESP_VIE] [char] (1) NULL ,
	[DESP_SAB] [char] (1) NULL ,
	[DESP_DOM] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TACTUAL] (
	[QUEARRE] [char] (10) NULL ,
	[FECHA] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TALERT] (
	[KOALERT] [char] (30) NOT NULL ,
	[NOKOALERT] [char] (100) NOT NULL ,
	[DESCALERT] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[TBULTOS] (
	[IDBULTOS] [int] IDENTITY (1, 1) NOT NULL ,
	[ARCHIRST] [char] (8) NULL ,
	[IDRST] [int] NULL ,
	[BULTO] [char] (10) NULL ,
	[PESOBULTO] [float] NULL ,
	[FBULTO] [datetime] NULL ,
	[CANTIDAD] [float] NULL ,
	[IDDDO] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TCANALES] (
	[KOCANAL] [char] (15) NOT NULL ,
	[NOCANAL] [char] (50) NOT NULL ,
	[KOFUCANAL] [char] (3) NOT NULL ,
	[EMPRESA] [char] (3) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TCAUDET] (
	[KOCAUDET] [char] (10) NOT NULL ,
	[NOCAUDET] [varchar] (30) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TCOLEGPR] (
	[COLEGPR] [char] (5) NOT NULL ,
	[NOCOLEGPR] [varchar] (50) NULL ,
	[PRETIVASI] [float] NULL ,
	[MRETIVASI] [float] NULL ,
	[PRETIVANI] [float] NULL ,
	[MRETIVANI] [float] NULL ,
	[PRETIBBSI] [float] NULL ,
	[MRETIBBSI] [float] NULL ,
	[PRETIBBNI] [float] NULL ,
	[MRETIBBNI] [float] NULL ,
	[PRETGANSI] [float] NULL ,
	[MRETGANSI] [float] NULL ,
	[PRETGANNI] [float] NULL ,
	[MRETGANNI] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TCONPREM] (
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[CODPREM] [char] (13) NULL ,
	[NOKOPREM] [varchar] (50) NULL ,
	[RUTCONTACT] [char] (13) NULL ,
	[FECHA] [datetime] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TCONTROL] (
	[KOFU] [char] (3) NOT NULL ,
	[INFO] [char] (10) NOT NULL ,
	[DESCRIPCION] [varchar] (100) NULL ,
	[TIPO] [char] (1) NULL ,
	[MIPOS] [int] NULL ,
	[NPOS1] [int] NULL ,
	[NPOS2] [int] NULL ,
	[NWHERE] [int] NULL ,
	[CREACION] [datetime] NULL ,
	[MODIFICACION] [datetime] NULL ,
	[AUTOR] [varchar] (50) NULL ,
	[NREG] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TFILTROS] (
	[IDFILTRO] [int] IDENTITY (1, 1) NOT NULL ,
	[MAESTRO] [char] (10) NOT NULL ,
	[TITULO] [varchar] (50) NULL ,
	[CONTENIDO] [varchar] (250) NULL ,
	[AUTOR] [char] (10) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TFUALERT] (
	[IDMALERT] [int] NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[VIASENVIO] [char] (1) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TINFORD] (
	[EMPREKOFU] [char] (2) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[INFO] [char] (10) NOT NULL ,
	[TIPO] [char] (1) NULL ,
	[NOMBRE] [varchar] (50) NULL ,
	[TITULO] [varchar] (50) NULL ,
	[PICTURE] [varchar] (50) NULL ,
	[TIPOCAMPO] [char] (1) NULL ,
	[LARGOCAMPO] [numeric](18, 0) NULL ,
	[DECIMCAMPO] [numeric](18, 0) NULL ,
	[ORDEN] [char] (1) NULL ,
	[NIVEL1] [numeric](18, 0) NULL ,
	[NIVEL2] [numeric](18, 0) NULL ,
	[NIVEL3] [numeric](18, 0) NULL ,
	[NREG] [numeric](18, 0) NULL ,
	[TOTALIZAR] [bit] NOT NULL ,
	[CORTE] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TINFORE] (
	[EMPREKOFU] [char] (2) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[INFO] [char] (10) NOT NULL ,
	[DESCRIPCION] [varchar] (100) NOT NULL ,
	[AUTOR] [varchar] (50) NULL ,
	[LASELECT] [varchar] (1000) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TMAEBUL] (
	[KOEN] [char] (13) NOT NULL ,
	[BULTO] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TMESCERR] (
	[EMPRESA] [char] (2) NOT NULL ,
	[PERIODO] [char] (6) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TMETROS] (
	[FILA] [int] NOT NULL ,
	[COLU] [int] NOT NULL ,
	[METRO] [int] NOT NULL ,
	[EMPRESA] [char] (2) NOT NULL ,
	[KOSU] [char] (3) NOT NULL ,
	[KOBO] [char] (3) NOT NULL ,
	[NOMETRO] [char] (20) NULL ,
	[LEJANIA] [int] NULL ,
	[PRODIFPER] [int] NULL ,
	[LTSN1] [float] NULL ,
	[LTSN2] [float] NULL ,
	[LTSN3] [float] NULL ,
	[LTSN4] [float] NULL ,
	[LTSN5] [float] NULL ,
	[LTSN6] [float] NULL ,
	[MULTI1] [char] (1) NULL ,
	[MULTI2] [char] (1) NULL ,
	[MULTI3] [char] (1) NULL ,
	[MULTI4] [char] (1) NULL ,
	[MULTI5] [char] (1) NULL ,
	[MULTI6] [char] (1) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TNEGADOS] (
	[EMPRESA] [char] (2) NOT NULL ,
	[TIDO] [char] (3) NOT NULL ,
	[NUDO] [char] (10) NOT NULL ,
	[ENDO] [char] (13) NOT NULL ,
	[SUENDO] [char] (3) NOT NULL ,
	[SULIDO] [char] (3) NOT NULL ,
	[FEEMDO] [datetime] NOT NULL ,
	[LUVTLIDO] [char] (8) NOT NULL ,
	[BOSULIDO] [char] (3) NOT NULL ,
	[KOFUDO] [char] (3) NOT NULL ,
	[KOPRCT] [char] (13) NOT NULL ,
	[UDTRPR] [float] NOT NULL ,
	[CAPRCO1] [float] NOT NULL ,
	[CAPRCO2] [float] NOT NULL ,
	[NOKOPR] [varchar] (50) NOT NULL ,
	[INFORMADO] [char] (1) NOT NULL ,
	[HORAGRAB] [int] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TPRECTA] (
	[EMPRESA] [char] (2) NOT NULL ,
	[IDTABITPRE] [int] NOT NULL ,
	[CONTAB] [char] (8) NOT NULL ,
	[SUBAUXI] [char] (13) NOT NULL ,
	[CONTABVTA] [char] (8) NOT NULL ,
	[SUBAUXIVTA] [char] (13) NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TPREMIOS] (
	[CODPREM] [char] (13) NOT NULL ,
	[NOKOPREM] [varchar] (50) NULL ,
	[VALOR] [float] NULL ,
	[CANTIDAD] [float] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TPROYECT] (
	[PROYECTO] [char] (10) NULL ,
	[NOPROYECTO] [char] (25) NULL ,
	[EMPRESAS] [char] (20) NULL ,
	[KOPRESU] [char] (10) NULL ,
	[RAZON] [char] (50) NULL ,
	[FANTASIA] [char] (50) NULL ,
	[RUT] [char] (10) NULL ,
	[GIRO] [char] (50) NULL ,
	[DESCRIP] [char] (80) NULL ,
	[FONO] [char] (20) NULL ,
	[LOGO] [char] (100) NULL ,
	[TIPOFONDO] [char] (10) NULL ,
	[FUNCASIG] [char] (3) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TRANMASI] (
	[NUTRANSMI] [varchar] (13) NOT NULL ,
	[NUTRANSMI1] [varchar] (13) NULL ,
	[NUDETRANS] [float] NULL ,
	[FEULEN] [datetime] NULL ,
	[CRM] [bit] NOT NULL ,
	[GESTION] [bit] NOT NULL ,
	[COMPRAS] [bit] NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TRELCON] (
	[CODRELCON] [char] (5) NOT NULL ,
	[FECHA] [datetime] NULL ,
	[HORA] [char] (5) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TSELECT] (
	[EMPREKOFU] [char] (2) NOT NULL ,
	[KOFU] [char] (3) NOT NULL ,
	[INFO] [char] (10) NOT NULL ,
	[LUGAR] [int] NOT NULL ,
	[CAMPO] [varchar] (100) NULL ,
	[NOCAMPO] [varchar] (100) NULL ,
	[TIPO] [int] NULL ,
	[NPOS] [int] NULL ,
	[OPERADOR] [char] (20) NULL ,
	[TEXTOMIPOS] [varchar] (1000) NULL ,
	[NLINEA] [int] NULL ,
	[PARIZQ] [char] (10) NULL ,
	[PARDER] [char] (10) NULL ,
	[NREGI] [int] NULL ,
	[NREGJ] [int] NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TTABLASD] (
	[TABLA] [char] (8) NOT NULL ,
	[ORDEN] [int] NOT NULL ,
	[CAMPO] [char] (10) NULL ,
	[TIPO] [char] (10) NULL ,
	[LARGO] [int] NULL ,
	[NOCAMPO] [char] (75) NULL ,
	[DESCRIPCIO] [varchar] (2500) NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[TTABLASE] (
	[TABLA] [char] (8) NOT NULL ,
	[APARICION] [int] NULL ,
	[NIVEL] [int] NULL ,
	[NOMTABLA] [char] (50) NULL
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[CACTFI] WITH NOCHECK ADD
	CONSTRAINT [PK_CACTFI] PRIMARY KEY  CLUSTERED
	(
		[IDACTFI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CACTFID] WITH NOCHECK ADD
	CONSTRAINT [PK_CACTFID] PRIMARY KEY  CLUSTERED
	(
		[IDACTFID]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCARTOLD] WITH NOCHECK ADD
	CONSTRAINT [PK_CCARTOLD] PRIMARY KEY  CLUSTERED
	(
		[IDCARTOLD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCARTOLE] WITH NOCHECK ADD
	CONSTRAINT [PK_CCARTOLE] PRIMARY KEY  CLUSTERED
	(
		[IDCARTOLE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCOMPRC] WITH NOCHECK ADD
	CONSTRAINT [PK_CCOMPRC] PRIMARY KEY  CLUSTERED
	(
		[IDCOMPRC]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCOMPRD] WITH NOCHECK ADD
	CONSTRAINT [PK_CCOMPRD] PRIMARY KEY  CLUSTERED
	(
		[IDCOMPRD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCOMPRD1] WITH NOCHECK ADD
	CONSTRAINT [PK_CCOMPRD1] PRIMARY KEY  CLUSTERED
	(
		[IDCOMPRD1]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCOMPRE] WITH NOCHECK ADD
	CONSTRAINT [PK_CCOMPRE] PRIMARY KEY  CLUSTERED
	(
		[IDCOMPRE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCTAFJEF] WITH NOCHECK ADD
	CONSTRAINT [PK_CCTAFJEF] PRIMARY KEY  CLUSTERED
	(
		[CTAFJEF]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCUENEMP] WITH NOCHECK ADD
	CONSTRAINT [PK_CCUENEMP] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[PERIODO],
		[GRANCUE],
		[MAYOR],
		[CUENTA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CCUENTAS] WITH NOCHECK ADD
	CONSTRAINT [PK_CCUENTAS] PRIMARY KEY  CLUSTERED
	(
		[PERIODO],
		[GRANCUE],
		[MAYOR],
		[CUENTA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CDOCCOD] WITH NOCHECK ADD
	CONSTRAINT [PK_CDOCCOD] PRIMARY KEY  CLUSTERED
	(
		[IDDOCCOD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CDOCCOE] WITH NOCHECK ADD
	CONSTRAINT [PK_CDOCCOE] PRIMARY KEY  CLUSTERED
	(
		[IDDOCCOE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CFORMCON] WITH NOCHECK ADD
	CONSTRAINT [PK_CFORMCOM] PRIMARY KEY  CLUSTERED
	(
		[KOFORMU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CGRANCUE] WITH NOCHECK ADD
	CONSTRAINT [PK_CGRANCUE] PRIMARY KEY  CLUSTERED
	(
		[PERIODO],
		[GRANCUE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CGRFJEF] WITH NOCHECK ADD
	CONSTRAINT [PK_CGRFJEF] PRIMARY KEY  CLUSTERED
	(
		[GRFJEF]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CMAYOR] WITH NOCHECK ADD
	CONSTRAINT [PK_CMAYOR] PRIMARY KEY  CLUSTERED
	(
		[PERIODO],
		[GRANCUE],
		[MAYOR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CONFICON] WITH NOCHECK ADD
	CONSTRAINT [PK_CONFICON] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[PERIODO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CONFIEST] WITH NOCHECK ADD
	CONSTRAINT [PK_CONFIEST] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[MODALIDAD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CONFIGP] WITH NOCHECK ADD
	CONSTRAINT [PK_CONFIGP] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CPARAMIE] WITH NOCHECK ADD
	CONSTRAINT [PK_CPARAMIE] PRIMARY KEY  CLUSTERED
	(
		[NOMBRE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CPRESUP] WITH NOCHECK ADD
	CONSTRAINT [PK_CPRESUP] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[PERIODO],
		[KOPRESU],
		[APRESU],
		[BPRESU],
		[CPRESU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CSUBAUXI] WITH NOCHECK ADD
	CONSTRAINT [PK_CSUBAUXI] PRIMARY KEY  CLUSTERED
	(
		[PERIODO],
		[GRANCUE],
		[MAYOR],
		[CUENTA],
		[SUBAUXI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[CTABIPC] WITH NOCHECK ADD
	CONSTRAINT [PK_CTABIPC] PRIMARY KEY  CLUSTERED
	(
		[FECHAIPC]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[DETADPRE] WITH NOCHECK ADD
	CONSTRAINT [PK_DETADPRE] PRIMARY KEY  CLUSTERED
	(
		[IDDETADPRE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[EMAEACT] WITH NOCHECK ADD
	CONSTRAINT [PK_EMAEACT] PRIMARY KEY  CLUSTERED
	(
		[IDMAEACT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[EMAEDEST] WITH NOCHECK ADD
	CONSTRAINT [PK_EMAEDEST] PRIMARY KEY  CLUSTERED
	(
		[IDMAEDEST]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[EMAELINK] WITH NOCHECK ADD
	CONSTRAINT [PK_EMAELINK] PRIMARY KEY  CLUSTERED
	(
		[IDMAELINK]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[EMAEMEN] WITH NOCHECK ADD
	CONSTRAINT [PK_EMAEMEN] PRIMARY KEY  CLUSTERED
	(
		[IDMAEMEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[ETABACT] WITH NOCHECK ADD
	CONSTRAINT [PK_ETABACT] PRIMARY KEY  CLUSTERED
	(
		[KOACT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FCORREO] WITH NOCHECK ADD
	CONSTRAINT [PK_FCORREO] PRIMARY KEY  CLUSTERED
	(
		[IDCORREO]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAEDTE] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAEDTE] PRIMARY KEY  CLUSTERED
	(
		[IDDTE]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAEPETD] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAEPETD] PRIMARY KEY  CLUSTERED
	(
		[IDPETD]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAEPETE] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAEPETE] PRIMARY KEY  CLUSTERED
	(
		[IDPET]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAERESD] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAERESD] PRIMARY KEY  CLUSTERED
	(
		[IDRESD]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAESRD] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAESRD] PRIMARY KEY  CLUSTERED
	(
		[IDSRD]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FMAESRE] WITH NOCHECK ADD
	CONSTRAINT [PK_FMAESRE] PRIMARY KEY  CLUSTERED
	(
		[IDSRE]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[FPASODT] WITH NOCHECK ADD
	CONSTRAINT [PK_FPASODT] PRIMARY KEY  CLUSTERED
	(
		[IDDT]
	) WITH  FILLFACTOR = 60  ON [PRIMARY]
GO

ALTER TABLE [dbo].[KASIEDO] WITH NOCHECK ADD
	CONSTRAINT [PK_KASIEDO] PRIMARY KEY  CLUSTERED
	(
		[IDMAEEDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[KEVENTO] WITH NOCHECK ADD
	CONSTRAINT [PK_KEVENTO] PRIMARY KEY  CLUSTERED
	(
		[IDEVENTO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDCR] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDCR] PRIMARY KEY  CLUSTERED
	(
		[IDMAEDCR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDDO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDDO] PRIMARY KEY  CLUSTERED
	(
		[IDMAEDDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDFT] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDFT] PRIMARY KEY  CLUSTERED
	(
		[TIDO],
		[AMDO],
		[FFCE],
		[CCCE],
		[EMDP],
		[KOFOR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDPCD] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDPCD] PRIMARY KEY  CLUSTERED
	(
		[IDMAEDPCD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDPCE] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDPCE] PRIMARY KEY  CLUSTERED
	(
		[IDMAEDPCE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEDRES] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEDRES] PRIMARY KEY  CLUSTERED
	(
		[CODIGO],
		[NREG]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEEDO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEEDO] PRIMARY KEY  CLUSTERED
	(
		[IDMAEEDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEEDOOB] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEEDOOB] PRIMARY KEY  CLUSTERED
	(
		[IDMAEEDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEEFT] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEEFT] PRIMARY KEY  CLUSTERED
	(
		[TIDO],
		[EMDP],
		[KOFOR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEELOTE] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEELOTE] PRIMARY KEY  CLUSTERED
	(
		[NULOTE],
		[SUBLOTE],
		[KOPR],
		[EMPRESA],
		[KOSU],
		[KOBO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEEN] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEEN] PRIMARY KEY  CLUSTERED
	(
		[KOEN],
		[SUEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEENCTA] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEENCTA] PRIMARY KEY  CLUSTERED
	(
		[KOEN],
		[TIPOPAGO],
		[EMISOR],
		[CUENTA],
		[SUCURSAL]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEENFOR] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEENFOR] PRIMARY KEY  CLUSTERED
	(
		[KOEN],
		[TIDO],
		[KOFOR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEENOBS] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEENOBS] PRIMARY KEY  CLUSTERED
	(
		[SEMILLA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEENPRO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEENPRO] PRIMARY KEY  CLUSTERED
	(
		[KOEN],
		[SUEN],
		[PROYECTO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEERES] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEERES] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEETIQ] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEETIQ] PRIMARY KEY  CLUSTERED
	(
		[IDETIQ]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEFICHA] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEFICHA] PRIMARY KEY  CLUSTERED
	(
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEFICHD] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEFICHD] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[SEMILLA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEIMLI] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEIMLI] PRIMARY KEY  CLUSTERED
	(
		[IDMAEIMLI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAELIFO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAELIFO] PRIMARY KEY  CLUSTERED
	(
		[SEMILLA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEMEN] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEMEN] PRIMARY KEY  CLUSTERED
	(
		[IDMAEMEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEMO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEMO] PRIMARY KEY  CLUSTERED
	(
		[IDMAEMO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEMOADU] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEMOADU] PRIMARY KEY  CLUSTERED
	(
		[KOMO],
		[PERIODO],
		[MES]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEOFERD] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEOFERD] PRIMARY KEY  CLUSTERED
	(
		[CODIGO],
		[NREG]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEOFERE] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEOFERE] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEOP] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEOP] PRIMARY KEY  CLUSTERED
	(
		[KOOP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEPOSLI] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEPOSLI] PRIMARY KEY  CLUSTERED
	(
		[IDPOSLI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEPOSST] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEPOSST] PRIMARY KEY  CLUSTERED
	(
		[KOBOFILA],
		[KOBOCOLU],
		[KOBONIVEL],
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEPR] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEPR] PRIMARY KEY  CLUSTERED
	(
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEPREM] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEPREM] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEPROBS] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEPROBS] PRIMARY KEY  CLUSTERED
	(
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAESERIE] WITH NOCHECK ADD
	CONSTRAINT [PK_MAESERIE] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[NUSEPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEST] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEST] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOSU],
		[KOBO],
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAETRANS] WITH NOCHECK ADD
	CONSTRAINT [PK_MAETRANS] PRIMARY KEY  CLUSTERED
	(
		[NUTRANSMI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEUS] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEUS] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOUS],
		[KOOP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEVEN] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEVEN] PRIMARY KEY  CLUSTERED
	(
		[IDMAEVEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MCODBAR] WITH NOCHECK ADD
	CONSTRAINT [PK_MCODBAR] PRIMARY KEY  CLUSTERED
	(
		[IDMCODBAR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MEVENTO] WITH NOCHECK ADD
	CONSTRAINT [PK_MEVENTO] PRIMARY KEY  CLUSTERED
	(
		[IDEVENTO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MTEXTOS] WITH NOCHECK ADD
	CONSTRAINT [PK_MTEXTOS] PRIMARY KEY  CLUSTERED
	(
		[ARCHIRST],
		[IDRST],
		[TEMA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PASPD] WITH NOCHECK ADD
	CONSTRAINT [PK_PASPD] PRIMARY KEY  CLUSTERED
	(
		[NUASP],
		[NUMOT],
		[NREGOTL],
		[DESDE],
		[NUMECOTI],
		[ENDO],
		[NREGCOT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PASPE] WITH NOCHECK ADD
	CONSTRAINT [PK_PASPE] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[NUASP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PCALEN] WITH NOCHECK ADD
	CONSTRAINT [PK_PCALEN] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[NDIA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PCOMODI] WITH NOCHECK ADD
	CONSTRAINT [PK_PCOMODI] PRIMARY KEY  CLUSTERED
	(
		[KOCOMO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDATFAE] WITH NOCHECK ADD
	CONSTRAINT [PK_PDATFAE] PRIMARY KEY  CLUSTERED
	(
		[IDPDATFAE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDATODC] WITH NOCHECK ADD
	CONSTRAINT [PK_PDATODC] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[NUMDF],
		[NREGODC]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDATTAD] WITH NOCHECK ADD
	CONSTRAINT [PK_PDATTAD] PRIMARY KEY  CLUSTERED
	(
		[IDPDATTAD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDATTAE] WITH NOCHECK ADD
	CONSTRAINT [PK_PDATTAE] PRIMARY KEY  CLUSTERED
	(
		[IDPDATTAE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDIMCAR] WITH NOCHECK ADD
	CONSTRAINT [PK_PDIMCAR] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDIMCLI] WITH NOCHECK ADD
	CONSTRAINT [PK_PDIMCLI] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDIMEN] WITH NOCHECK ADD
	CONSTRAINT [PK_PDIMEN] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PDIMOT] WITH NOCHECK ADD
	CONSTRAINT [PK_PDIMOT] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[NUMOT],
		[NREGOTL]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PETAPAS] WITH NOCHECK ADD
	CONSTRAINT [PK_PETAPAS] PRIMARY KEY  CLUSTERED
	(
		[KOETAPA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PHDMAQ] WITH NOCHECK ADD
	CONSTRAINT [PK_PHDMAQ] PRIMARY KEY  CLUSTERED
	(
		[CODMAQ],
		[NUMDETEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PJORTRAD] WITH NOCHECK ADD
	CONSTRAINT [PK_PJORTRAD] PRIMARY KEY  CLUSTERED
	(
		[KOJORNADA],
		[DIASEMANA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PJORTRAE] WITH NOCHECK ADD
	CONSTRAINT [PK_PJORTRAE] PRIMARY KEY  CLUSTERED
	(
		[KOJORNADA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PMAEOB] WITH NOCHECK ADD
	CONSTRAINT [PK_PMAEOB] PRIMARY KEY  CLUSTERED
	(
		[CODIGOOB]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PMAQALT] WITH NOCHECK ADD
	CONSTRAINT [PK_PMAQALT] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[CODMAQPR],
		[CODMAQAL]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PMAQUI] WITH NOCHECK ADD
	CONSTRAINT [PK_PMAQUI] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[CODMAQ]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNOMDIM] WITH NOCHECK ADD
	CONSTRAINT [PK_PNOMDIM] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNPA] WITH NOCHECK ADD
	CONSTRAINT [PK_PNPA] PRIMARY KEY  CLUSTERED
	(
		[CODIGO],
		[NREG],
		[ELEMENTO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNPD] WITH NOCHECK ADD
	CONSTRAINT [PK_PNPD] PRIMARY KEY  CLUSTERED
	(
		[CODIGO],
		[NREG]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNPE] WITH NOCHECK ADD
	CONSTRAINT [PK_PNPE] PRIMARY KEY  CLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POBREFAD] WITH NOCHECK ADD
	CONSTRAINT [PK_POBREFAD] PRIMARY KEY  CLUSTERED
	(
		[IDOBREFAD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PODCD] WITH NOCHECK ADD
	CONSTRAINT [PK_PODCD] PRIMARY KEY  CLUSTERED
	(
		[IDPODCD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PODCE] WITH NOCHECK ADD
	CONSTRAINT [PK_PODCE] PRIMARY KEY  CLUSTERED
	(
		[IDPODCE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POPER] WITH NOCHECK ADD
	CONSTRAINT [PK_POPER] PRIMARY KEY  CLUSTERED
	(
		[OPERACION]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTD] WITH NOCHECK ADD
	CONSTRAINT [PK_POTD] PRIMARY KEY  CLUSTERED
	(
		[IDPOTD]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTE] WITH NOCHECK ADD
	CONSTRAINT [PK_POTE] PRIMARY KEY  CLUSTERED
	(
		[IDPOTE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTL] WITH NOCHECK ADD
	CONSTRAINT [PK_POTL] PRIMARY KEY  CLUSTERED
	(
		[IDPOTL]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTLCOM] WITH NOCHECK ADD
	CONSTRAINT [PK_POTLCOM] PRIMARY KEY  CLUSTERED
	(
		[IDPOTLCOM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTPR] WITH NOCHECK ADD
	CONSTRAINT [PK_POTPR] PRIMARY KEY  CLUSTERED
	(
		[IDPOTPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POTPRTA] WITH NOCHECK ADD
	CONSTRAINT [PK_POTPRTA] PRIMARY KEY  CLUSTERED
	(
		[IDPOTPRTA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PPLANE] WITH NOCHECK ADD
	CONSTRAINT [PK_PPLANE] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[NUMPLAN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PPLANOS] WITH NOCHECK ADD
	CONSTRAINT [PK_PPLANOS] PRIMARY KEY  CLUSTERED
	(
		[PLANO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PPROTAR] WITH NOCHECK ADD
	CONSTRAINT [PK_PPROTAR] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[TAREA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PPROYED] WITH NOCHECK ADD
	CONSTRAINT [PK_PPROYED] PRIMARY KEY  CLUSTERED
	(
		[KOPROYE],
		[NUETAPA],
		[KOETAPA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PPROYEE] WITH NOCHECK ADD
	CONSTRAINT [PK_PPROYEE] PRIMARY KEY  CLUSTERED
	(
		[KOPROYE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PRELA] WITH NOCHECK ADD
	CONSTRAINT [PK_PRELA] PRIMARY KEY  CLUSTERED
	(
		[CODIGO],
		[CODNOMEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PTAREAS] WITH NOCHECK ADD
	CONSTRAINT [PK_PTAREAS] PRIMARY KEY  CLUSTERED
	(
		[TAREA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PTAROP] WITH NOCHECK ADD
	CONSTRAINT [PK_PTAROP] PRIMARY KEY  CLUSTERED
	(
		[IDPTAROP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PTICKET] WITH NOCHECK ADD
	CONSTRAINT [PK_PTICKET] PRIMARY KEY  CLUSTERED
	(
		[IDPTICKET]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PTIPOOT] WITH NOCHECK ADD
	CONSTRAINT [PK_PTIPOOT] PRIMARY KEY  CLUSTERED
	(
		[TIPOOT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PVELPROP] WITH NOCHECK ADD
	CONSTRAINT [PK_PVELPROP] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[OPERACION]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RIMPUNIC] WITH NOCHECK ADD
	CONSTRAINT [PK_RIMPUNIC] PRIMARY KEY  CLUSTERED
	(
		[FIPROC],
		[FTPROC],
		[KOPER],
		[FOLIO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RLIQUID] WITH NOCHECK ADD
	CONSTRAINT [PK_RLIQUID] PRIMARY KEY  CLUSTERED
	(
		[IDRLIQUID]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RPERSE] WITH NOCHECK ADD
	CONSTRAINT [PK_RPERSE] PRIMARY KEY  CLUSTERED
	(
		[KOPER]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RVARMES] WITH NOCHECK ADD
	CONSTRAINT [PK_RVARMES] PRIMARY KEY  CLUSTERED
	(
		[NPROCESO],
		[VARIABLE]
	) WITH  FILLFACTOR = 90  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABADPRE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABADPRE] PRIMARY KEY  CLUSTERED
	(
		[KOPRESU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABBO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABBO] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOSU],
		[KOBO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABBOPR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABBOPR] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[KOSU],
		[KOBO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCARAC] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCARAC] PRIMARY KEY  CLUSTERED
	(
		[KOTABLA],
		[KOCARAC]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCARAE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCARAE] PRIMARY KEY  CLUSTERED
	(
		[KOTABLA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCI] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCI] PRIMARY KEY  CLUSTERED
	(
		[KOPA],
		[KOCI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCJ] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCJ] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOSU],
		[KOCJ]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCM] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCM] PRIMARY KEY  CLUSTERED
	(
		[KOPA],
		[KOCI],
		[KOCM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCODAL] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCODAL] PRIMARY KEY  CLUSTERED
	(
		[KOPRAL],
		[KOPR],
		[KOEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCT] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCT] PRIMARY KEY  CLUSTERED
	(
		[KOCT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCTAEM] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCTAEM] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[CTACTEEM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABDEFBAR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABDEFBAR] PRIMARY KEY  CLUSTERED
	(
		[DEFBAR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABDPCE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABDPCE] PRIMARY KEY  CLUSTERED
	(
		[TIDO],
		[NUDO],
		[ENDP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABENDP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABENDP] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOENDP],
		[SUENDP],
		[TIDPEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABEP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABEP] PRIMARY KEY  CLUSTERED
	(
		[TIDO],
		[AMDO],
		[KOEP]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABFM] WITH NOCHECK ADD
	CONSTRAINT [PK_TABFM] PRIMARY KEY  CLUSTERED
	(
		[KOFM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABFU] WITH NOCHECK ADD
	CONSTRAINT [PK_TABFU] PRIMARY KEY  CLUSTERED
	(
		[KOFU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABFUEM] WITH NOCHECK ADD
	CONSTRAINT [PK_TABFUEM] PRIMARY KEY  CLUSTERED
	(
		[KOFU],
		[EMPRESA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABFUGD] WITH NOCHECK ADD
	CONSTRAINT [PK_TABFUGD] PRIMARY KEY  CLUSTERED
	(
		[KOGRU],
		[KOFU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABFUGE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABFUGE] PRIMARY KEY  CLUSTERED
	(
		[KOGRU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABHF] WITH NOCHECK ADD
	CONSTRAINT [PK_TABHF] PRIMARY KEY  CLUSTERED
	(
		[KOFM],
		[KOPF],
		[KOHF]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABIM] WITH NOCHECK ADD
	CONSTRAINT [PK_TABIM] PRIMARY KEY  CLUSTERED
	(
		[KOIM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABIMPFE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABIMPFE] PRIMARY KEY  CLUSTERED
	(
		[KOIM],
		[FECHIM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABIMPR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABIMPR] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[KOIM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABINFO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABINFO] PRIMARY KEY  CLUSTERED
	(
		[PROCESO],
		[NOMBRE],
		[SEMILLA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABITPRE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABITPRE] PRIMARY KEY  CLUSTERED
	(
		[IDTABITPRE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABLOTES] WITH NOCHECK ADD
	CONSTRAINT [PK_TABLOTES] PRIMARY KEY  CLUSTERED
	(
		[NULOTE],
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABLUG] WITH NOCHECK ADD
	CONSTRAINT [PK_TABLUG] PRIMARY KEY  CLUSTERED
	(
		[LUVT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMEN] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMEN] PRIMARY KEY  CLUSTERED
	(
		[IDTABMEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMO] PRIMARY KEY  CLUSTERED
	(
		[KOMO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMODE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMODE] PRIMARY KEY  CLUSTERED
	(
		[KOMODE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMR] PRIMARY KEY  CLUSTERED
	(
		[KOMR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMULP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMULP] PRIMARY KEY  CLUSTERED
	(
		[MODALIDAD],
		[TIDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPA] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPA] PRIMARY KEY  CLUSTERED
	(
		[KOPA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPERMISO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPERMISO] PRIMARY KEY  CLUSTERED
	(
		[IDPERMISO]
	) WITH  FILLFACTOR = 90  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPF] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPF] PRIMARY KEY  CLUSTERED
	(
		[KOFM],
		[KOPF]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPLACA] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPLACA] PRIMARY KEY  CLUSTERED
	(
		[PLACA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPLCR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPLCR] PRIMARY KEY  CLUSTERED
	(
		[KOPLCR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPP] PRIMARY KEY  CLUSTERED
	(
		[TILT],
		[KOLT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABPRE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABPRE] PRIMARY KEY  CLUSTERED
	(
		[KOLT],
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABRECPR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABRECPR] PRIMARY KEY  CLUSTERED
	(
		[KOPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABREMOT] WITH NOCHECK ADD
	CONSTRAINT [PK_TABREMOT] PRIMARY KEY  CLUSTERED
	(
		[KOFU],
		[NUREMOT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABREMP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABREMP] PRIMARY KEY  CLUSTERED
	(
		[KOPR],
		[KOPRREM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABRETI] WITH NOCHECK ADD
	CONSTRAINT [PK_TABRETI] PRIMARY KEY  CLUSTERED
	(
		[KORETI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABRU] WITH NOCHECK ADD
	CONSTRAINT [PK_TABRU] PRIMARY KEY  CLUSTERED
	(
		[KORU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABRUTAE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABRUTAE] PRIMARY KEY  CLUSTERED
	(
		[CODRUTA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABSELEC] WITH NOCHECK ADD
	CONSTRAINT [PK_TABSELEC] PRIMARY KEY  CLUSTERED
	(
		[IDTABSELEC]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABSU] WITH NOCHECK ADD
	CONSTRAINT [PK_TABSU] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOSU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABTIDO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABTIDO] PRIMARY KEY  CLUSTERED
	(
		[TIDO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABTN] WITH NOCHECK ADD
	CONSTRAINT [PK_TABTN] PRIMARY KEY  CLUSTERED
	(
		[KOTN],
		[SUTN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABTR] WITH NOCHECK ADD
	CONSTRAINT [PK_TABTR] PRIMARY KEY  CLUSTERED
	(
		[KOTR],
		[PCVH]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABTURNO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABTURNO] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[KOTU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABUSER] WITH NOCHECK ADD
	CONSTRAINT [PK_TABUSER] PRIMARY KEY  CLUSTERED
	(
		[IP],
		[SISTEMA],
		[FECHA]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABVISBUE] WITH NOCHECK ADD
	CONSTRAINT [PK_TABVISBUE] PRIMARY KEY  CLUSTERED
	(
		[IDPERMI]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABZO] WITH NOCHECK ADD
	CONSTRAINT [PK_TABZO] PRIMARY KEY  CLUSTERED
	(
		[KOZO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TBULTOS] WITH NOCHECK ADD
	CONSTRAINT [PK_TBULTOS] PRIMARY KEY  CLUSTERED
	(
		[IDBULTOS]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TCAUDET] WITH NOCHECK ADD
	CONSTRAINT [PK_TCAUDET] PRIMARY KEY  CLUSTERED
	(
		[KOCAUDET]
	) WITH  FILLFACTOR = 90  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TCOLEGPR] WITH NOCHECK ADD
	CONSTRAINT [PK_TCOLEGPR] PRIMARY KEY  CLUSTERED
	(
		[COLEGPR]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TFILTROS] WITH NOCHECK ADD
	CONSTRAINT [PK_TFILTROS] PRIMARY KEY  CLUSTERED
	(
		[IDFILTRO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TMAEBUL] WITH NOCHECK ADD
	CONSTRAINT [PK_TMAEBUL] PRIMARY KEY  CLUSTERED
	(
		[KOEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TMESCERR] WITH NOCHECK ADD
	CONSTRAINT [PK_TMESCERR] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[PERIODO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TMETROS] WITH NOCHECK ADD
	CONSTRAINT [PK_TMETROS] PRIMARY KEY  CLUSTERED
	(
		[FILA],
		[COLU],
		[METRO],
		[EMPRESA],
		[KOSU],
		[KOBO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TPRECTA] WITH NOCHECK ADD
	CONSTRAINT [PK_TPRECTA] PRIMARY KEY  CLUSTERED
	(
		[EMPRESA],
		[IDTABITPRE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TTABLASD] WITH NOCHECK ADD
	CONSTRAINT [PK_TTABLASD] PRIMARY KEY  CLUSTERED
	(
		[TABLA],
		[ORDEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TTABLASE] WITH NOCHECK ADD
	CONSTRAINT [PK_TTABLASE] PRIMARY KEY  CLUSTERED
	(
		[TABLA]
	)  ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_FMAELIBRO] ON [dbo].[FMAELIB]([IDLIBRO]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_FMAERES] ON [dbo].[FMAERESE]([IDRESE]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_MAESOBD] ON [dbo].[FMAESOBD]([IDSOBD]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_FMAESOBE] ON [dbo].[FMAESOBE]([IDSOBE]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_ORBREAL] ON [dbo].[ORBREAL]([KOORB], [LLAVE], [KOUS]) ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_PDATFAD] ON [dbo].[PDATFAD]([IDPDATFAD]) ON [PRIMARY]
GO

 CREATE  CLUSTERED  INDEX [PK_STARREAL] ON [dbo].[STARREAL]([SATELITE], [LLAVE], [KOUS]) ON [PRIMARY]
GO

ALTER TABLE [dbo].[ACUADPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_ACUADPRE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_ACUADPRE_KOPRESU] DEFAULT ('') FOR [KOPRESU],
	CONSTRAINT [DF_ACUADPRE_APRESU] DEFAULT ('') FOR [APRESU],
	CONSTRAINT [DF_ACUADPRE_BPRESU] DEFAULT ('') FOR [BPRESU],
	CONSTRAINT [DF_ACUADPRE_CPRESU] DEFAULT ('') FOR [CPRESU],
	CONSTRAINT [DF_ACUADPRE_NPRESU] DEFAULT (0) FOR [NPRESU],
	CONSTRAINT [DF_ACUADPRE_TPRESU] DEFAULT ('') FOR [TPRESU],
	CONSTRAINT [DF_ACUADPRE_NDPRESU] DEFAULT ('') FOR [NDPRESU],
	CONSTRAINT [DF_ACUADPRE_NUDEPRO] DEFAULT (0) FOR [NUDEPRO],
	CONSTRAINT [DF_ACUADPRE_TDEPOR] DEFAULT (0) FOR [TDEPOR],
	CONSTRAINT [DF_ACUADPRE_TDEVAL] DEFAULT (0) FOR [TDEVAL],
	CONSTRAINT [DF_ACUADPRE_PTOTAL] DEFAULT (0) FOR [PTOTAL],
	CONSTRAINT [DF_ACUADPRE_RTOTAL] DEFAULT (0) FOR [RTOTAL],
	CONSTRAINT [DF_ACUADPRE_P01ENE] DEFAULT (0) FOR [P01ENE],
	CONSTRAINT [DF_ACUADPRE_P02FEB] DEFAULT (0) FOR [P02FEB],
	CONSTRAINT [DF_ACUADPRE_P03MAR] DEFAULT (0) FOR [P03MAR],
	CONSTRAINT [DF_ACUADPRE_P04ABR] DEFAULT (0) FOR [P04ABR],
	CONSTRAINT [DF_ACUADPRE_P05MAY] DEFAULT (0) FOR [P05MAY],
	CONSTRAINT [DF_ACUADPRE_P06JUN] DEFAULT (0) FOR [P06JUN],
	CONSTRAINT [DF_ACUADPRE_P07JUL] DEFAULT (0) FOR [P07JUL],
	CONSTRAINT [DF_ACUADPRE_P08AGO] DEFAULT (0) FOR [P08AGO],
	CONSTRAINT [DF_ACUADPRE_P09SEP] DEFAULT (0) FOR [P09SEP],
	CONSTRAINT [DF_ACUADPRE_P10OCT] DEFAULT (0) FOR [P10OCT],
	CONSTRAINT [DF_ACUADPRE_P11NOV] DEFAULT (0) FOR [P11NOV],
	CONSTRAINT [DF_ACUADPRE_P12DIC] DEFAULT (0) FOR [P12DIC],
	CONSTRAINT [DF_ACUADPRE_R01ENE] DEFAULT (0) FOR [R01ENE],
	CONSTRAINT [DF_ACUADPRE_R02FEB] DEFAULT (0) FOR [R02FEB],
	CONSTRAINT [DF_ACUADPRE_R03MAR] DEFAULT (0) FOR [R03MAR],
	CONSTRAINT [DF_ACUADPRE_R04ABR] DEFAULT (0) FOR [R04ABR],
	CONSTRAINT [DF_ACUADPRE_R05MAY] DEFAULT (0) FOR [R05MAY],
	CONSTRAINT [DF_ACUADPRE_R06JUN] DEFAULT (0) FOR [R06JUN],
	CONSTRAINT [DF_ACUADPRE_R07JUL] DEFAULT (0) FOR [R07JUL],
	CONSTRAINT [DF_ACUADPRE_R08AGO] DEFAULT (0) FOR [R08AGO],
	CONSTRAINT [DF_ACUADPRE_R09SEP] DEFAULT (0) FOR [R09SEP],
	CONSTRAINT [DF_ACUADPRE_R10OCT] DEFAULT (0) FOR [R10OCT],
	CONSTRAINT [DF_ACUADPRE_R11NOV] DEFAULT (0) FOR [R11NOV],
	CONSTRAINT [DF_ACUADPRE_R12DIC] DEFAULT (0) FOR [R12DIC],
	CONSTRAINT [DF_ACUADPRE_NOAPRESU] DEFAULT ('') FOR [NOAPRESU],
	CONSTRAINT [DF_ACUADPRE_NOBPRESU] DEFAULT ('') FOR [NOBPRESU],
	CONSTRAINT [DF_ACUADPRE_NOCPRESU] DEFAULT ('') FOR [NOCPRESU],
	CONSTRAINT [DF_ACUADPRE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_ACUADPRE_KOFUOCCVAL] DEFAULT ('') FOR [KOFUOCCVAL],
	CONSTRAINT [DF_ACUADPRE_KOFUOCCAU1] DEFAULT ('') FOR [KOFUOCCAU1],
	CONSTRAINT [DF_ACUADPRE_KOFUOCCAU2] DEFAULT ('') FOR [KOFUOCCAU2],
	CONSTRAINT [DF_ACUADPRE_KOFUOCCAU3] DEFAULT ('') FOR [KOFUOCCAU3]
GO

ALTER TABLE [dbo].[CACTFI] WITH NOCHECK ADD
	CONSTRAINT [DF_CACTFI_EMPRESA_1] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF__CACTFI__PORLOTE__7CF02BB0] DEFAULT (0) FOR [PORLOTE],
	CONSTRAINT [DF__CACTFI__ARCHIRST__7DE44FE9] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF__CACTFI__IDRST__7ED87422] DEFAULT (0) FOR [IDRST]
GO

ALTER TABLE [dbo].[CACTFID] WITH NOCHECK ADD
	CONSTRAINT [DF__CACTFID__STFIEJ__7FCC985B] DEFAULT (0) FOR [STFIEJ],
	CONSTRAINT [DF_CACTFID_VALAFEJ] DEFAULT (0) FOR [VALAFEJ]
GO

ALTER TABLE [dbo].[CCARTOLD] WITH NOCHECK ADD
	CONSTRAINT [DF_CCARTOLD_IDCARTOLE] DEFAULT (0) FOR [IDCARTOLE],
	CONSTRAINT [DF_CCARTOLD_TIRSCAR] DEFAULT ('') FOR [TIRSCAR],
	CONSTRAINT [DF_CCARTOLD_NURSCAR] DEFAULT ('') FOR [NURSCAR],
	CONSTRAINT [DF_CCARTOLD_ESTALINCAR] DEFAULT ('') FOR [ESTALINCAR],
	CONSTRAINT [DF_CCARTOLD_CARGOS] DEFAULT (0) FOR [CARGOS],
	CONSTRAINT [DF_CCARTOLD_ABONOS] DEFAULT (0) FOR [ABONOS],
	CONSTRAINT [DF_CCARTOLD_GLOSACAR] DEFAULT ('') FOR [GLOSACAR],
	CONSTRAINT [DF_CCARTOLD_ARCHIDSC] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF_CCARTOLD_IDDSC] DEFAULT (0) FOR [IDRST],
	CONSTRAINT [DF_CCARTOLD_IDCOMPRD1] DEFAULT (0) FOR [IDCOMPRD1]
GO

ALTER TABLE [dbo].[CCARTOLE] WITH NOCHECK ADD
	CONSTRAINT [DF_CCARTOLE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CCARTOLE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CCARTOLE_NUCAR] DEFAULT ('') FOR [NUCAR],
	CONSTRAINT [DF_CCARTOLE_CTACTECAR] DEFAULT ('') FOR [CTACTECAR],
	CONSTRAINT [DF_CCARTOLE_CUENTACON] DEFAULT ('') FOR [CUENTACON],
	CONSTRAINT [DF_CCARTOLE_SUBAUXICON] DEFAULT ('') FOR [SUBAUXICON],
	CONSTRAINT [DF_CCARTOLE_TSALDOA] DEFAULT (0) FOR [TSALDOA],
	CONSTRAINT [DF_CCARTOLE_TCARGOS] DEFAULT (0) FOR [TCARGOS],
	CONSTRAINT [DF_CCARTOLE_TABONOS] DEFAULT (0) FOR [TABONOS],
	CONSTRAINT [DF_CCARTOLE_TSALDO] DEFAULT (0) FOR [TSALDO],
	CONSTRAINT [DF_CCARTOLE_ESTADOCAR] DEFAULT ('') FOR [ESTADOCAR]
GO

ALTER TABLE [dbo].[CCOMPRC] WITH NOCHECK ADD
	CONSTRAINT [DF_CCOMPRC_IDCOMPRD] DEFAULT (0) FOR [IDCOMPRD],
	CONSTRAINT [DF_CCOMPRC_TCC] DEFAULT ('') FOR [TCC],
	CONSTRAINT [DF_CCOMPRC_CODCC] DEFAULT ('') FOR [CODCC],
	CONSTRAINT [DF_CCOMPRC_PDCC] DEFAULT (0) FOR [PDCC],
	CONSTRAINT [DF_CCOMPRC_VALOR] DEFAULT (0) FOR [VALOR]
GO

ALTER TABLE [dbo].[CCOMPRD] WITH NOCHECK ADD
	CONSTRAINT [DF_CCOMPRD_IDCOMPRE] DEFAULT (0) FOR [IDCOMPRE],
	CONSTRAINT [DF_CCOMPRD_GRANCUE] DEFAULT ('') FOR [GRANCUE],
	CONSTRAINT [DF_CCOMPRD_MAYOR] DEFAULT ('') FOR [MAYOR],
	CONSTRAINT [DF_CCOMPRD_CUENTA] DEFAULT ('') FOR [CUENTA],
	CONSTRAINT [DF_CCOMPRD_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_CCOMPRD_TCC] DEFAULT ('') FOR [TCC],
	CONSTRAINT [DF_CCOMPRD_GLOSA] DEFAULT ('') FOR [GLOSA],
	CONSTRAINT [DF_CCOMPRD_DEBE] DEFAULT (0) FOR [DEBE],
	CONSTRAINT [DF_CCOMPRD_HABER] DEFAULT (0) FOR [HABER],
	CONSTRAINT [DF_CCOMPRD_ANALISIS] DEFAULT ('') FOR [ANALISIS],
	CONSTRAINT [DF_CCOMPRD_TIENEPRESU] DEFAULT ('') FOR [TIENEPRESU],
	CONSTRAINT [DF_CCOMPRD_CTAFJEF] DEFAULT ('') FOR [CTAFJEF],
	CONSTRAINT [DF_CCOMPRD_GRADODET] DEFAULT ('') FOR [GRADODET],
	CONSTRAINT [DF_CCOMPRD_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_CCOMPRD_IFRS] DEFAULT ('') FOR [IFRS]
GO

ALTER TABLE [dbo].[CCOMPRD1] WITH NOCHECK ADD
	CONSTRAINT [DF_CCOMPRD1_IDCOMPRD] DEFAULT (0) FOR [IDCOMPRD],
	CONSTRAINT [DF_CCOMPRD1_SUBDEBE] DEFAULT (0) FOR [SUBDEBE],
	CONSTRAINT [DF_CCOMPRD1_SUBHABER] DEFAULT (0) FOR [SUBHABER],
	CONSTRAINT [DF_CCOMPRD1_ANALISIS1] DEFAULT ('') FOR [ANALISIS1],
	CONSTRAINT [DF_CCOMPRD1_ARCHIDSC] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF_CCOMPRD1_IDDSC] DEFAULT (0) FOR [IDRST],
	CONSTRAINT [DF_CCOMPRD1_CAMPODSC] DEFAULT ('') FOR [CAMPORST],
	CONSTRAINT [DF_CCOMPRD1_SUBGLOSA] DEFAULT ('') FOR [SUBGLOSA],
	CONSTRAINT [DF_CCOMPRD1_TCAC] DEFAULT (0) FOR [TCAC]
GO

ALTER TABLE [dbo].[CCOMPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_CCOMPRE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CCOMPRE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CCOMPRE_NUMECOM] DEFAULT ('') FOR [NUMECOM],
	CONSTRAINT [DF_CCOMPRE_TIPOCOM] DEFAULT ('') FOR [TIPOCOM],
	CONSTRAINT [DF_CCOMPRE_GLOSACOM] DEFAULT ('') FOR [GLOSACOM],
	CONSTRAINT [DF_CCOMPRE_DEBECOM] DEFAULT (0) FOR [DEBECOM],
	CONSTRAINT [DF_CCOMPRE_HABERCOM] DEFAULT (0) FOR [HABERCOM],
	CONSTRAINT [DF_CCOMPRE_ESTACOM] DEFAULT ('') FOR [ESTACOM],
	CONSTRAINT [DF_CCOMPRE_TASA] DEFAULT (0) FOR [TASA],
	CONSTRAINT [DF_CCOMPRE_KOFUCC] DEFAULT ('') FOR [KOFUCC],
	CONSTRAINT [DF_CCOMPRE_TIPOOP] DEFAULT ('') FOR [TIPOOP],
	CONSTRAINT [DF_CCOMPRE_KOSUGEN] DEFAULT ('') FOR [KOSUGEN],
	CONSTRAINT [DF_CCOMPRE_DEBEIFRS] DEFAULT (0) FOR [DEBEIFRS],
	CONSTRAINT [DF_CCOMPRE_HABERIFRS] DEFAULT (0) FOR [HABERIFRS]
GO

ALTER TABLE [dbo].[CCUENTAS] WITH NOCHECK ADD
	CONSTRAINT [DF_CCUENTAS_PERIODO] DEFAULT ('2006') FOR [PERIODO],
	CONSTRAINT [DF_CCUENTAS_ESBANCO] DEFAULT (0) FOR [ESBANCO],
	CONSTRAINT [DF_CCUENTAS_ESACTFI] DEFAULT (0) FOR [ESACTFI],
	CONSTRAINT [DF_CCUENTAS_ESEXIST] DEFAULT (0) FOR [ESEXIST],
	CONSTRAINT [DF_CCUENTAS_ESFJEF] DEFAULT (0) FOR [ESFJEF],
	CONSTRAINT [DF_CCUENTAS_CONANALISI] DEFAULT (0) FOR [CONANALISI],
	CONSTRAINT [DF_CCUENTAS_CONDESTINO] DEFAULT (0) FOR [CONDESTINO],
	CONSTRAINT [DF_CCUENTAS_ESAJUINF] DEFAULT (0) FOR [ESAJUINF]
GO

ALTER TABLE [dbo].[CDICUEN] WITH NOCHECK ADD
	CONSTRAINT [DF_CDICUEN_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CDICUEN_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CDICUEN_GRANCUE] DEFAULT ('') FOR [GRANCUE],
	CONSTRAINT [DF_CDICUEN_MAYOR] DEFAULT ('') FOR [MAYOR],
	CONSTRAINT [DF_CDICUEN_CUENTA] DEFAULT ('') FOR [CUENTA],
	CONSTRAINT [DF_CDICUEN_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_CDICUEN_CODCC] DEFAULT ('') FOR [CODCC],
	CONSTRAINT [DF_CDICUEN_PDCC] DEFAULT (0) FOR [PDCC]
GO

ALTER TABLE [dbo].[CDIDEST] WITH NOCHECK ADD
	CONSTRAINT [DF_CDIDEST_PERIODO] DEFAULT ('2006') FOR [PERIODO],
	CONSTRAINT [DF_CDIDEST_PORDEBE] DEFAULT ('0') FOR [PORDEBE],
	CONSTRAINT [DF_CDIDEST_PORHABER] DEFAULT ('0') FOR [PORHABER]
GO

ALTER TABLE [dbo].[CDOCCOD] WITH NOCHECK ADD
	CONSTRAINT [DF_CDOCCOD_IDDOCCOE] DEFAULT (0) FOR [IDDOCCOE],
	CONSTRAINT [DF_CDOCCOD_ARCHIDSC] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF_CDOCCOD_IDDSC] DEFAULT (0) FOR [IDRST]
GO

ALTER TABLE [dbo].[CDOCCOE] WITH NOCHECK ADD
	CONSTRAINT [DF_CDOCCOE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CDOCCOE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CDOCCOE_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_CDOCCOE_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_CDOCCOE_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_CDOCCOE_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_CDOCCOE_EMDO] DEFAULT ('') FOR [EMDO],
	CONSTRAINT [DF_CDOCCOE_TIMODO] DEFAULT ('') FOR [TIMODO],
	CONSTRAINT [DF_CDOCCOE_MODO] DEFAULT ('') FOR [MODO],
	CONSTRAINT [DF_CDOCCOE_TAMODO] DEFAULT (0) FOR [TAMODO],
	CONSTRAINT [DF_CDOCCOE_VAMODO] DEFAULT (0) FOR [VAMODO],
	CONSTRAINT [DF_CDOCCOE_VABRDO] DEFAULT (0) FOR [VABRDO],
	CONSTRAINT [DF_CDOCCOE_VAABDO] DEFAULT (0) FOR [VAABDO],
	CONSTRAINT [DF_CDOCCOE_NUVEDO] DEFAULT (0) FOR [NUVEDO],
	CONSTRAINT [DF_CDOCCOE_GLOSA] DEFAULT ('') FOR [GLOSA],
	CONSTRAINT [DF_CDOCCOE_CUDO] DEFAULT ('') FOR [CUDO],
	CONSTRAINT [DF_CDOCCOE_NUCUDO] DEFAULT ('') FOR [NUCUDO],
	CONSTRAINT [DF_CDOCCOE_ESPGDO] DEFAULT ('P') FOR [ESPGDO],
	CONSTRAINT [DF_CDOCCOE_SIMILSISTE] DEFAULT ('') FOR [SIMILSISTE],
	CONSTRAINT [DF_CDOCCOE_KOTNDP] DEFAULT ('') FOR [KOTNDP],
	CONSTRAINT [DF_CDOCCOE_SUTNDP] DEFAULT ('') FOR [SUTNDP]
GO

ALTER TABLE [dbo].[CGRANCUE] WITH NOCHECK ADD
	CONSTRAINT [DF_CGRANCUE_PERIODO] DEFAULT ('2006') FOR [PERIODO]
GO

ALTER TABLE [dbo].[CMAYOR] WITH NOCHECK ADD
	CONSTRAINT [DF_CMAYOR_PERIODO] DEFAULT ('2006') FOR [PERIODO]
GO

ALTER TABLE [dbo].[CNETEOS] WITH NOCHECK ADD
	CONSTRAINT [DF_CNETEOS_IDPRD1ACT] DEFAULT (0) FOR [IDPRD1ACT],
	CONSTRAINT [DF_CNETEOS_IDPRD1PAS] DEFAULT (0) FOR [IDPRD1PAS],
	CONSTRAINT [DF_CNETEOS_NURANALI] DEFAULT ('') FOR [NURANALI],
	CONSTRAINT [DF_CNETEOS_VALOR] DEFAULT (0) FOR [VALOR]
GO

ALTER TABLE [dbo].[CONFICON] WITH NOCHECK ADD
	CONSTRAINT [DF_CONFICON_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CONFICON_CTAIVACOM] DEFAULT ('') FOR [CTAIVACOM],
	CONSTRAINT [DF_CONFICON_SUBIVACOM] DEFAULT ('') FOR [SUBIVACOM],
	CONSTRAINT [DF_CONFICON_CTAIVARET] DEFAULT ('') FOR [CTAIVARET],
	CONSTRAINT [DF_CONFICON_SUBIVARET] DEFAULT ('') FOR [SUBIVARET],
	CONSTRAINT [DF_CONFICON_CTAIVAVTA] DEFAULT ('') FOR [CTAIVAVTA],
	CONSTRAINT [DF_CONFICON_SUBIVAVTA] DEFAULT ('') FOR [SUBIVAVTA],
	CONSTRAINT [DF_CONFICON_CTABLSVTA] DEFAULT ('') FOR [CTABLSVTA],
	CONSTRAINT [DF_CONFICON_SUBBLSVTA] DEFAULT ('') FOR [SUBBLSVTA],
	CONSTRAINT [DF_CONFICON_CTAANTVTA] DEFAULT ('') FOR [CTAANTVTA],
	CONSTRAINT [DF_CONFICON_SUBANTVTA] DEFAULT ('') FOR [SUBANTVTA],
	CONSTRAINT [DF_CONFICON_CTAANTCOM] DEFAULT ('') FOR [CTAANTCOM],
	CONSTRAINT [DF_CONFICON_SUBANTCOM] DEFAULT ('') FOR [SUBANTCOM],
	CONSTRAINT [DF_CONFICON_CTACOSVTA] DEFAULT ('') FOR [CTACOSVTA],
	CONSTRAINT [DF_CONFICON_SUBCOSVTA] DEFAULT ('') FOR [SUBCOSVTA],
	CONSTRAINT [DF_CONFICON_POST_ACTMG] DEFAULT (0) FOR [POST_ACTMG],
	CONSTRAINT [DF_CONFICON_CTAAJUVTA] DEFAULT ('') FOR [CTAAJUVTA],
	CONSTRAINT [DF_CONFICON_SUBAJUVTA] DEFAULT ('') FOR [SUBAJUVTA],
	CONSTRAINT [DF_CONFICON_CTAVUELTO] DEFAULT ('') FOR [CTAVUELTO],
	CONSTRAINT [DF_CONFICON_SUBVUELTO] DEFAULT ('') FOR [SUBVUELTO],
	CONSTRAINT [DF_CONFICON_CTAPERDC] DEFAULT ('') FOR [CTAPERDC],
	CONSTRAINT [DF_CONFICON_SUBPERDC] DEFAULT ('') FOR [SUBPERDC],
	CONSTRAINT [DF_CONFICON_CTAGANDC] DEFAULT ('') FOR [CTAGANDC],
	CONSTRAINT [DF_CONFICON_SUBGANDC] DEFAULT ('') FOR [SUBGANDC],
	CONSTRAINT [DF_CONFICON_CMESES] DEFAULT ('') FOR [CMESES],
	CONSTRAINT [DF_CONFICON_CTAANTINMV] DEFAULT ('') FOR [CTAANTINMV],
	CONSTRAINT [DF_CONFICON_SUBANTINMV] DEFAULT ('') FOR [SUBANTINMV],
	CONSTRAINT [DF_CONFICON_CTAANTINMC] DEFAULT ('') FOR [CTAANTINMC],
	CONSTRAINT [DF_CONFICON_SUBANTINMC] DEFAULT ('') FOR [SUBANTINMC],
	CONSTRAINT [DF__CONFICON__PIDEAU__403B57D4] DEFAULT (0) FOR [PIDEAUT],
	CONSTRAINT [DF__CONFICON__ENDOLA__067995EA] DEFAULT (0) FOR [ENDOLARES]
GO

ALTER TABLE [dbo].[CONFIEST] WITH NOCHECK ADD
	CONSTRAINT [DF_CONFIEST_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CONFIEST_MODALIDAD] DEFAULT ('') FOR [MODALIDAD],
	CONSTRAINT [DF_CONFIEST_ESUCURSAL] DEFAULT ('') FOR [ESUCURSAL],
	CONSTRAINT [DF_CONFIEST_EBODEGA] DEFAULT ('') FOR [EBODEGA],
	CONSTRAINT [DF_CONFIEST_ECAJA] DEFAULT ('') FOR [ECAJA],
	CONSTRAINT [DF_CONFIEST_ELISTAVEN] DEFAULT ('') FOR [ELISTAVEN],
	CONSTRAINT [DF_CONFIEST_NLISTAVEN] DEFAULT ('') FOR [NLISTAVEN],
	CONSTRAINT [DF_CONFIEST_ELISTACOM] DEFAULT ('') FOR [ELISTACOM],
	CONSTRAINT [DF_CONFIEST_NLISTACOM] DEFAULT ('') FOR [NLISTACOM],
	CONSTRAINT [DF_CONFIEST_ELISTAINT] DEFAULT ('') FOR [ELISTAINT],
	CONSTRAINT [DF_CONFIEST_NLISTAINT] DEFAULT ('') FOR [NLISTAINT],
	CONSTRAINT [DF_CONFIEST_EPARALELA] DEFAULT ('') FOR [EPARALELA],
	CONSTRAINT [DF_CONFIEST_NPARALELA] DEFAULT ('') FOR [NPARALELA],
	CONSTRAINT [DF_CONFIEST_ESERIAL] DEFAULT ('') FOR [ESERIAL],
	CONSTRAINT [DF_CONFIEST_NSERIAL] DEFAULT ('') FOR [NSERIAL],
	CONSTRAINT [DF_CONFIEST_EDESFACV] DEFAULT ('') FOR [EDESFACV],
	CONSTRAINT [DF_CONFIEST_EPAGOSV] DEFAULT ('') FOR [EPAGOSV],
	CONSTRAINT [DF_CONFIEST_CRTO] DEFAULT (0) FOR [CRTO],
	CONSTRAINT [DF_CONFIEST_CRSD] DEFAULT (0) FOR [CRSD],
	CONSTRAINT [DF_CONFIEST_CRCH] DEFAULT (0) FOR [CRCH],
	CONSTRAINT [DF_CONFIEST_CRLT] DEFAULT (0) FOR [CRLT],
	CONSTRAINT [DF_CONFIEST_CRPA] DEFAULT (0) FOR [CRPA],
	CONSTRAINT [DF_CONFIEST_POPICR] DEFAULT (0) FOR [POPICR],
	CONSTRAINT [DF_CONFIEST_NUVECR] DEFAULT (0) FOR [NUVECR],
	CONSTRAINT [DF_CONFIEST_DRIVE] DEFAULT ('') FOR [DRIVE],
	CONSTRAINT [DF_CONFIEST_STOCK] DEFAULT ('') FOR [STOCK],
	CONSTRAINT [DF_CONFIEST_NVI] DEFAULT ('') FOR [NVI],
	CONSTRAINT [DF_CONFIEST_NVILSR] DEFAULT ('') FOR [NVILSR],
	CONSTRAINT [DF_CONFIEST_NVV] DEFAULT ('') FOR [NVV],
	CONSTRAINT [DF_CONFIEST_NVVLSR] DEFAULT ('') FOR [NVVLSR],
	CONSTRAINT [DF_CONFIEST_GDI] DEFAULT ('') FOR [GDI],
	CONSTRAINT [DF_CONFIEST_GDILSR] DEFAULT ('') FOR [GDILSR],
	CONSTRAINT [DF_CONFIEST_GDP] DEFAULT ('') FOR [GDP],
	CONSTRAINT [DF_CONFIEST_GDPLSR] DEFAULT ('') FOR [GDPLSR],
	CONSTRAINT [DF_CONFIEST_GDV] DEFAULT ('') FOR [GDV],
	CONSTRAINT [DF_CONFIEST_GDVLSR] DEFAULT ('') FOR [GDVLSR],
	CONSTRAINT [DF_CONFIEST_GDD] DEFAULT ('') FOR [GDD],
	CONSTRAINT [DF_CONFIEST_GDDLSR] DEFAULT ('') FOR [GDDLSR],
	CONSTRAINT [DF_CONFIEST_FCV] DEFAULT ('') FOR [FCV],
	CONSTRAINT [DF_CONFIEST_FCVLSR] DEFAULT ('') FOR [FCVLSR],
	CONSTRAINT [DF_CONFIEST_FDV] DEFAULT ('') FOR [FDV],
	CONSTRAINT [DF_CONFIEST_FDVLSR] DEFAULT ('') FOR [FDVLSR],
	CONSTRAINT [DF_CONFIEST_NCV] DEFAULT ('') FOR [NCV],
	CONSTRAINT [DF_CONFIEST_NCVLSR] DEFAULT ('') FOR [NCVLSR],
	CONSTRAINT [DF_CONFIEST_BLV] DEFAULT ('') FOR [BLV],
	CONSTRAINT [DF_CONFIEST_BLVLSR] DEFAULT ('') FOR [BLVLSR],
	CONSTRAINT [DF_CONFIEST_BSV] DEFAULT ('') FOR [BSV],
	CONSTRAINT [DF_CONFIEST_BSVLSR] DEFAULT ('') FOR [BSVLSR],
	CONSTRAINT [DF_CONFIEST_OCI] DEFAULT ('') FOR [OCI],
	CONSTRAINT [DF_CONFIEST_OCILSR] DEFAULT ('') FOR [OCILSR],
	CONSTRAINT [DF_CONFIEST_GRI] DEFAULT ('') FOR [GRI],
	CONSTRAINT [DF_CONFIEST_GRILSR] DEFAULT ('') FOR [GRILSR],
	CONSTRAINT [DF_CONFIEST_OCC] DEFAULT ('') FOR [OCC],
	CONSTRAINT [DF_CONFIEST_OCCLSR] DEFAULT ('') FOR [OCCLSR],
	CONSTRAINT [DF_CONFIEST_COV] DEFAULT ('') FOR [COV],
	CONSTRAINT [DF_CONFIEST_COVLSR] DEFAULT ('') FOR [COVLSR],
	CONSTRAINT [DF_CONFIEST_GAR] DEFAULT ('') FOR [GAR],
	CONSTRAINT [DF_CONFIEST_GARLSR] DEFAULT ('') FOR [GARLSR],
	CONSTRAINT [DF_CONFIEST_FEV] DEFAULT ('') FOR [FEV],
	CONSTRAINT [DF_CONFIEST_FEVLSR] DEFAULT ('') FOR [FEVLSR],
	CONSTRAINT [DF_CONFIEST_FCT] DEFAULT ('') FOR [FCT],
	CONSTRAINT [DF_CONFIEST_FCTLSR] DEFAULT ('') FOR [FCTLSR],
	CONSTRAINT [DF_CONFIEST_GCL] DEFAULT ('') FOR [GCL],
	CONSTRAINT [DF_CONFIEST_GCLLSR] DEFAULT ('') FOR [GCLLSR],
	CONSTRAINT [DF_CONFIEST_LISTAMARG] DEFAULT ('') FOR [LISTAMARG],
	CONSTRAINT [DF_CONFIEST_TIPOMARGEN] DEFAULT (0) FOR [TIPOMARGEN],
	CONSTRAINT [DF_CONFIEST_CAMBIARESP] DEFAULT (0) FOR [CAMBIARESP],
	CONSTRAINT [DF_CONFIEST_NVIKOFOR] DEFAULT ('') FOR [NVIKOFOR],
	CONSTRAINT [DF_CONFIEST_NVVKOFOR] DEFAULT ('') FOR [NVVKOFOR],
	CONSTRAINT [DF_CONFIEST_GDIKOFOR] DEFAULT ('') FOR [GDIKOFOR],
	CONSTRAINT [DF_CONFIEST_GTIKOFOR] DEFAULT ('') FOR [GTIKOFOR],
	CONSTRAINT [DF_CONFIEST_GDPKOFOR] DEFAULT ('') FOR [GDPKOFOR],
	CONSTRAINT [DF_CONFIEST_GDVKOFOR] DEFAULT ('') FOR [GDVKOFOR],
	CONSTRAINT [DF_CONFIEST_GDDKOFOR] DEFAULT ('') FOR [GDDKOFOR],
	CONSTRAINT [DF_CONFIEST_FCVKOFOR] DEFAULT ('') FOR [FCVKOFOR],
	CONSTRAINT [DF_CONFIEST_FDVKOFOR] DEFAULT ('') FOR [FDVKOFOR],
	CONSTRAINT [DF_CONFIEST_BSVKOFOR] DEFAULT ('') FOR [BSVKOFOR],
	CONSTRAINT [DF_CONFIEST_BLVKOFOR] DEFAULT ('') FOR [BLVKOFOR],
	CONSTRAINT [DF_CONFIEST_NCVKOFOR] DEFAULT ('') FOR [NCVKOFOR],
	CONSTRAINT [DF_CONFIEST_OCIKOFOR] DEFAULT ('') FOR [OCIKOFOR],
	CONSTRAINT [DF_CONFIEST_OCCKOFOR] DEFAULT ('') FOR [OCCKOFOR],
	CONSTRAINT [DF_CONFIEST_GRIKOFOR] DEFAULT ('') FOR [GRIKOFOR],
	CONSTRAINT [DF_CONFIEST_GRPKOFOR] DEFAULT ('') FOR [GRPKOFOR],
	CONSTRAINT [DF_CONFIEST_GRCKOFOR] DEFAULT ('') FOR [GRCKOFOR],
	CONSTRAINT [DF_CONFIEST_GRDKOFOR] DEFAULT ('') FOR [GRDKOFOR],
	CONSTRAINT [DF_CONFIEST_FCCKOFOR] DEFAULT ('') FOR [FCCKOFOR],
	CONSTRAINT [DF_CONFIEST_FDCKOFOR] DEFAULT ('') FOR [FDCKOFOR],
	CONSTRAINT [DF_CONFIEST_BLCKOFOR] DEFAULT ('') FOR [BLCKOFOR],
	CONSTRAINT [DF_CONFIEST_NCCKOFOR] DEFAULT ('') FOR [NCCKOFOR],
	CONSTRAINT [DF_CONFIEST_COVKOFOR] DEFAULT ('') FOR [COVKOFOR],
	CONSTRAINT [DF_CONFIEST_GARKOFOR] DEFAULT ('') FOR [GARKOFOR],
	CONSTRAINT [DF_CONFIEST_FEVKOFOR] DEFAULT ('') FOR [FEVKOFOR],
	CONSTRAINT [DF_CONFIEST_FCTKOFOR] DEFAULT ('') FOR [FCTKOFOR],
	CONSTRAINT [DF_CONFIEST_GCLKOFOR] DEFAULT ('') FOR [GCLKOFOR],
	CONSTRAINT [DF_CONFIEST_NOEVALIST] DEFAULT (0) FOR [NOEVALIST],
	CONSTRAINT [DF_CONFIEST_VERCONSOL] DEFAULT (0) FOR [VERCONSOL],
	CONSTRAINT [DF_CONFIEST_SOLOVERSUC] DEFAULT (0) FOR [SOLOVERSUC],
	CONSTRAINT [DF_CONFIEST_LUVTVEN] DEFAULT ('') FOR [LUVTVEN],
	CONSTRAINT [DF_CONFIEST_LUVTCOM] DEFAULT ('') FOR [LUVTCOM],
	CONSTRAINT [DF_CONFIEST_CONODD] DEFAULT (0) FOR [CONODD],
	CONSTRAINT [DF_CONFIEST_CONOFERTA] DEFAULT (0) FOR [CONOFERTA],
	CONSTRAINT [DF_CONFIEST_RESPXVEND] DEFAULT (0) FOR [RESPXVEND],
	CONSTRAINT [DF_CONFIEST_FABGRIAUT] DEFAULT (0) FOR [FABGRIAUT],
	CONSTRAINT [DF_CONFIEST_FABGDIAUT] DEFAULT (0) FOR [FABGDIAUT],
	CONSTRAINT [DF__CONFIEST__VERTOD__2922E852] DEFAULT (0) FOR [VERTODOST],
	CONSTRAINT [DF_CONFIEST_DIASMAXDOC] DEFAULT (0) FOR [DIASMAXDOC],
	CONSTRAINT [DF_CONFIEST_DIASMAXPAG] DEFAULT (0) FOR [DIASMAXPAG],
	CONSTRAINT [DF__CONFIEST__COBDIA__623C3574] DEFAULT (0) FOR [COBDIADEVA],
	CONSTRAINT [DF_CONFIEST_AVIDIASVEN] DEFAULT (0) FOR [AVIDIASVEN],
	CONSTRAINT [DF__CONFIEST__CUOTAC__05506787] DEFAULT (0) FOR [CUOTACOMER],
	CONSTRAINT [DF_CONFIEST_CUOTACANTI] DEFAULT (0) FOR [CUOTACANTI],
	CONSTRAINT [DF_CONFIEST_TIDOEXCLU] DEFAULT ('') FOR [TIDOEXCLU],
	CONSTRAINT [DF_CONFIEST_FISCONBARR] DEFAULT ('') FOR [FISCONBARR],
	CONSTRAINT [DF__CONFIEST__LIMICH__0209E688] DEFAULT (0) FOR [LIMICHVPTO],
	CONSTRAINT [DF_CONFIEST_MAXICHVPTO] DEFAULT (0) FOR [MAXICHVPTO],
	CONSTRAINT [DF_CONFIEST_KOFUEN] DEFAULT ('') FOR [KOFUEN],
	CONSTRAINT [DF_CONFIEST_COBRADOR] DEFAULT ('') FOR [COBRADOR]
GO

ALTER TABLE [dbo].[CONFIGP] WITH NOCHECK ADD
	CONSTRAINT [DF_CONFIGP_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CONFIGP_SERIE] DEFAULT ('') FOR [SERIE],
	CONSTRAINT [DF_CONFIGP_RAZON] DEFAULT ('') FOR [RAZON],
	CONSTRAINT [DF_CONFIGP_RUT] DEFAULT ('') FOR [RUT],
	CONSTRAINT [DF_CONFIGP_NCORTO] DEFAULT ('') FOR [NCORTO],
	CONSTRAINT [DF_CONFIGP_DIRECCION] DEFAULT ('') FOR [DIRECCION],
	CONSTRAINT [DF_CONFIGP_CIUDAD] DEFAULT ('') FOR [CIUDAD],
	CONSTRAINT [DF_CONFIGP_PAIS] DEFAULT ('') FOR [PAIS],
	CONSTRAINT [DF_CONFIGP_TELEFONOS] DEFAULT ('') FOR [TELEFONOS],
	CONSTRAINT [DF_CONFIGP_GIRO] DEFAULT ('') FOR [GIRO],
	CONSTRAINT [DF_CONFIGP_LLAVE1] DEFAULT (0) FOR [LLAVE1],
	CONSTRAINT [DF_CONFIGP_LLAVE2] DEFAULT (0) FOR [LLAVE2],
	CONSTRAINT [DF_CONFIGP_LLAVE3] DEFAULT (0) FOR [LLAVE3],
	CONSTRAINT [DF_CONFIGP_SUPERVISOR] DEFAULT ('') FOR [SUPERVISOR],
	CONSTRAINT [DF_CONFIGP_IVAPAIS] DEFAULT (0) FOR [IVAPAIS],
	CONSTRAINT [DF_CONFIGP_MRESTO] DEFAULT ('') FOR [MRESTO],
	CONSTRAINT [DF_CONFIGP_REGISTRO] DEFAULT ('') FOR [REGISTRO],
	CONSTRAINT [DF_CONFIGP_METODOPPP] DEFAULT ('') FOR [METODOPPP],
	CONSTRAINT [DF_CONFIGP_DOCINTPPP] DEFAULT (0) FOR [DOCINTPPP],
	CONSTRAINT [DF_CONFIGP_NUMBASE] DEFAULT (0) FOR [NUMBASE],
	CONSTRAINT [DF_CONFIGP_NUMVERSION] DEFAULT (0) FOR [NUMVERSION],
	CONSTRAINT [DF_CONFIGP_CADENA] DEFAULT ('') FOR [CADENA],
	CONSTRAINT [DF_CONFIGP_TIPOMG] DEFAULT (0) FOR [TIPOMG],
	CONSTRAINT [DF_CONFIGP_LLAVE4] DEFAULT (0) FOR [LLAVE4],
	CONSTRAINT [DF_CONFIGP_LLAVE5] DEFAULT (0) FOR [LLAVE5],
	CONSTRAINT [DF_CONFIGP_LLAVE6] DEFAULT (0) FOR [LLAVE6],
	CONSTRAINT [DF_CONFIGP_LLAVE7] DEFAULT (0) FOR [LLAVE7],
	CONSTRAINT [DF_CONFIGP_SUCESTRICT] DEFAULT (0) FOR [SUCESTRICT],
	CONSTRAINT [DF_CONFIGP_GDVAFECRE] DEFAULT (0) FOR [GDVAFECRE],
	CONSTRAINT [DF_CONFIGP_CDOCENLIN] DEFAULT (0) FOR [CDOCENLIN],
	CONSTRAINT [DF_CONFIGP_VERSION] DEFAULT (0) FOR [VERSION],
	CONSTRAINT [DF_CONFIGP_EXCLUGRI] DEFAULT (0) FOR [EXCLUGRI],
	CONSTRAINT [DF_CONFIGP_GRPAFEPPP] DEFAULT (0) FOR [GRPAFEPPP],
	CONSTRAINT [DF_CONFIGP_CTAMULTI] DEFAULT (0) FOR [CTAMULTI],
	CONSTRAINT [DF__CONFIGP__EXENTAI__3B76A2B7] DEFAULT (0) FOR [EXENTAIVA],
	CONSTRAINT [DF__CONFIGP__CONDESP__68C93772] DEFAULT ('') FOR [CONDESPRO],
	CONSTRAINT [DF__CONFIGP__BUSCANB__7252A1AC] DEFAULT ('') FOR [BUSCANBOD],
	CONSTRAINT [DF__CONFIGP__CONVIGC__69534757] DEFAULT ('') FOR [CONVIGCRED],
	CONSTRAINT [DF__CONFIGP__ENTICON__6A476B90] DEFAULT ('') FOR [ENTICONPRO],
	CONSTRAINT [DF__CONFIGP__TRANAFE__59A6EF73] DEFAULT (0) FOR [TRANAFEPPP],
	CONSTRAINT [DF__CONFIGP__REGACTI__6CB9C3E7] DEFAULT (0) FOR [REGACTIV],
	CONSTRAINT [DF__CONFIGP__HORAHHM__51D0C381] DEFAULT (0) FOR [HORAHHMM],
	CONSTRAINT [DF__CONFIGP__NVVAFEC__5D42762D] DEFAULT (0) FOR [NVVAFECRE],
	CONSTRAINT [DF__CONFIGP__GENLIDI__0FCDF5FA] DEFAULT (0) FOR [GENLIDISRE],
	CONSTRAINT [DF__CONFIGP__SEPDESC__10C21A33] DEFAULT (0) FOR [SEPDESCREC],
	CONSTRAINT [DF_CONFIGP_DEUTASADIA] DEFAULT ('') FOR [DEUTASADIA],
	CONSTRAINT [DF__CONFIGP__RAZONAM__5EF5B475] DEFAULT ('') FOR [RAZONAMP],
	CONSTRAINT [DF__CONFIGP__CAUCIEO__6696D63D] DEFAULT (0) FOR [CAUCIEOTOB],
	CONSTRAINT [DF_CONFIGP_PUERTOFTP] DEFAULT ('') FOR [PUERTOFTP],
	CONSTRAINT [DF_CONFIGP_CARPETAFTP] DEFAULT ('') FOR [CARPETAFTP],
	CONSTRAINT [DF_CONFIGP_GIROAMP] DEFAULT ('') FOR [GIROAMP],
	CONSTRAINT [DF_CONFIGP_SUCUAMP] DEFAULT ('') FOR [SUCUAMP],
	CONSTRAINT [DF__CONFIGP__VISARES__04E65333] DEFAULT ('') FOR [VISARESER],
	CONSTRAINT [DF__CONFIGP__ODDREQV__247EFA1D] DEFAULT (0) FOR [ODDREQVB]
GO

ALTER TABLE [dbo].[CPARAMIN] WITH NOCHECK ADD
	CONSTRAINT [DF_CPARAMIN_TOTAL] DEFAULT (0) FOR [TOTAL]
GO

ALTER TABLE [dbo].[CPRESUP] WITH NOCHECK ADD
	CONSTRAINT [DF_CPRESUP_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CPRESUP_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CPRESUP_KOPRESU] DEFAULT ('') FOR [KOPRESU],
	CONSTRAINT [DF_CPRESUP_APRESU] DEFAULT ('') FOR [APRESU],
	CONSTRAINT [DF_CPRESUP_BPRESU] DEFAULT ('') FOR [BPRESU],
	CONSTRAINT [DF_CPRESUP_CPRESU] DEFAULT ('') FOR [CPRESU],
	CONSTRAINT [DF_CPRESUP_CODCC] DEFAULT ('') FOR [CODCC],
	CONSTRAINT [DF_CPRESUP_NPRESU] DEFAULT (0) FOR [NPRESU],
	CONSTRAINT [DF_CPRESUP_TPRESU] DEFAULT ('') FOR [TPRESU],
	CONSTRAINT [DF_CPRESUP_NDPRESU] DEFAULT ('') FOR [NDPRESU],
	CONSTRAINT [DF_CPRESUP_PTOTAL] DEFAULT (0) FOR [PTOTAL],
	CONSTRAINT [DF_CPRESUP_RTOTAL] DEFAULT (0) FOR [RTOTAL],
	CONSTRAINT [DF_CPRESUP_P01ENE] DEFAULT (0) FOR [P01ENE],
	CONSTRAINT [DF_CPRESUP_P02FEB] DEFAULT (0) FOR [P02FEB],
	CONSTRAINT [DF_CPRESUP_P03MAR] DEFAULT (0) FOR [P03MAR],
	CONSTRAINT [DF_CPRESUP_P04ABR] DEFAULT (0) FOR [P04ABR],
	CONSTRAINT [DF_CPRESUP_P05MAY] DEFAULT (0) FOR [P05MAY],
	CONSTRAINT [DF_CPRESUP_P06JUN] DEFAULT (0) FOR [P06JUN],
	CONSTRAINT [DF_CPRESUP_P07JUL] DEFAULT (0) FOR [P07JUL],
	CONSTRAINT [DF_CPRESUP_P08AGO] DEFAULT (0) FOR [P08AGO],
	CONSTRAINT [DF_CPRESUP_P09SEP] DEFAULT (0) FOR [P09SEP],
	CONSTRAINT [DF_CPRESUP_P10OCT] DEFAULT (0) FOR [P10OCT],
	CONSTRAINT [DF_CPRESUP_P11NOV] DEFAULT (0) FOR [P11NOV],
	CONSTRAINT [DF_CPRESUP_P12DIC] DEFAULT (0) FOR [P12DIC],
	CONSTRAINT [DF_CPRESUP_R01ENE] DEFAULT (0) FOR [R01ENE],
	CONSTRAINT [DF_CPRESUP_R02FEB] DEFAULT (0) FOR [R02FEB],
	CONSTRAINT [DF_CPRESUP_R03MAR] DEFAULT (0) FOR [R03MAR],
	CONSTRAINT [DF_CPRESUP_R04ABR] DEFAULT (0) FOR [R04ABR],
	CONSTRAINT [DF_CPRESUP_R05MAY] DEFAULT (0) FOR [R05MAY],
	CONSTRAINT [DF_CPRESUP_R06JUN] DEFAULT (0) FOR [R06JUN],
	CONSTRAINT [DF_CPRESUP_R07JUL] DEFAULT (0) FOR [R07JUL],
	CONSTRAINT [DF_CPRESUP_R08AGO] DEFAULT (0) FOR [R08AGO],
	CONSTRAINT [DF_CPRESUP_R09SEP] DEFAULT (0) FOR [R09SEP],
	CONSTRAINT [DF_CPRESUP_R10OCT] DEFAULT (0) FOR [R10OCT],
	CONSTRAINT [DF_CPRESUP_R11NOV] DEFAULT (0) FOR [R11NOV],
	CONSTRAINT [DF_CPRESUP_R12DIC] DEFAULT (0) FOR [R12DIC],
	CONSTRAINT [DF_CPRESUP_NOAPRESU] DEFAULT ('') FOR [NOAPRESU],
	CONSTRAINT [DF_CPRESUP_NOBPRESU] DEFAULT ('') FOR [NOBPRESU],
	CONSTRAINT [DF_CPRESUP_NOCPRESU] DEFAULT ('') FOR [NOCPRESU]
GO

ALTER TABLE [dbo].[CPRORRO] WITH NOCHECK ADD
	CONSTRAINT [DF_CPRORRO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CPRORRO_TIDP] DEFAULT ('') FOR [TIDP],
	CONSTRAINT [DF_CPRORRO_NUDP] DEFAULT ('') FOR [NUDP],
	CONSTRAINT [DF_CPRORRO_ENDP] DEFAULT ('') FOR [ENDP],
	CONSTRAINT [DF_CPRORRO_CUDP] DEFAULT ('') FOR [CUDP],
	CONSTRAINT [DF_CPRORRO_NUCUDP] DEFAULT ('') FOR [NUCUDP],
	CONSTRAINT [DF_CPRORRO_NUMECOM] DEFAULT ('') FOR [NUMECOM],
	CONSTRAINT [DF_CPRORRO_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_CPRORRO_SUBNREG] DEFAULT ('') FOR [SUBNREG]
GO

ALTER TABLE [dbo].[CSUBAUXI] WITH NOCHECK ADD
	CONSTRAINT [DF_CSUBAUXI_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_CSUBAUXI_GRANCUE] DEFAULT ('') FOR [GRANCUE],
	CONSTRAINT [DF_CSUBAUXI_MAYOR] DEFAULT ('') FOR [MAYOR],
	CONSTRAINT [DF_CSUBAUXI_CUENTA] DEFAULT ('') FOR [CUENTA],
	CONSTRAINT [DF_CSUBAUXI_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_CSUBAUXI_NOSUBAUXI] DEFAULT ('') FOR [NOSUBAUXI]
GO

ALTER TABLE [dbo].[CTABAPER] WITH NOCHECK ADD
	CONSTRAINT [DF_CTABAPER_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_CTABAPER_KOFU] DEFAULT ('') FOR [KOFU],
	CONSTRAINT [DF_CTABAPER_ABRIOMES] DEFAULT (0) FOR [ABRIOMES]
GO

ALTER TABLE [dbo].[DETADPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_DETADPRE_VALPRESU] DEFAULT (0) FOR [VALPRESU],
	CONSTRAINT [DF_DETADPRE_VALREAL] DEFAULT (0) FOR [VALREAL]
GO

ALTER TABLE [dbo].[ELIDDO] WITH NOCHECK ADD
	CONSTRAINT [DF__ELIDDO__PRCT__76226739] DEFAULT (0) FOR [PRCT],
	CONSTRAINT [DF__ELIDDO__PRENDIDO__77168B72] DEFAULT (0) FOR [PRENDIDO],
	CONSTRAINT [DF_ELIDDO_SEMILLA] DEFAULT (0) FOR [SEMILLA],
	CONSTRAINT [DF_ELIDDO_IDODDGDV] DEFAULT (0) FOR [IDODDGDV],
	CONSTRAINT [DF__ELIDDO__LINCONDE__56CA82C8] DEFAULT (0) FOR [LINCONDESP],
	CONSTRAINT [DF_ELIDDO_PODEIVLI] DEFAULT (0) FOR [PODEIVLI],
	CONSTRAINT [DF_ELIDDO_VADEIVLI] DEFAULT (0) FOR [VADEIVLI],
	CONSTRAINT [DF_ELIDDO_PRIIDETIQ] DEFAULT (0) FOR [PRIIDETIQ],
	CONSTRAINT [DF_ELIDDO_KOLORESCA] DEFAULT ('') FOR [KOLORESCA]
GO

ALTER TABLE [dbo].[ELIEDO] WITH NOCHECK ADD
	CONSTRAINT [DF__ELIEDO__NUDONODE__78FED3E4] DEFAULT (0) FOR [NUDONODEFI],
	CONSTRAINT [DF__ELIEDO__TIDOELEC__79F2F81D] DEFAULT (0) FOR [TIDOELEC],
	CONSTRAINT [DF_ELIEDO_NUMOPERVEN] DEFAULT (0) FOR [NUMOPERVEN],
	CONSTRAINT [DF_ELIEDO_BLOQUEAPAG] DEFAULT ('') FOR [BLOQUEAPAG],
	CONSTRAINT [DF_ELIEDO_VALORRET] DEFAULT (0) FOR [VALORRET],
	CONSTRAINT [DF_ELIEDO_VADEIVDO] DEFAULT (0) FOR [VADEIVDO],
	CONSTRAINT [DF_ELIEDO_KOCANAL] DEFAULT ('') FOR [KOCANAL]
GO

ALTER TABLE [dbo].[EMAEDEST] WITH NOCHECK ADD
	CONSTRAINT [DF_EMAEDEST_LEIDO] DEFAULT ('') FOR [LEIDO],
	CONSTRAINT [DF_EMAEDEST_RECHAZO] DEFAULT (0) FOR [RECHAZO]
GO

ALTER TABLE [dbo].[FMAEDTE] WITH NOCHECK ADD
	CONSTRAINT [DF_FMAEDTE_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO]
GO

ALTER TABLE [dbo].[FMAEPETD] WITH NOCHECK ADD
	CONSTRAINT [DF_FMAEPETD_IDLIBRO] DEFAULT (0) FOR [IDLIBRO]
GO

ALTER TABLE [dbo].[FMAEPETE] WITH NOCHECK ADD
	CONSTRAINT [DF_FMAEPETE_EMPRESA] DEFAULT ('') FOR [EMPRESA]
GO

ALTER TABLE [dbo].[FMAERESE] WITH NOCHECK ADD
	CONSTRAINT [DF_FMAERESE_INFORMADO] DEFAULT ('') FOR [INFORMADO],
	CONSTRAINT [DF_FMAERESE_FECHARESE] DEFAULT (getdate()) FOR [FECHARESE]
GO

ALTER TABLE [dbo].[FMAESRE] WITH NOCHECK ADD
	CONSTRAINT [DF_FMAESRE_ESACEP] DEFAULT (0) FOR [ESACEP]
GO

ALTER TABLE [dbo].[FPASODT] WITH NOCHECK ADD
	CONSTRAINT [DF_FPASODT_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO]
GO

ALTER TABLE [dbo].[KASIDAUT] WITH NOCHECK ADD
	CONSTRAINT [DF__KASIDAUT__RESERV__4D562727] DEFAULT (0) FOR [RESERVADO],
	CONSTRAINT [DF_KASIDAUT_KOFURESE] DEFAULT ('') FOR [KOFURESE],
	CONSTRAINT [DF_KASIDAUT_COMENRESE] DEFAULT ('') FOR [COMENRESE]
GO

ALTER TABLE [dbo].[KASIDDO] WITH NOCHECK ADD
	CONSTRAINT [DF_KASIDDO_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_KASIDDO_IDPASIVO] DEFAULT (0) FOR [ARCHIRST],
	CONSTRAINT [DF_KASIDDO_EMPRESA] DEFAULT (0) FOR [IDRST],
	CONSTRAINT [DF_KASIDDO_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_KASIDDO_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_KASIDDO_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_KASIDDO_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_KASIDDO_ENDOFI] DEFAULT ('') FOR [ENDOFI],
	CONSTRAINT [DF_KASIDDO_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_KASIDDO_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_KASIDDO_SULIDO] DEFAULT ('') FOR [SULIDO],
	CONSTRAINT [DF_KASIDDO_LUVTLIDO] DEFAULT ('') FOR [LUVTLIDO],
	CONSTRAINT [DF_KASIDDO_BOSULIDO] DEFAULT ('') FOR [BOSULIDO],
	CONSTRAINT [DF_KASIDDO_KOFULIDO] DEFAULT ('') FOR [KOFULIDO],
	CONSTRAINT [DF_KASIDDO_NULILG] DEFAULT ('') FOR [NULILG],
	CONSTRAINT [DF_KASIDDO_PRCT] DEFAULT (0) FOR [PRCT],
	CONSTRAINT [DF_KASIDDO_TICT] DEFAULT ('') FOR [TICT],
	CONSTRAINT [DF_KASIDDO_TIPR] DEFAULT ('') FOR [TIPR],
	CONSTRAINT [DF_KASIDDO_NUSEPR] DEFAULT ('') FOR [NUSEPR],
	CONSTRAINT [DF_KASIDDO_KOPRCT] DEFAULT ('') FOR [KOPRCT],
	CONSTRAINT [DF_KASIDDO_UDTRPR] DEFAULT (0) FOR [UDTRPR],
	CONSTRAINT [DF_KASIDDO_RLUDPR] DEFAULT (0) FOR [RLUDPR],
	CONSTRAINT [DF_KASIDDO_CAPRCO1] DEFAULT (0) FOR [CAPRCO1],
	CONSTRAINT [DF_KASIDDO_CAPRAD1] DEFAULT (0) FOR [CAPRAD1],
	CONSTRAINT [DF_KASIDDO_CAPREX1] DEFAULT (0) FOR [CAPREX1],
	CONSTRAINT [DF_KASIDDO_CAPRNC1] DEFAULT (0) FOR [CAPRNC1],
	CONSTRAINT [DF_KASIDDO_UD01PR] DEFAULT ('') FOR [UD01PR],
	CONSTRAINT [DF_KASIDDO_CAPRCO2] DEFAULT (0) FOR [CAPRCO2],
	CONSTRAINT [DF_KASIDDO_CAPRAD2] DEFAULT (0) FOR [CAPRAD2],
	CONSTRAINT [DF_KASIDDO_CAPREX2] DEFAULT (0) FOR [CAPREX2],
	CONSTRAINT [DF_KASIDDO_CAPRNC2] DEFAULT (0) FOR [CAPRNC2],
	CONSTRAINT [DF_KASIDDO_UD02PR] DEFAULT ('') FOR [UD02PR],
	CONSTRAINT [DF_KASIDDO_KOLTPR] DEFAULT ('') FOR [KOLTPR],
	CONSTRAINT [DF_KASIDDO_MOPPPR] DEFAULT ('') FOR [MOPPPR],
	CONSTRAINT [DF_KASIDDO_TIMOPPPR] DEFAULT ('') FOR [TIMOPPPR],
	CONSTRAINT [DF_KASIDDO_TAMOPPPR] DEFAULT (0) FOR [TAMOPPPR],
	CONSTRAINT [DF_KASIDDO_PPPRNELT] DEFAULT (0) FOR [PPPRNELT],
	CONSTRAINT [DF_KASIDDO_PPPRNE] DEFAULT (0) FOR [PPPRNE],
	CONSTRAINT [DF_KASIDDO_PPPRBRLT] DEFAULT (0) FOR [PPPRBRLT],
	CONSTRAINT [DF_KASIDDO_PPPRBR] DEFAULT (0) FOR [PPPRBR],
	CONSTRAINT [DF_KASIDDO_NUDTLI] DEFAULT (0) FOR [NUDTLI],
	CONSTRAINT [DF_KASIDDO_PODTGLLI] DEFAULT (0) FOR [PODTGLLI],
	CONSTRAINT [DF_KASIDDO_VADTNELI] DEFAULT (0) FOR [VADTNELI],
	CONSTRAINT [DF_KASIDDO_VADTBRLI] DEFAULT (0) FOR [VADTBRLI],
	CONSTRAINT [DF_KASIDDO_POIVLI] DEFAULT (0) FOR [POIVLI],
	CONSTRAINT [DF_KASIDDO_VAIVLI] DEFAULT (0) FOR [VAIVLI],
	CONSTRAINT [DF_KASIDDO_NUIMLI] DEFAULT (0) FOR [NUIMLI],
	CONSTRAINT [DF_KASIDDO_POIMGLLI] DEFAULT (0) FOR [POIMGLLI],
	CONSTRAINT [DF_KASIDDO_VAIMLI] DEFAULT (0) FOR [VAIMLI],
	CONSTRAINT [DF_KASIDDO_VANELI] DEFAULT (0) FOR [VANELI],
	CONSTRAINT [DF_KASIDDO_VABRLI] DEFAULT (0) FOR [VABRLI],
	CONSTRAINT [DF_KASIDDO_TIGELI] DEFAULT ('') FOR [TIGELI],
	CONSTRAINT [DF_KASIDDO_EMPREPA] DEFAULT ('') FOR [EMPREPA],
	CONSTRAINT [DF_KASIDDO_TIDOPA] DEFAULT ('') FOR [TIDOPA],
	CONSTRAINT [DF_KASIDDO_NUDOPA] DEFAULT ('') FOR [NUDOPA],
	CONSTRAINT [DF_KASIDDO_ENDOPA] DEFAULT ('') FOR [ENDOPA],
	CONSTRAINT [DF_KASIDDO_NULIDOPA] DEFAULT ('') FOR [NULIDOPA],
	CONSTRAINT [DF_KASIDDO_LLEVADESP] DEFAULT (0) FOR [LLEVADESP],
	CONSTRAINT [DF_KASIDDO_PPPRPM] DEFAULT (0) FOR [PPPRPM],
	CONSTRAINT [DF_KASIDDO_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_KASIDDO_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_KASIDDO_ESLIDO] DEFAULT ('') FOR [ESLIDO],
	CONSTRAINT [DF_KASIDDO_PPPRNERE1] DEFAULT (0) FOR [PPPRNERE1],
	CONSTRAINT [DF_KASIDDO_PPPRNERE2] DEFAULT (0) FOR [PPPRNERE2],
	CONSTRAINT [DF_KASIDDO_ESFALI] DEFAULT ('') FOR [ESFALI],
	CONSTRAINT [DF_KASIDDO_CAFACO] DEFAULT (0) FOR [CAFACO],
	CONSTRAINT [DF_KASIDDO_CAFAAD] DEFAULT (0) FOR [CAFAAD],
	CONSTRAINT [DF_KASIDDO_CAFAEX] DEFAULT (0) FOR [CAFAEX],
	CONSTRAINT [DF_KASIDDO_CMLIDO] DEFAULT (0) FOR [CMLIDO],
	CONSTRAINT [DF_KASIDDO_NULOTE] DEFAULT ('') FOR [NULOTE],
	CONSTRAINT [DF_KASIDDO_ARPROD] DEFAULT ('') FOR [ARPROD],
	CONSTRAINT [DF_KASIDDO_NULIPROD] DEFAULT ('') FOR [NULIPROD],
	CONSTRAINT [DF_KASIDDO_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_KASIDDO_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_KASIDDO_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_KASIDDO_SUBLOTE] DEFAULT ('') FOR [SUBLOTE],
	CONSTRAINT [DF_KASIDDO_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_KASIDDO_ALTERNAT] DEFAULT ('') FOR [ALTERNAT],
	CONSTRAINT [DF_KASIDDO_PRENDIDO] DEFAULT (0) FOR [PRENDIDO],
	CONSTRAINT [DF_KASIDDO_OBSERVA] DEFAULT ('') FOR [OBSERVA],
	CONSTRAINT [DF_KASIDDO_KOFUAULIDO] DEFAULT ('') FOR [KOFUAULIDO],
	CONSTRAINT [DF_KASIDDO_KOOPLIDO] DEFAULT ('') FOR [KOOPLIDO],
	CONSTRAINT [DF_KASIDDO_MGLTPR] DEFAULT (0) FOR [MGLTPR],
	CONSTRAINT [DF_KASIDDO_PPOPPR] DEFAULT (0) FOR [PPOPPR],
	CONSTRAINT [DF_KASIDDO_TIPOMG] DEFAULT (0) FOR [TIPOMG],
	CONSTRAINT [DF_KASIDDO_ESPRODLI] DEFAULT ('') FOR [ESPRODLI],
	CONSTRAINT [DF_KASIDDO_CAPRODCO] DEFAULT (0) FOR [CAPRODCO],
	CONSTRAINT [DF_KASIDDO_CAPRODAD] DEFAULT (0) FOR [CAPRODAD],
	CONSTRAINT [DF_KASIDDO_CAPRODEX] DEFAULT (0) FOR [CAPRODEX],
	CONSTRAINT [DF_KASIDDO_CAPRODRE] DEFAULT (0) FOR [CAPRODRE],
	CONSTRAINT [DF_KASIDDO_SEMILLA] DEFAULT (0) FOR [SEMILLA],
	CONSTRAINT [DF_KASIDDO_IDODDGDV] DEFAULT (0) FOR [IDODDGDV],
	CONSTRAINT [DF__KASIDDO__LINCOND__54E23A56] DEFAULT (0) FOR [LINCONDESP],
	CONSTRAINT [DF_KASIDDO_PODEIVLI] DEFAULT (0) FOR [PODEIVLI],
	CONSTRAINT [DF_KASIDDO_VADEIVLI] DEFAULT (0) FOR [VADEIVLI],
	CONSTRAINT [DF_KASIDDO_PRIIDETIQ] DEFAULT (0) FOR [PRIIDETIQ],
	CONSTRAINT [DF_KASIDDO_KOLORESCA] DEFAULT ('') FOR [KOLORESCA]
GO

ALTER TABLE [dbo].[KASIDTLI] WITH NOCHECK ADD
	CONSTRAINT [DF_KASIDTLI_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_KASIDTLI_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_KASIDTLI_KODT] DEFAULT ('') FOR [KODT],
	CONSTRAINT [DF_KASIDTLI_PODT] DEFAULT (0) FOR [PODT],
	CONSTRAINT [DF_KASIDTLI_VADT] DEFAULT (0) FOR [VADT],
	CONSTRAINT [DF_KASIDTLI_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_KASIDTLI_OPERA] DEFAULT ('') FOR [OPERA]
GO

ALTER TABLE [dbo].[KASIEDO] WITH NOCHECK ADD
	CONSTRAINT [DF_KASIEDO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_KASIEDO_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_KASIEDO_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_KASIEDO_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_KASIEDO_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_KASIEDO_ENDOFI] DEFAULT ('') FOR [ENDOFI],
	CONSTRAINT [DF_KASIEDO_TIGEDO] DEFAULT ('') FOR [TIGEDO],
	CONSTRAINT [DF_KASIEDO_SUDO] DEFAULT ('') FOR [SUDO],
	CONSTRAINT [DF_KASIEDO_LUVTDO] DEFAULT ('') FOR [LUVTDO],
	CONSTRAINT [DF_KASIEDO_KOFUDO] DEFAULT ('') FOR [KOFUDO],
	CONSTRAINT [DF_KASIEDO_ESDO] DEFAULT ('') FOR [ESDO],
	CONSTRAINT [DF_KASIEDO_ESPGDO] DEFAULT ('') FOR [ESPGDO],
	CONSTRAINT [DF_KASIEDO_CAPRCO] DEFAULT (0) FOR [CAPRCO],
	CONSTRAINT [DF_KASIEDO_CAPRAD] DEFAULT (0) FOR [CAPRAD],
	CONSTRAINT [DF_KASIEDO_CAPREX] DEFAULT (0) FOR [CAPREX],
	CONSTRAINT [DF_KASIEDO_CAPRNC] DEFAULT (0) FOR [CAPRNC],
	CONSTRAINT [DF_KASIEDO_MEARDO] DEFAULT ('') FOR [MEARDO],
	CONSTRAINT [DF_KASIEDO_MODO] DEFAULT ('') FOR [MODO],
	CONSTRAINT [DF_KASIEDO_TIMODO] DEFAULT ('') FOR [TIMODO],
	CONSTRAINT [DF_KASIEDO_TAMODO] DEFAULT (0) FOR [TAMODO],
	CONSTRAINT [DF_KASIEDO_NUCTAP] DEFAULT (0) FOR [NUCTAP],
	CONSTRAINT [DF_KASIEDO_VACTDTNEDO] DEFAULT (0) FOR [VACTDTNEDO],
	CONSTRAINT [DF_KASIEDO_VACTDTBRDO] DEFAULT (0) FOR [VACTDTBRDO],
	CONSTRAINT [DF_KASIEDO_NUIVDO] DEFAULT (0) FOR [NUIVDO],
	CONSTRAINT [DF_KASIEDO_POIVDO] DEFAULT (0) FOR [POIVDO],
	CONSTRAINT [DF_KASIEDO_VAIVDO] DEFAULT (0) FOR [VAIVDO],
	CONSTRAINT [DF_KASIEDO_NUIMDO] DEFAULT (0) FOR [NUIMDO],
	CONSTRAINT [DF_KASIEDO_VAIMDO] DEFAULT (0) FOR [VAIMDO],
	CONSTRAINT [DF_KASIEDO_VANEDO] DEFAULT (0) FOR [VANEDO],
	CONSTRAINT [DF_KASIEDO_VABRDO] DEFAULT (0) FOR [VABRDO],
	CONSTRAINT [DF_KASIEDO_POPIDO] DEFAULT (0) FOR [POPIDO],
	CONSTRAINT [DF_KASIEDO_VAPIDO] DEFAULT (0) FOR [VAPIDO],
	CONSTRAINT [DF_KASIEDO_NUVEDO] DEFAULT (0) FOR [NUVEDO],
	CONSTRAINT [DF_KASIEDO_VAABDO] DEFAULT (0) FOR [VAABDO],
	CONSTRAINT [DF_KASIEDO_MARCA] DEFAULT ('') FOR [MARCA],
	CONSTRAINT [DF_KASIEDO_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_KASIEDO_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_KASIEDO_KOTU] DEFAULT ('') FOR [KOTU],
	CONSTRAINT [DF_KASIEDO_LIBRO] DEFAULT ('') FOR [LIBRO],
	CONSTRAINT [DF_KASIEDO_ESFADO] DEFAULT ('') FOR [ESFADO],
	CONSTRAINT [DF_KASIEDO_KOTRPCVH] DEFAULT ('') FOR [KOTRPCVH],
	CONSTRAINT [DF_KASIEDO_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_KASIEDO_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_KASIEDO_NUDONODEFI] DEFAULT (0) FOR [NUDONODEFI],
	CONSTRAINT [DF_KASIEDO_TRANSMASI] DEFAULT ('') FOR [TRANSMASI],
	CONSTRAINT [DF_KASIEDO_POIVARET] DEFAULT (0) FOR [POIVARET],
	CONSTRAINT [DF_KASIEDO_VAIVARET] DEFAULT (0) FOR [VAIVARET],
	CONSTRAINT [DF_KASIEDO_RESUMEN] DEFAULT ('') FOR [RESUMEN],
	CONSTRAINT [DF_KASIEDO_KOFUAUDO] DEFAULT ('') FOR [KOFUAUDO],
	CONSTRAINT [DF_KASIEDO_KOOPDO] DEFAULT ('') FOR [KOOPDO],
	CONSTRAINT [DF_KASIEDO_ESPRODDO] DEFAULT ('') FOR [ESPRODDO],
	CONSTRAINT [DF_KASIEDO_DESPACHO] DEFAULT (0) FOR [DESPACHO],
	CONSTRAINT [DF_KASIEDO_HORAGRAB] DEFAULT (0) FOR [HORAGRAB],
	CONSTRAINT [DF_KASIEDO_RUTCONTACT] DEFAULT ('') FOR [RUTCONTACT],
	CONSTRAINT [DF_KASIEDO_SUBTIDO] DEFAULT ('') FOR [SUBTIDO],
	CONSTRAINT [DF_KASIEDO_TIDOELEC] DEFAULT (0) FOR [TIDOELEC],
	CONSTRAINT [DF_KASIEDO_ESDOIMP] DEFAULT ('') FOR [ESDOIMP],
	CONSTRAINT [DF_KASIEDO_NUMOPERVEN] DEFAULT (0) FOR [NUMOPERVEN],
	CONSTRAINT [DF_KASIEDO_BLOQUEAPAG] DEFAULT ('') FOR [BLOQUEAPAG],
	CONSTRAINT [DF_KASIEDO_VALORRET] DEFAULT (0) FOR [VALORRET],
	CONSTRAINT [DF_KASIEDO_VADEIVDO] DEFAULT (0) FOR [VADEIVDO],
	CONSTRAINT [DF_KASIEDO_KOCANAL] DEFAULT ('') FOR [KOCANAL]
GO

ALTER TABLE [dbo].[KASIEDOB] WITH NOCHECK ADD
	CONSTRAINT [DF_KASIEDOB_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_KASIEDOB_OBDO] DEFAULT ('') FOR [OBDO],
	CONSTRAINT [DF_KASIEDOB_CPDO] DEFAULT ('') FOR [CPDO],
	CONSTRAINT [DF_KASIEDOB_OCDO] DEFAULT ('') FOR [OCDO],
	CONSTRAINT [DF_KASIEDOB_DIENDESP] DEFAULT ('') FOR [DIENDESP],
	CONSTRAINT [DF_KASIEDOB_TEXTO1] DEFAULT ('') FOR [TEXTO1],
	CONSTRAINT [DF_KASIEDOB_TEXTO2] DEFAULT ('') FOR [TEXTO2],
	CONSTRAINT [DF_KASIEDOB_TEXTO3] DEFAULT ('') FOR [TEXTO3],
	CONSTRAINT [DF_KASIEDOB_TEXTO4] DEFAULT ('') FOR [TEXTO4],
	CONSTRAINT [DF_KASIEDOB_TEXTO5] DEFAULT ('') FOR [TEXTO5],
	CONSTRAINT [DF_KASIEDOB_TEXTO6] DEFAULT ('') FOR [TEXTO6],
	CONSTRAINT [DF_KASIEDOB_TEXTO7] DEFAULT ('') FOR [TEXTO7],
	CONSTRAINT [DF_KASIEDOB_TEXTO8] DEFAULT ('') FOR [TEXTO8],
	CONSTRAINT [DF_KASIEDOB_TEXTO9] DEFAULT ('') FOR [TEXTO9],
	CONSTRAINT [DF_KASIEDOB_TEXTO10] DEFAULT ('') FOR [TEXTO10],
	CONSTRAINT [DF_KASIEDOB_TEXTO11] DEFAULT ('') FOR [TEXTO11],
	CONSTRAINT [DF_KASIEDOB_TEXTO12] DEFAULT ('') FOR [TEXTO12],
	CONSTRAINT [DF_KASIEDOB_TEXTO13] DEFAULT ('') FOR [TEXTO13],
	CONSTRAINT [DF_KASIEDOB_TEXTO14] DEFAULT ('') FOR [TEXTO14],
	CONSTRAINT [DF_KASIEDOB_TEXTO15] DEFAULT ('') FOR [TEXTO15],
	CONSTRAINT [DF_KASIEDOB_CARRIER] DEFAULT ('') FOR [CARRIER],
	CONSTRAINT [DF_KASIEDOB_BOOKING] DEFAULT ('') FOR [BOOKING],
	CONSTRAINT [DF_KASIEDOB_LADING] DEFAULT ('') FOR [LADING],
	CONSTRAINT [DF_KASIEDOB_AGENTE] DEFAULT ('') FOR [AGENTE],
	CONSTRAINT [DF_KASIEDOB_MEDIOPAGO] DEFAULT ('') FOR [MEDIOPAGO],
	CONSTRAINT [DF_KASIEDOB_TIPOTRANS] DEFAULT ('') FOR [TIPOTRANS],
	CONSTRAINT [DF_KASIEDOB_KOPAE] DEFAULT ('') FOR [KOPAE],
	CONSTRAINT [DF_KASIEDOB_KOCIE] DEFAULT ('') FOR [KOCIE],
	CONSTRAINT [DF_KASIEDOB_KOCME] DEFAULT ('') FOR [KOCME],
	CONSTRAINT [DF_KASIEDOB_HORAE] DEFAULT ('') FOR [HORAE],
	CONSTRAINT [DF_KASIEDOB_KOPAD] DEFAULT ('') FOR [KOPAD],
	CONSTRAINT [DF_KASIEDOB_KOCID] DEFAULT ('') FOR [KOCID],
	CONSTRAINT [DF_KASIEDOB_KOCMD] DEFAULT ('') FOR [KOCMD],
	CONSTRAINT [DF_KASIEDOB_HORAD] DEFAULT ('') FOR [HORAD],
	CONSTRAINT [DF_KASIEDOB_OBDOEXPO] DEFAULT ('') FOR [OBDOEXPO],
	CONSTRAINT [DF_KASIEDOB_MOTIVO] DEFAULT ('') FOR [MOTIVO],
	CONSTRAINT [DF_KASIEDOB_TEXTO16] DEFAULT ('') FOR [TEXTO16],
	CONSTRAINT [DF_KASIEDOB_TEXTO17] DEFAULT ('') FOR [TEXTO17],
	CONSTRAINT [DF_KASIEDOB_TEXTO18] DEFAULT ('') FOR [TEXTO18],
	CONSTRAINT [DF_KASIEDOB_TEXTO19] DEFAULT ('') FOR [TEXTO19],
	CONSTRAINT [DF_KASIEDOB_TEXTO20] DEFAULT ('') FOR [TEXTO20],
	CONSTRAINT [DF_KASIEDOB_TEXTO21] DEFAULT ('') FOR [TEXTO21],
	CONSTRAINT [DF_KASIEDOB_TEXTO22] DEFAULT ('') FOR [TEXTO22],
	CONSTRAINT [DF_KASIEDOB_TEXTO23] DEFAULT ('') FOR [TEXTO23],
	CONSTRAINT [DF_KASIEDOB_TEXTO24] DEFAULT ('') FOR [TEXTO24],
	CONSTRAINT [DF_KASIEDOB_TEXTO25] DEFAULT ('') FOR [TEXTO25],
	CONSTRAINT [DF_KASIEDOB_TEXTO26] DEFAULT ('') FOR [TEXTO26],
	CONSTRAINT [DF_KASIEDOB_TEXTO27] DEFAULT ('') FOR [TEXTO27],
	CONSTRAINT [DF_KASIEDOB_TEXTO28] DEFAULT ('') FOR [TEXTO28],
	CONSTRAINT [DF_KASIEDOB_TEXTO29] DEFAULT ('') FOR [TEXTO29],
	CONSTRAINT [DF_KASIEDOB_TEXTO30] DEFAULT ('') FOR [TEXTO30],
	CONSTRAINT [DF_KASIEDOB_TEXTO31] DEFAULT ('') FOR [TEXTO31],
	CONSTRAINT [DF_KASIEDOB_TEXTO32] DEFAULT ('') FOR [TEXTO32],
	CONSTRAINT [DF_KASIEDOB_TEXTO33] DEFAULT ('') FOR [TEXTO33],
	CONSTRAINT [DF_KASIEDOB_TEXTO34] DEFAULT ('') FOR [TEXTO34],
	CONSTRAINT [DF_KASIEDOB_TEXTO35] DEFAULT ('') FOR [TEXTO35],
	CONSTRAINT [DF_KASIEDOB_PLACAPAT] DEFAULT ('') FOR [PLACAPAT]
GO

ALTER TABLE [dbo].[KASIIMLI] WITH NOCHECK ADD
	CONSTRAINT [DF_KASIIMLI_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_KASIIMLI_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_KASIIMLI_KOIMLI] DEFAULT ('') FOR [KOIMLI],
	CONSTRAINT [DF_KASIIMLI_POIMLI] DEFAULT (0) FOR [POIMLI],
	CONSTRAINT [DF_KASIIMLI_VAIMLI] DEFAULT (0) FOR [VAIMLI],
	CONSTRAINT [DF_KASIIMLI_LILG] DEFAULT ('') FOR [LILG]
GO

ALTER TABLE [dbo].[LORESCAD] WITH NOCHECK ADD
	CONSTRAINT [DF__LORESCAD__RESERV__0D7B9934] DEFAULT (0) FOR [RESERVA],
	CONSTRAINT [DF__LORESCAD__PORNVI__0E6FBD6D] DEFAULT (0) FOR [PORNVI],
	CONSTRAINT [DF__LORESCAD__PORNVV__0F63E1A6] DEFAULT (0) FOR [PORNVV],
	CONSTRAINT [DF__LORESCAD__PORFCV__105805DF] DEFAULT (0) FOR [PORFCV],
	CONSTRAINT [DF__LORESCAD__PORGTI__114C2A18] DEFAULT (0) FOR [PORGTI],
	CONSTRAINT [DF__LORESCAD__PORGDV__12404E51] DEFAULT (0) FOR [PORGDV],
	CONSTRAINT [DF__LORESCAD__DEVGTI__1334728A] DEFAULT (0) FOR [DEVGTI],
	CONSTRAINT [DF__LORESCAD__DEVGRI__142896C3] DEFAULT (0) FOR [DEVGRI],
	CONSTRAINT [DF__LORESCAD__SALDO__151CBAFC] DEFAULT (0) FOR [SALDO]
GO

ALTER TABLE [dbo].[LORESCAE] WITH NOCHECK ADD
	CONSTRAINT [DF_LORESCAE_ESTADO] DEFAULT ('') FOR [ESTADO]
GO

ALTER TABLE [dbo].[MAEDDO] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDDO_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_MAEDDO_IDPASIVO] DEFAULT (0) FOR [ARCHIRST],
	CONSTRAINT [DF_MAEDDO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEDDO_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_MAEDDO_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_MAEDDO_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_MAEDDO_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_MAEDDO_ENDOFI] DEFAULT ('') FOR [ENDOFI],
	CONSTRAINT [DF_MAEDDO_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_MAEDDO_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_MAEDDO_SULIDO] DEFAULT ('') FOR [SULIDO],
	CONSTRAINT [DF_MAEDDO_LUVTLIDO] DEFAULT ('') FOR [LUVTLIDO],
	CONSTRAINT [DF_MAEDDO_BOSULIDO] DEFAULT ('') FOR [BOSULIDO],
	CONSTRAINT [DF_MAEDDO_KOFULIDO] DEFAULT ('') FOR [KOFULIDO],
	CONSTRAINT [DF_MAEDDO_NULILG] DEFAULT ('') FOR [NULILG],
	CONSTRAINT [DF_MAEDDO_PRCT] DEFAULT (0) FOR [PRCT],
	CONSTRAINT [DF_MAEDDO_TICT] DEFAULT ('') FOR [TICT],
	CONSTRAINT [DF_MAEDDO_TIPR] DEFAULT ('') FOR [TIPR],
	CONSTRAINT [DF_MAEDDO_NUSEPR] DEFAULT ('') FOR [NUSEPR],
	CONSTRAINT [DF_MAEDDO_KOPRCT] DEFAULT ('') FOR [KOPRCT],
	CONSTRAINT [DF_MAEDDO_UDTRPR] DEFAULT (0) FOR [UDTRPR],
	CONSTRAINT [DF_MAEDDO_RLUDPR] DEFAULT (0) FOR [RLUDPR],
	CONSTRAINT [DF_MAEDDO_CAPRCO1] DEFAULT (0) FOR [CAPRCO1],
	CONSTRAINT [DF_MAEDDO_CAPRAD1] DEFAULT (0) FOR [CAPRAD1],
	CONSTRAINT [DF_MAEDDO_CAPREX1] DEFAULT (0) FOR [CAPREX1],
	CONSTRAINT [DF_MAEDDO_CAPRNC1] DEFAULT (0) FOR [CAPRNC1],
	CONSTRAINT [DF_MAEDDO_UD01PR] DEFAULT ('') FOR [UD01PR],
	CONSTRAINT [DF_MAEDDO_CAPRCO2] DEFAULT (0) FOR [CAPRCO2],
	CONSTRAINT [DF_MAEDDO_CAPRAD2] DEFAULT (0) FOR [CAPRAD2],
	CONSTRAINT [DF_MAEDDO_CAPREX2] DEFAULT (0) FOR [CAPREX2],
	CONSTRAINT [DF_MAEDDO_CAPRNC2] DEFAULT (0) FOR [CAPRNC2],
	CONSTRAINT [DF_MAEDDO_UD02PR] DEFAULT ('') FOR [UD02PR],
	CONSTRAINT [DF_MAEDDO_KOLTPR] DEFAULT ('') FOR [KOLTPR],
	CONSTRAINT [DF_MAEDDO_MOPPPR] DEFAULT ('') FOR [MOPPPR],
	CONSTRAINT [DF_MAEDDO_TIMOPPPR] DEFAULT ('') FOR [TIMOPPPR],
	CONSTRAINT [DF_MAEDDO_TAMOPPPR] DEFAULT (0) FOR [TAMOPPPR],
	CONSTRAINT [DF_MAEDDO_PPPRNELT] DEFAULT (0) FOR [PPPRNELT],
	CONSTRAINT [DF_MAEDDO_PPPRNE] DEFAULT (0) FOR [PPPRNE],
	CONSTRAINT [DF_MAEDDO_PPPRBRLT] DEFAULT (0) FOR [PPPRBRLT],
	CONSTRAINT [DF_MAEDDO_PPPRBR] DEFAULT (0) FOR [PPPRBR],
	CONSTRAINT [DF_MAEDDO_NUDTLI] DEFAULT (0) FOR [NUDTLI],
	CONSTRAINT [DF_MAEDDO_PODTGLLI] DEFAULT (0) FOR [PODTGLLI],
	CONSTRAINT [DF_MAEDDO_VADTNELI] DEFAULT (0) FOR [VADTNELI],
	CONSTRAINT [DF_MAEDDO_VADTBRLI] DEFAULT (0) FOR [VADTBRLI],
	CONSTRAINT [DF_MAEDDO_POIVLI] DEFAULT (0) FOR [POIVLI],
	CONSTRAINT [DF_MAEDDO_VAIVLI] DEFAULT (0) FOR [VAIVLI],
	CONSTRAINT [DF_MAEDDO_NUIMLI] DEFAULT (0) FOR [NUIMLI],
	CONSTRAINT [DF_MAEDDO_POIMGLLI] DEFAULT (0) FOR [POIMGLLI],
	CONSTRAINT [DF_MAEDDO_VAIMLI] DEFAULT (0) FOR [VAIMLI],
	CONSTRAINT [DF_MAEDDO_VANELI] DEFAULT (0) FOR [VANELI],
	CONSTRAINT [DF_MAEDDO_VABRLI] DEFAULT (0) FOR [VABRLI],
	CONSTRAINT [DF_MAEDDO_TIGELI] DEFAULT ('') FOR [TIGELI],
	CONSTRAINT [DF_MAEDDO_EMPREPA] DEFAULT ('') FOR [EMPREPA],
	CONSTRAINT [DF_MAEDDO_TIDOPA] DEFAULT ('') FOR [TIDOPA],
	CONSTRAINT [DF_MAEDDO_NUDOPA] DEFAULT ('') FOR [NUDOPA],
	CONSTRAINT [DF_MAEDDO_ENDOPA] DEFAULT ('') FOR [ENDOPA],
	CONSTRAINT [DF_MAEDDO_NULIDOPA] DEFAULT ('') FOR [NULIDOPA],
	CONSTRAINT [DF_MAEDDO_LLEVADESP] DEFAULT (0) FOR [LLEVADESP],
	CONSTRAINT [DF_MAEDDO_PPPRPM] DEFAULT (0) FOR [PPPRPM],
	CONSTRAINT [DF_MAEDDO_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_MAEDDO_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_MAEDDO_ESLIDO] DEFAULT ('') FOR [ESLIDO],
	CONSTRAINT [DF_MAEDDO_PPPRNERE1] DEFAULT (0) FOR [PPPRNERE1],
	CONSTRAINT [DF_MAEDDO_PPPRNERE2] DEFAULT (0) FOR [PPPRNERE2],
	CONSTRAINT [DF_MAEDDO_ESFALI] DEFAULT ('') FOR [ESFALI],
	CONSTRAINT [DF_MAEDDO_CAFACO] DEFAULT (0) FOR [CAFACO],
	CONSTRAINT [DF_MAEDDO_CAFAAD] DEFAULT (0) FOR [CAFAAD],
	CONSTRAINT [DF_MAEDDO_CAFAEX] DEFAULT (0) FOR [CAFAEX],
	CONSTRAINT [DF_MAEDDO_CMLIDO] DEFAULT (0) FOR [CMLIDO],
	CONSTRAINT [DF_MAEDDO_NULOTE] DEFAULT ('') FOR [NULOTE],
	CONSTRAINT [DF_MAEDDO_ARPROD] DEFAULT ('') FOR [ARPROD],
	CONSTRAINT [DF_MAEDDO_NULIPROD] DEFAULT ('') FOR [NULIPROD],
	CONSTRAINT [DF_MAEDDO_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_MAEDDO_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_MAEDDO_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_MAEDDO_SUBLOTE] DEFAULT ('') FOR [SUBLOTE],
	CONSTRAINT [DF_MAEDDO_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_MAEDDO_ALTERNAT] DEFAULT ('') FOR [ALTERNAT],
	CONSTRAINT [DF_MAEDDO_PRENDIDO] DEFAULT (0) FOR [PRENDIDO],
	CONSTRAINT [DF_MAEDDO_OBSERVA] DEFAULT ('') FOR [OBSERVA],
	CONSTRAINT [DF_MAEDDO_KOFUAULIDO] DEFAULT ('') FOR [KOFUAULIDO],
	CONSTRAINT [DF_MAEDDO_KOOPLIDO] DEFAULT ('') FOR [KOOPLIDO],
	CONSTRAINT [DF_MAEDDO_MGLTPR] DEFAULT (0) FOR [MGLTPR],
	CONSTRAINT [DF_MAEDDO_PPOPPR] DEFAULT (0) FOR [PPOPPR],
	CONSTRAINT [DF_MAEDDO_TIPOMG] DEFAULT (0) FOR [TIPOMG],
	CONSTRAINT [DF_MAEDDO_ESPRODLI] DEFAULT ('') FOR [ESPRODLI],
	CONSTRAINT [DF_MAEDDO_CAPRODCO] DEFAULT (0) FOR [CAPRODCO],
	CONSTRAINT [DF_MAEDDO_CAPRODAD] DEFAULT (0) FOR [CAPRODAD],
	CONSTRAINT [DF_MAEDDO_CAPRODEX] DEFAULT (0) FOR [CAPRODEX],
	CONSTRAINT [DF_MAEDDO_CAPRODRE] DEFAULT (0) FOR [CAPRODRE],
	CONSTRAINT [DF_MAEDDO_SEMILLA] DEFAULT (0) FOR [SEMILLA],
	CONSTRAINT [DF_MAEDDO_IDODDGDV] DEFAULT (0) FOR [IDODDGDV],
	CONSTRAINT [DF__MAEDDO__LINCONDE__55D65E8F] DEFAULT (0) FOR [LINCONDESP],
	CONSTRAINT [DF_MAEDDO_PODEIVLI] DEFAULT (0) FOR [PODEIVLI],
	CONSTRAINT [DF_MAEDDO_VADEIVLI] DEFAULT (0) FOR [VADEIVLI],
	CONSTRAINT [DF_MAEDDO_PRIIDETIQ] DEFAULT (0) FOR [PRIIDETIQ],
	CONSTRAINT [DF_MAEDDO_KOLORESCA] DEFAULT ('') FOR [KOLORESCA]
GO

ALTER TABLE [dbo].[MAEDDOAU] WITH NOCHECK ADD
	CONSTRAINT [DF__MAEDDOAU__RESERV__4A79BA7C] DEFAULT (0) FOR [RESERVADO],
	CONSTRAINT [DF_MAEDDOAU_KOFURESE] DEFAULT ('') FOR [KOFURESE],
	CONSTRAINT [DF_MAEDDOAU_COMENRESE] DEFAULT ('') FOR [COMENRESE]
GO

ALTER TABLE [dbo].[MAEDFT] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDFT_FFCE] DEFAULT (0) FOR [FFCE],
	CONSTRAINT [DF_MAEDFT_CCCE] DEFAULT (0) FOR [CCCE],
	CONSTRAINT [DF_MAEDFT_LAEP] DEFAULT (0) FOR [LAEP],
	CONSTRAINT [DF_MAEDFT_EMDP] DEFAULT ('') FOR [EMDP],
	CONSTRAINT [DF_MAEDFT_KOFOR] DEFAULT ('             ') FOR [KOFOR],
	CONSTRAINT [DF_MAEDFT_NEGRITA] DEFAULT (0) FOR [NEGRITA],
	CONSTRAINT [DF_MAEDFT_COLOR] DEFAULT ('') FOR [COLOR],
	CONSTRAINT [DF__MAEDFT__SUBTIDO__57899CD7] DEFAULT ('   ') FOR [SUBTIDO]
GO

ALTER TABLE [dbo].[MAEDPCD] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDPCD_IDMAEDPCE] DEFAULT (0) FOR [IDMAEDPCE],
	CONSTRAINT [DF_MAEDPCD_VAASDP] DEFAULT (0) FOR [VAASDP],
	CONSTRAINT [DF_MAEDPCD_TIDOPA] DEFAULT ('') FOR [TIDOPA],
	CONSTRAINT [DF_MAEDPCD_IDPASIVO] DEFAULT (0) FOR [ARCHIRST],
	CONSTRAINT [DF_MAEDPCD_KOFUASDP] DEFAULT ('') FOR [KOFUASDP],
	CONSTRAINT [DF_MAEDPCD_SUASDP] DEFAULT ('') FOR [SUASDP],
	CONSTRAINT [DF_MAEDPCD_CJASDP] DEFAULT ('') FOR [CJASDP],
	CONSTRAINT [DF_MAEDPCD_HORAGRAB] DEFAULT (0) FOR [HORAGRAB]
GO

ALTER TABLE [dbo].[MAEDPCE] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDPCE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEDPCE_TIDP] DEFAULT ('') FOR [TIDP],
	CONSTRAINT [DF_MAEDPCE_NUDP] DEFAULT ('') FOR [NUDP],
	CONSTRAINT [DF_MAEDPCE_ENDP] DEFAULT ('') FOR [ENDP],
	CONSTRAINT [DF_MAEDPCE_EMDP] DEFAULT ('') FOR [EMDP],
	CONSTRAINT [DF_MAEDPCE_SUEMDP] DEFAULT ('') FOR [SUEMDP],
	CONSTRAINT [DF_MAEDPCE_CUDP] DEFAULT ('') FOR [CUDP],
	CONSTRAINT [DF_MAEDPCE_NUCUDP] DEFAULT ('') FOR [NUCUDP],
	CONSTRAINT [DF_MAEDPCE_MODP] DEFAULT ('') FOR [MODP],
	CONSTRAINT [DF_MAEDPCE_TIMODP] DEFAULT ('') FOR [TIMODP],
	CONSTRAINT [DF_MAEDPCE_TAMODP] DEFAULT (0) FOR [TAMODP],
	CONSTRAINT [DF_MAEDPCE_VADP] DEFAULT (0) FOR [VADP],
	CONSTRAINT [DF_MAEDPCE_VAABDP] DEFAULT (0) FOR [VAABDP],
	CONSTRAINT [DF_MAEDPCE_VAASDP] DEFAULT (0) FOR [VAASDP],
	CONSTRAINT [DF_MAEDPCE_VAVUDP] DEFAULT (0) FOR [VAVUDP],
	CONSTRAINT [DF_MAEDPCE_ESASDP] DEFAULT ('') FOR [ESASDP],
	CONSTRAINT [DF_MAEDPCE_ESPGDP] DEFAULT ('') FOR [ESPGDP],
	CONSTRAINT [DF_MAEDPCE_SUREDP] DEFAULT ('') FOR [SUREDP],
	CONSTRAINT [DF_MAEDPCE_CJREDP] DEFAULT ('') FOR [CJREDP],
	CONSTRAINT [DF_MAEDPCE_KOFUDP] DEFAULT ('') FOR [KOFUDP],
	CONSTRAINT [DF_MAEDPCE_KOTNDP] DEFAULT ('') FOR [KOTNDP],
	CONSTRAINT [DF_MAEDPCE_SUTNDP] DEFAULT ('') FOR [SUTNDP],
	CONSTRAINT [DF_MAEDPCE_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_MAEDPCE_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_MAEDPCE_KOTU] DEFAULT ('') FOR [KOTU],
	CONSTRAINT [DF_MAEDPCE_REFANTI] DEFAULT ('') FOR [REFANTI],
	CONSTRAINT [DF_MAEDPCE_DOCUENANTI] DEFAULT ('') FOR [DOCUENANTI],
	CONSTRAINT [DF_MAEDPCE_IMDP] DEFAULT ('') FOR [IMDP],
	CONSTRAINT [DF_MAEDPCE_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_MAEDPCE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_MAEDPCE_TUVOPROTES] DEFAULT (0) FOR [TUVOPROTES],
	CONSTRAINT [DF_MAEDPCE_RESUMEN] DEFAULT ('') FOR [RESUMEN],
	CONSTRAINT [DF_MAEDPCE_KOENDOSO] DEFAULT ('') FOR [KOENDOSO],
	CONSTRAINT [DF_MAEDPCE_NOENDOSO] DEFAULT ('') FOR [NOENDOSO],
	CONSTRAINT [DF_MAEDPCE_NUVISA] DEFAULT ('') FOR [NUVISA],
	CONSTRAINT [DF_MAEDPCE_KOVISADOR] DEFAULT ('') FOR [KOVISADOR]
GO

ALTER TABLE [dbo].[MAEDRES] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDRES_NREG] DEFAULT (0) FOR [NREG],
	CONSTRAINT [DF_MAEDRES_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF_MAEDRES_PORCDESC] DEFAULT (0) FOR [PORCDESC]
GO

ALTER TABLE [dbo].[MAEDTLI] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEDTLI_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_MAEDTLI_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_MAEDTLI_KODT] DEFAULT ('') FOR [KODT],
	CONSTRAINT [DF_MAEDTLI_PODT] DEFAULT (0) FOR [PODT],
	CONSTRAINT [DF_MAEDTLI_VADT] DEFAULT (0) FOR [VADT],
	CONSTRAINT [DF_MAEDTLI_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_MAEDTLI_OPERA] DEFAULT ('') FOR [OPERA]
GO

ALTER TABLE [dbo].[MAEEDO] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEEDO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEEDO_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_MAEEDO_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_MAEEDO_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_MAEEDO_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_MAEEDO_ENDOFI] DEFAULT ('') FOR [ENDOFI],
	CONSTRAINT [DF_MAEEDO_TIGEDO] DEFAULT ('') FOR [TIGEDO],
	CONSTRAINT [DF_MAEEDO_SUDO] DEFAULT ('') FOR [SUDO],
	CONSTRAINT [DF_MAEEDO_LUVTDO] DEFAULT ('') FOR [LUVTDO],
	CONSTRAINT [DF_MAEEDO_KOFUDO] DEFAULT ('') FOR [KOFUDO],
	CONSTRAINT [DF_MAEEDO_ESDO] DEFAULT ('') FOR [ESDO],
	CONSTRAINT [DF_MAEEDO_ESPGDO] DEFAULT ('') FOR [ESPGDO],
	CONSTRAINT [DF_MAEEDO_CAPRCO] DEFAULT (0) FOR [CAPRCO],
	CONSTRAINT [DF_MAEEDO_CAPRAD] DEFAULT (0) FOR [CAPRAD],
	CONSTRAINT [DF_MAEEDO_CAPREX] DEFAULT (0) FOR [CAPREX],
	CONSTRAINT [DF_MAEEDO_CAPRNC] DEFAULT (0) FOR [CAPRNC],
	CONSTRAINT [DF_MAEEDO_MEARDO] DEFAULT ('') FOR [MEARDO],
	CONSTRAINT [DF_MAEEDO_MODO] DEFAULT ('') FOR [MODO],
	CONSTRAINT [DF_MAEEDO_TIMODO] DEFAULT ('') FOR [TIMODO],
	CONSTRAINT [DF_MAEEDO_TAMODO] DEFAULT (0) FOR [TAMODO],
	CONSTRAINT [DF_MAEEDO_NUCTAP] DEFAULT (0) FOR [NUCTAP],
	CONSTRAINT [DF_MAEEDO_VACTDTNEDO] DEFAULT (0) FOR [VACTDTNEDO],
	CONSTRAINT [DF_MAEEDO_VACTDTBRDO] DEFAULT (0) FOR [VACTDTBRDO],
	CONSTRAINT [DF_MAEEDO_NUIVDO] DEFAULT (0) FOR [NUIVDO],
	CONSTRAINT [DF_MAEEDO_POIVDO] DEFAULT (0) FOR [POIVDO],
	CONSTRAINT [DF_MAEEDO_VAIVDO] DEFAULT (0) FOR [VAIVDO],
	CONSTRAINT [DF_MAEEDO_NUIMDO] DEFAULT (0) FOR [NUIMDO],
	CONSTRAINT [DF_MAEEDO_VAIMDO] DEFAULT (0) FOR [VAIMDO],
	CONSTRAINT [DF_MAEEDO_VANEDO] DEFAULT (0) FOR [VANEDO],
	CONSTRAINT [DF_MAEEDO_VABRDO] DEFAULT (0) FOR [VABRDO],
	CONSTRAINT [DF_MAEEDO_POPIDO] DEFAULT (0) FOR [POPIDO],
	CONSTRAINT [DF_MAEEDO_VAPIDO] DEFAULT (0) FOR [VAPIDO],
	CONSTRAINT [DF_MAEEDO_NUVEDO] DEFAULT (0) FOR [NUVEDO],
	CONSTRAINT [DF_MAEEDO_VAABDO] DEFAULT (0) FOR [VAABDO],
	CONSTRAINT [DF_MAEEDO_MARCA] DEFAULT ('') FOR [MARCA],
	CONSTRAINT [DF_MAEEDO_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_MAEEDO_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_MAEEDO_KOTU] DEFAULT ('') FOR [KOTU],
	CONSTRAINT [DF_MAEEDO_LIBRO] DEFAULT ('') FOR [LIBRO],
	CONSTRAINT [DF_MAEEDO_ESFADO] DEFAULT ('') FOR [ESFADO],
	CONSTRAINT [DF_MAEEDO_KOTRPCVH] DEFAULT ('') FOR [KOTRPCVH],
	CONSTRAINT [DF_MAEEDO_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_MAEEDO_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_MAEEDO_NUDONODEFI] DEFAULT (0) FOR [NUDONODEFI],
	CONSTRAINT [DF_MAEEDO_TRANSMASI] DEFAULT ('') FOR [TRANSMASI],
	CONSTRAINT [DF_MAEEDO_POIVARET] DEFAULT (0) FOR [POIVARET],
	CONSTRAINT [DF_MAEEDO_VAIVARET] DEFAULT (0) FOR [VAIVARET],
	CONSTRAINT [DF_MAEEDO_RESUMEN] DEFAULT ('') FOR [RESUMEN],
	CONSTRAINT [DF_MAEEDO_KOFUAUDO] DEFAULT ('') FOR [KOFUAUDO],
	CONSTRAINT [DF_MAEEDO_KOOPDO] DEFAULT ('') FOR [KOOPDO],
	CONSTRAINT [DF_MAEEDO_ESPRODDO] DEFAULT ('') FOR [ESPRODDO],
	CONSTRAINT [DF_MAEEDO_DESPACHO] DEFAULT (0) FOR [DESPACHO],
	CONSTRAINT [DF_MAEEDO_HORAGRAB] DEFAULT (0) FOR [HORAGRAB],
	CONSTRAINT [DF_MAEEDO_RUTCONTACT] DEFAULT ('') FOR [RUTCONTACT],
	CONSTRAINT [DF_MAEEDO_SUBTIDO] DEFAULT ('') FOR [SUBTIDO],
	CONSTRAINT [DF_MAEEDO_TIDOELEC] DEFAULT (0) FOR [TIDOELEC],
	CONSTRAINT [DF_MAEEDO_ESDOIMP] DEFAULT ('') FOR [ESDOIMP],
	CONSTRAINT [DF_MAEEDO_NUMOPERVEN] DEFAULT (0) FOR [NUMOPERVEN],
	CONSTRAINT [DF_MAEEDO_BLOQUEAPAG] DEFAULT ('') FOR [BLOQUEAPAG],
	CONSTRAINT [DF_MAEEDO_VALORRET] DEFAULT (0) FOR [VALORRET],
	CONSTRAINT [DF_MAEEDO_VADEIVDO] DEFAULT (0) FOR [VADEIVDO],
	CONSTRAINT [DF_MAEEDO_KOCANAL] DEFAULT ('') FOR [KOCANAL]
GO

ALTER TABLE [dbo].[MAEEDOOB] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEEDOOB_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_MAEEDOOB_OBDO] DEFAULT ('') FOR [OBDO],
	CONSTRAINT [DF_MAEEDOOB_CPDO] DEFAULT ('') FOR [CPDO],
	CONSTRAINT [DF_MAEEDOOB_OCDO] DEFAULT ('') FOR [OCDO],
	CONSTRAINT [DF_MAEEDOOB_DIENDESP] DEFAULT ('') FOR [DIENDESP],
	CONSTRAINT [DF_MAEEDOOB_TEXTO1] DEFAULT ('') FOR [TEXTO1],
	CONSTRAINT [DF_MAEEDOOB_TEXTO2] DEFAULT ('') FOR [TEXTO2],
	CONSTRAINT [DF_MAEEDOOB_TEXTO3] DEFAULT ('') FOR [TEXTO3],
	CONSTRAINT [DF_MAEEDOOB_TEXTO4] DEFAULT ('') FOR [TEXTO4],
	CONSTRAINT [DF_MAEEDOOB_TEXTO5] DEFAULT ('') FOR [TEXTO5],
	CONSTRAINT [DF_MAEEDOOB_TEXTO6] DEFAULT ('') FOR [TEXTO6],
	CONSTRAINT [DF_MAEEDOOB_TEXTO7] DEFAULT ('') FOR [TEXTO7],
	CONSTRAINT [DF_MAEEDOOB_TEXTO8] DEFAULT ('') FOR [TEXTO8],
	CONSTRAINT [DF_MAEEDOOB_TEXTO9] DEFAULT ('') FOR [TEXTO9],
	CONSTRAINT [DF_MAEEDOOB_TEXTO10] DEFAULT ('') FOR [TEXTO10],
	CONSTRAINT [DF_MAEEDOOB_TEXTO11] DEFAULT ('') FOR [TEXTO11],
	CONSTRAINT [DF_MAEEDOOB_TEXTO12] DEFAULT ('') FOR [TEXTO12],
	CONSTRAINT [DF_MAEEDOOB_TEXTO13] DEFAULT ('') FOR [TEXTO13],
	CONSTRAINT [DF_MAEEDOOB_TEXTO14] DEFAULT ('') FOR [TEXTO14],
	CONSTRAINT [DF_MAEEDOOB_TEXTO15] DEFAULT ('') FOR [TEXTO15],
	CONSTRAINT [DF_MAEEDOOB_CARRIER] DEFAULT ('') FOR [CARRIER],
	CONSTRAINT [DF_MAEEDOOB_BOOKING] DEFAULT ('') FOR [BOOKING],
	CONSTRAINT [DF_MAEEDOOB_LADING] DEFAULT ('') FOR [LADING],
	CONSTRAINT [DF_MAEEDOOB_AGENTE] DEFAULT ('') FOR [AGENTE],
	CONSTRAINT [DF_MAEEDOOB_MEDIOPAGO] DEFAULT ('') FOR [MEDIOPAGO],
	CONSTRAINT [DF_MAEEDOOB_TIPOTRANS] DEFAULT ('') FOR [TIPOTRANS],
	CONSTRAINT [DF_MAEEDOOB_KOPAE] DEFAULT ('') FOR [KOPAE],
	CONSTRAINT [DF_MAEEDOOB_KOCIE] DEFAULT ('') FOR [KOCIE],
	CONSTRAINT [DF_MAEEDOOB_KOCME] DEFAULT ('') FOR [KOCME],
	CONSTRAINT [DF_MAEEDOOB_HORAE] DEFAULT ('') FOR [HORAE],
	CONSTRAINT [DF_MAEEDOOB_KOPAD] DEFAULT ('') FOR [KOPAD],
	CONSTRAINT [DF_MAEEDOOB_KOCID] DEFAULT ('') FOR [KOCID],
	CONSTRAINT [DF_MAEEDOOB_KOCMD] DEFAULT ('') FOR [KOCMD],
	CONSTRAINT [DF_MAEEDOOB_HORAD] DEFAULT ('') FOR [HORAD],
	CONSTRAINT [DF_MAEEDOOB_OBDOEXPO] DEFAULT ('') FOR [OBDOEXPO],
	CONSTRAINT [DF_MAEEDOOB_MOTIVO] DEFAULT ('') FOR [MOTIVO],
	CONSTRAINT [DF_MAEEDOOB_TEXTO16] DEFAULT ('') FOR [TEXTO16],
	CONSTRAINT [DF_MAEEDOOB_TEXTO17] DEFAULT ('') FOR [TEXTO17],
	CONSTRAINT [DF_MAEEDOOB_TEXTO18] DEFAULT ('') FOR [TEXTO18],
	CONSTRAINT [DF_MAEEDOOB_TEXTO19] DEFAULT ('') FOR [TEXTO19],
	CONSTRAINT [DF_MAEEDOOB_TEXTO20] DEFAULT ('') FOR [TEXTO20],
	CONSTRAINT [DF_MAEEDOOB_TEXTO21] DEFAULT ('') FOR [TEXTO21],
	CONSTRAINT [DF_MAEEDOOB_TEXTO22] DEFAULT ('') FOR [TEXTO22],
	CONSTRAINT [DF_MAEEDOOB_TEXTO23] DEFAULT ('') FOR [TEXTO23],
	CONSTRAINT [DF_MAEEDOOB_TEXTO24] DEFAULT ('') FOR [TEXTO24],
	CONSTRAINT [DF_MAEEDOOB_TEXTO25] DEFAULT ('') FOR [TEXTO25],
	CONSTRAINT [DF_MAEEDOOB_TEXTO26] DEFAULT ('') FOR [TEXTO26],
	CONSTRAINT [DF_MAEEDOOB_TEXTO27] DEFAULT ('') FOR [TEXTO27],
	CONSTRAINT [DF_MAEEDOOB_TEXTO28] DEFAULT ('') FOR [TEXTO28],
	CONSTRAINT [DF_MAEEDOOB_TEXTO29] DEFAULT ('') FOR [TEXTO29],
	CONSTRAINT [DF_MAEEDOOB_TEXTO30] DEFAULT ('') FOR [TEXTO30],
	CONSTRAINT [DF_MAEEDOOB_TEXTO31] DEFAULT ('') FOR [TEXTO31],
	CONSTRAINT [DF_MAEEDOOB_TEXTO32] DEFAULT ('') FOR [TEXTO32],
	CONSTRAINT [DF_MAEEDOOB_TEXTO33] DEFAULT ('') FOR [TEXTO33],
	CONSTRAINT [DF_MAEEDOOB_TEXTO34] DEFAULT ('') FOR [TEXTO34],
	CONSTRAINT [DF_MAEEDOOB_TEXTO35] DEFAULT ('') FOR [TEXTO35],
	CONSTRAINT [DF_MAEEDOOB_PLACAPAT] DEFAULT ('') FOR [PLACAPAT]
GO

ALTER TABLE [dbo].[MAEEFT] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEEFT_LADOCE] DEFAULT (0) FOR [LADOCE],
	CONSTRAINT [DF_MAEEFT_ANDOCE] DEFAULT (0) FOR [ANDOCE],
	CONSTRAINT [DF_MAEEFT_NULIDO] DEFAULT (0) FOR [NULIDO],
	CONSTRAINT [DF_MAEEFT_INILADLCE] DEFAULT (0) FOR [INILADLCE],
	CONSTRAINT [DF_MAEEFT_FINLADLCE] DEFAULT (0) FOR [FINLADLCE],
	CONSTRAINT [DF_MAEEFT_INIANDLCE] DEFAULT (0) FOR [INIANDLCE],
	CONSTRAINT [DF_MAEEFT_FINANDLCE] DEFAULT (0) FOR [FINANDLCE],
	CONSTRAINT [DF_MAEEFT_FFPTRF] DEFAULT (0) FOR [FFPTRF],
	CONSTRAINT [DF_MAEEFT_CCPTRF] DEFAULT (0) FOR [CCPTRF],
	CONSTRAINT [DF_MAEEFT_CELIDL] DEFAULT (0) FOR [CELIDL],
	CONSTRAINT [DF_MAEEFT_EMDP] DEFAULT ('') FOR [EMDP],
	CONSTRAINT [DF_MAEEFT_FONT_ENCSI] DEFAULT (0) FOR [FONT_ENCSI],
	CONSTRAINT [DF_MAEEFT_FONT_DETSI] DEFAULT (0) FOR [FONT_DETSI],
	CONSTRAINT [DF_MAEEFT_TIPO_DOS] DEFAULT (0) FOR [TIPO_DOS],
	CONSTRAINT [DF_MAEEFT_LICRELIN] DEFAULT (0) FOR [LICRELIN],
	CONSTRAINT [DF_MAEEFT_KOFOR] DEFAULT ('             ') FOR [KOFOR],
	CONSTRAINT [DF__MAEEFT__SUBTIDO__5695789E] DEFAULT ('   ') FOR [SUBTIDO]
GO

ALTER TABLE [dbo].[MAEELIMI] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEELIMI_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEELIMI_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_MAEELIMI_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_MAEELIMI_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_MAEELIMI_SUENDO] DEFAULT ('') FOR [SUENDO],
	CONSTRAINT [DF_MAEELIMI_KOFUDO] DEFAULT ('') FOR [KOFUDO],
	CONSTRAINT [DF_MAEELIMI_VANEDO] DEFAULT (0) FOR [VANEDO],
	CONSTRAINT [DF_MAEELIMI_VABRDO] DEFAULT (0) FOR [VABRDO],
	CONSTRAINT [DF_MAEELIMI_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_MAEELIMI_NUMECOM] DEFAULT ('') FOR [NUMECOM],
	CONSTRAINT [DF_MAEELIMI_TIPOCOM] DEFAULT ('') FOR [TIPOCOM],
	CONSTRAINT [DF_MAEELIMI_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_MAEELIMI_DEBE] DEFAULT (0) FOR [DEBE],
	CONSTRAINT [DF_MAEELIMI_HABER] DEFAULT (0) FOR [HABER],
	CONSTRAINT [DF_MAEELIMI_TRANSMASI] DEFAULT ('') FOR [TRANSMASI]
GO

ALTER TABLE [dbo].[MAEELOTE] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEELOTE_NULOTE] DEFAULT ('') FOR [NULOTE],
	CONSTRAINT [DF_MAEELOTE_SUBLOTE] DEFAULT ('') FOR [SUBLOTE],
	CONSTRAINT [DF_MAEELOTE_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_MAEELOTE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEELOTE_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_MAEELOTE_KOBO] DEFAULT ('') FOR [KOBO],
	CONSTRAINT [DF_MAEELOTE_STFI1] DEFAULT (0) FOR [STFI1],
	CONSTRAINT [DF_MAEELOTE_STDV1] DEFAULT (0) FOR [STDV1],
	CONSTRAINT [DF_MAEELOTE_STOCNV1] DEFAULT (0) FOR [STOCNV1],
	CONSTRAINT [DF_MAEELOTE_STFI2] DEFAULT (0) FOR [STFI2],
	CONSTRAINT [DF_MAEELOTE_STDV2] DEFAULT (0) FOR [STDV2],
	CONSTRAINT [DF_MAEELOTE_STOCNV2] DEFAULT (0) FOR [STOCNV2],
	CONSTRAINT [DF_MAEELOTE_STDV1C] DEFAULT (0) FOR [STDV1C],
	CONSTRAINT [DF_MAEELOTE_STOCNV1C] DEFAULT (0) FOR [STOCNV1C],
	CONSTRAINT [DF_MAEELOTE_STDV2C] DEFAULT (0) FOR [STDV2C],
	CONSTRAINT [DF_MAEELOTE_STOCNV2C] DEFAULT (0) FOR [STOCNV2C],
	CONSTRAINT [DF_MAEELOTE_DESPNOFAC1] DEFAULT (0) FOR [DESPNOFAC1],
	CONSTRAINT [DF_MAEELOTE_DESPNOFAC2] DEFAULT (0) FOR [DESPNOFAC2],
	CONSTRAINT [DF_MAEELOTE_RECENOFAC1] DEFAULT (0) FOR [RECENOFAC1],
	CONSTRAINT [DF_MAEELOTE_RECENOFAC2] DEFAULT (0) FOR [RECENOFAC2],
	CONSTRAINT [DF_MAEELOTE_STTR1] DEFAULT (0) FOR [STTR1],
	CONSTRAINT [DF_MAEELOTE_STTR2] DEFAULT (0) FOR [STTR2],
	CONSTRAINT [DF__MAEELOTE__PRESAL__3B625F75] DEFAULT (0) FOR [PRESALCLI1],
	CONSTRAINT [DF__MAEELOTE__PRESAL__3C5683AE] DEFAULT (0) FOR [PRESALCLI2],
	CONSTRAINT [DF__MAEELOTE__PRESDE__3D4AA7E7] DEFAULT (0) FOR [PRESDEPRO1],
	CONSTRAINT [DF__MAEELOTE__PRESDE__3E3ECC20] DEFAULT (0) FOR [PRESDEPRO2],
	CONSTRAINT [DF__MAEELOTE__CONSAL__3F32F059] DEFAULT (0) FOR [CONSALCLI1],
	CONSTRAINT [DF__MAEELOTE__CONSAL__40271492] DEFAULT (0) FOR [CONSALCLI2],
	CONSTRAINT [DF__MAEELOTE__CONSDE__411B38CB] DEFAULT (0) FOR [CONSDEPRO1],
	CONSTRAINT [DF__MAEELOTE__CONSDE__420F5D04] DEFAULT (0) FOR [CONSDEPRO2],
	CONSTRAINT [DF__MAEELOTE__DEVENG__4303813D] DEFAULT (0) FOR [DEVENGNCV1],
	CONSTRAINT [DF__MAEELOTE__DEVENG__43F7A576] DEFAULT (0) FOR [DEVENGNCV2],
	CONSTRAINT [DF__MAEELOTE__DEVENG__44EBC9AF] DEFAULT (0) FOR [DEVENGNCC1],
	CONSTRAINT [DF__MAEELOTE__DEVENG__45DFEDE8] DEFAULT (0) FOR [DEVENGNCC2],
	CONSTRAINT [DF__MAEELOTE__DEVSIN__46D41221] DEFAULT (0) FOR [DEVSINNCV1],
	CONSTRAINT [DF__MAEELOTE__DEVSIN__47C8365A] DEFAULT (0) FOR [DEVSINNCV2],
	CONSTRAINT [DF__MAEELOTE__DEVSIN__48BC5A93] DEFAULT (0) FOR [DEVSINNCC1],
	CONSTRAINT [DF__MAEELOTE__DEVSIN__49B07ECC] DEFAULT (0) FOR [DEVSINNCC2],
	CONSTRAINT [DF__MAEELOTE__STENFA__4AA4A305] DEFAULT (0) FOR [STENFAB1],
	CONSTRAINT [DF__MAEELOTE__STENFA__4B98C73E] DEFAULT (0) FOR [STENFAB2],
	CONSTRAINT [DF__MAEELOTE__STREQF__4C8CEB77] DEFAULT (0) FOR [STREQFAB1],
	CONSTRAINT [DF__MAEELOTE__STREQF__4D810FB0] DEFAULT (0) FOR [STREQFAB2]
GO

ALTER TABLE [dbo].[MAEEN] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEEN_KOEN] DEFAULT ('') FOR [KOEN],
	CONSTRAINT [DF_MAEEN_TIEN] DEFAULT ('') FOR [TIEN],
	CONSTRAINT [DF_MAEEN_RTEN] DEFAULT ('') FOR [RTEN],
	CONSTRAINT [DF_MAEEN_SUEN] DEFAULT ('') FOR [SUEN],
	CONSTRAINT [DF_MAEEN_TIPOSUC] DEFAULT ('') FOR [TIPOSUC],
	CONSTRAINT [DF_MAEEN_NOKOEN] DEFAULT ('') FOR [NOKOEN],
	CONSTRAINT [DF_MAEEN_SIEN] DEFAULT ('') FOR [SIEN],
	CONSTRAINT [DF_MAEEN_GIEN] DEFAULT ('') FOR [GIEN],
	CONSTRAINT [DF_MAEEN_PAEN] DEFAULT ('') FOR [PAEN],
	CONSTRAINT [DF_MAEEN_CIEN] DEFAULT ('') FOR [CIEN],
	CONSTRAINT [DF_MAEEN_DIEN] DEFAULT ('') FOR [DIEN],
	CONSTRAINT [DF_MAEEN_ZOEN] DEFAULT ('') FOR [ZOEN],
	CONSTRAINT [DF_MAEEN_FAEN] DEFAULT ('') FOR [FAEN],
	CONSTRAINT [DF_MAEEN_CNEN] DEFAULT ('') FOR [CNEN],
	CONSTRAINT [DF_MAEEN_LCEN] DEFAULT ('') FOR [LCEN],
	CONSTRAINT [DF_MAEEN_LVEN] DEFAULT ('') FOR [LVEN],
	CONSTRAINT [DF_MAEEN_CRSD] DEFAULT (0) FOR [CRSD],
	CONSTRAINT [DF_MAEEN_CRCH] DEFAULT (0) FOR [CRCH],
	CONSTRAINT [DF_MAEEN_CRLT] DEFAULT (0) FOR [CRLT],
	CONSTRAINT [DF_MAEEN_CRPA] DEFAULT (0) FOR [CRPA],
	CONSTRAINT [DF_MAEEN_CRTO] DEFAULT (0) FOR [CRTO],
	CONSTRAINT [DF_MAEEN_CREN] DEFAULT ('') FOR [CREN],
	CONSTRAINT [DF_MAEEN_NUVECR] DEFAULT (0) FOR [NUVECR],
	CONSTRAINT [DF_MAEEN_DCCR] DEFAULT (0) FOR [DCCR],
	CONSTRAINT [DF_MAEEN_INCR] DEFAULT (0) FOR [INCR],
	CONSTRAINT [DF_MAEEN_POPICR] DEFAULT (0) FOR [POPICR],
	CONSTRAINT [DF_MAEEN_KOPLCR] DEFAULT ('') FOR [KOPLCR],
	CONSTRAINT [DF_MAEEN_CONTAB] DEFAULT ('') FOR [CONTAB],
	CONSTRAINT [DF_MAEEN_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_MAEEN_CONTABVTA] DEFAULT ('') FOR [CONTABVTA],
	CONSTRAINT [DF_MAEEN_SUBAUXIVTA] DEFAULT ('') FOR [SUBAUXIVTA],
	CONSTRAINT [DF_MAEEN_CODCC] DEFAULT ('') FOR [CODCC],
	CONSTRAINT [DF_MAEEN_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_MAEEN_RUEN] DEFAULT ('') FOR [RUEN],
	CONSTRAINT [DF_MAEEN_CPEN] DEFAULT ('') FOR [CPEN],
	CONSTRAINT [DF_MAEEN_OBEN] DEFAULT ('') FOR [OBEN],
	CONSTRAINT [DF_MAEEN_DIPRVE] DEFAULT (0) FOR [DIPRVE],
	CONSTRAINT [DF_MAEEN_CNEN2] DEFAULT ('') FOR [CNEN2],
	CONSTRAINT [DF_MAEEN_COBRADOR] DEFAULT ('') FOR [COBRADOR],
	CONSTRAINT [DF_MAEEN_PROTEACUM] DEFAULT (0) FOR [PROTEACUM],
	CONSTRAINT [DF_MAEEN_PROTEVIGE] DEFAULT (0) FOR [PROTEVIGE],
	CONSTRAINT [DF_MAEEN_CPOSTAL] DEFAULT ('') FOR [CPOSTAL],
	CONSTRAINT [DF_MAEEN_HABILITA] DEFAULT (0) FOR [HABILITA],
	CONSTRAINT [DF_MAEEN_CODCONVE] DEFAULT ('') FOR [CODCONVE],
	CONSTRAINT [DF_MAEEN_NOTRAEDEUD] DEFAULT (0) FOR [NOTRAEDEUD],
	CONSTRAINT [DF_MAEEN_NOKOENAMP] DEFAULT ('') FOR [NOKOENAMP],
	CONSTRAINT [DF_MAEEN_BLOQUEADO] DEFAULT (0) FOR [BLOQUEADO],
	CONSTRAINT [DF_MAEEN_DIMOPER] DEFAULT (0) FOR [DIMOPER],
	CONSTRAINT [DF_MAEEN_PREFEN] DEFAULT (0) FOR [PREFEN],
	CONSTRAINT [DF_MAEEN_BLOQENCOM] DEFAULT (0) FOR [BLOQENCOM],
	CONSTRAINT [DF_MAEEN_TIPOEN] DEFAULT ('') FOR [TIPOEN],
	CONSTRAINT [DF_MAEEN_ACTIEN] DEFAULT ('') FOR [ACTIEN],
	CONSTRAINT [DF_MAEEN_TAMAEN] DEFAULT ('') FOR [TAMAEN],
	CONSTRAINT [DF_MAEEN_PORPREFEN] DEFAULT (0) FOR [PORPREFEN],
	CONSTRAINT [DF_MAEEN_CLAVEEN] DEFAULT ('') FOR [CLAVEEN],
	CONSTRAINT [DF_MAEEN_NVVPIDEPIE] DEFAULT (0) FOR [NVVPIDEPIE],
	CONSTRAINT [DF_MAEEN_RECEPELECT] DEFAULT (0) FOR [RECEPELECT],
	CONSTRAINT [DF_MAEEN_AGRETIVA ] DEFAULT (0) FOR [AGRETIVA],
	CONSTRAINT [DF_MAEEN_AGRETIIBB] DEFAULT (0) FOR [AGRETIIBB],
	CONSTRAINT [DF_MAEEN_AGRETGAN ] DEFAULT (0) FOR [AGRETGAN],
	CONSTRAINT [DF_MAEEN_AGPERIVA ] DEFAULT (0) FOR [AGPERIVA],
	CONSTRAINT [DF_MAEEN_AGPERIIBB] DEFAULT (0) FOR [AGPERIIBB],
	CONSTRAINT [DF_MAEEN_NACIONEN] DEFAULT ('') FOR [NACIONEN],
	CONSTRAINT [DF_MAEEN_DIRPAREN] DEFAULT ('') FOR [DIRPAREN],
	CONSTRAINT [DF_MAEEN_ESTCIVEN] DEFAULT ('') FOR [ESTCIVEN],
	CONSTRAINT [DF_MAEEN_PROFECEN] DEFAULT ('') FOR [PROFECEN],
	CONSTRAINT [DF_MAEEN_CONYUGEN] DEFAULT ('') FOR [CONYUGEN],
	CONSTRAINT [DF_MAEEN_RUTCONEN] DEFAULT ('') FOR [RUTCONEN],
	CONSTRAINT [DF_MAEEN_RUTSOCEN] DEFAULT ('') FOR [RUTSOCEN],
	CONSTRAINT [DF_MAEEN_SEXOEN] DEFAULT ('') FOR [SEXOEN],
	CONSTRAINT [DF_MAEEN_RELACIEN] DEFAULT ('') FOR [RELACIEN],
	CONSTRAINT [DF_MAEEN_ANEXEN1] DEFAULT ('') FOR [ANEXEN1],
	CONSTRAINT [DF_MAEEN_ANEXEN2] DEFAULT ('') FOR [ANEXEN2],
	CONSTRAINT [DF_MAEEN_ANEXEN3] DEFAULT ('') FOR [ANEXEN3],
	CONSTRAINT [DF_MAEEN_ANEXEN4] DEFAULT ('') FOR [ANEXEN4],
	CONSTRAINT [DF__MAEEN__OCCOBLI__1467C28E] DEFAULT (0) FOR [OCCOBLI],
	CONSTRAINT [DF__MAEEN__VALIVENPA__26074FDC] DEFAULT (0) FOR [VALIVENPAG],
	CONSTRAINT [DF_MAEEN_EMAILCOMER] DEFAULT ('') FOR [EMAILCOMER],
	CONSTRAINT [DF_MAEEN_TIPOCONTR] DEFAULT ('') FOR [TIPOCONTR],
	CONSTRAINT [DF__MAEEN__FEREFAUTO__57BEA701] DEFAULT (0) FOR [FEREFAUTO],
	CONSTRAINT [DF_MAEEN_DIACOBRA] DEFAULT ('') FOR [DIACOBRA],
	CONSTRAINT [DF_MAEEN_CUENTABCO] DEFAULT ('') FOR [CUENTABCO],
	CONSTRAINT [DF_MAEEN_KOENDPEN] DEFAULT ('') FOR [KOENDPEN],
	CONSTRAINT [DF_MAEEN_SUENDPEN] DEFAULT ('') FOR [SUENDPEN]
GO

ALTER TABLE [dbo].[MAEENCON] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEENCON_AUTORIZADO] DEFAULT (0) FOR [AUTORIZADO],
	CONSTRAINT [PK_MAEENCON] PRIMARY KEY  NONCLUSTERED
	(
		[KOEN],
		[RUTCONTACT]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[MAEENCTA] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEENCTA_RUT] DEFAULT ('') FOR [RUT],
	CONSTRAINT [DF_MAEENCTA_NORUT] DEFAULT ('') FOR [NORUT],
	CONSTRAINT [DF__MAEENCTA__BLOQUE__1586CF50] DEFAULT (0) FOR [BLOQUEADA],
	CONSTRAINT [DF_MAEENCTA_SUCURSAL] DEFAULT ('') FOR [SUCURSAL]
GO

ALTER TABLE [dbo].[MAEENOBS] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEENCOM_FECHA] DEFAULT (getdate()) FOR [FECHA]
GO

ALTER TABLE [dbo].[MAEERES] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEERES_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF_MAEERES_ESTARESE] DEFAULT ('') FOR [ESTARESE],
	CONSTRAINT [DF_MAEERES_TIPORESE] DEFAULT ('') FOR [TIPORESE],
	CONSTRAINT [DF_MAEERES_CONCEPTO] DEFAULT ('') FOR [CONCEPTO],
	CONSTRAINT [DF_MAEERES_LISTAS] DEFAULT ('') FOR [LISTAS],
	CONSTRAINT [DF__MAEERES__APLICAU__4535E272] DEFAULT (0) FOR [APLICAUT],
	CONSTRAINT [DF_MAEERES_PORDESC] DEFAULT (0) FOR [PORDESC],
	CONSTRAINT [DF_MAEERES_ECUPORDESC] DEFAULT ('') FOR [ECUPORDESC],
	CONSTRAINT [DF_MAEERES_DESC_LUN] DEFAULT ('') FOR [DESC_LUN],
	CONSTRAINT [DF_MAEERES_DESC_MAR] DEFAULT ('') FOR [DESC_MAR],
	CONSTRAINT [DF_MAEERES_DESC_MIE] DEFAULT ('') FOR [DESC_MIE],
	CONSTRAINT [DF_MAEERES_DESC_JUE] DEFAULT ('') FOR [DESC_JUE],
	CONSTRAINT [DF_MAEERES_DESC_VIE] DEFAULT ('') FOR [DESC_VIE],
	CONSTRAINT [DF_MAEERES_DESC_SAB] DEFAULT ('') FOR [DESC_SAB],
	CONSTRAINT [DF_MAEERES_DESC_DOM] DEFAULT ('') FOR [DESC_DOM],
	CONSTRAINT [DF__MAEERES__DESCVAL__7D45316B] DEFAULT (0) FOR [DESCVALOR],
	CONSTRAINT [DF_MAEERES_VALDESC] DEFAULT (0) FOR [VALDESC],
	CONSTRAINT [DF_MAEERES_ECUVALDESC] DEFAULT ('') FOR [ECUVALDESC],
	CONSTRAINT [DF_MAEERES_KOGEN] DEFAULT ('') FOR [KOGEN],
	CONSTRAINT [DF_MAEERES_CANTMIN] DEFAULT (0) FOR [CANTMIN],
	CONSTRAINT [DF_MAEERES_TIPOTRAT] DEFAULT (0) FOR [TIPOTRAT]
GO

ALTER TABLE [dbo].[MAEIMLI] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEIMLI_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_MAEIMLI_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_MAEIMLI_KOIMLI] DEFAULT ('') FOR [KOIMLI],
	CONSTRAINT [DF_MAEIMLI_POIMLI] DEFAULT (0) FOR [POIMLI],
	CONSTRAINT [DF_MAEIMLI_VAIMLI] DEFAULT (0) FOR [VAIMLI],
	CONSTRAINT [DF_MAEIMLI_LILG] DEFAULT ('') FOR [LILG]
GO

ALTER TABLE [dbo].[MAELIFO] WITH NOCHECK ADD
	CONSTRAINT [DF_MAELIFO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAELIFO_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_MAELIFO_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_MAELIFO_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_MAELIFO_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_MAELIFO_NULIDO] DEFAULT ('') FOR [NULIDO],
	CONSTRAINT [DF_MAELIFO_ENTRADA] DEFAULT (0) FOR [ENTRADA],
	CONSTRAINT [DF_MAELIFO_SALIDA] DEFAULT (0) FOR [SALIDA],
	CONSTRAINT [DF_MAELIFO_VALOR] DEFAULT (0) FOR [VALOR],
	CONSTRAINT [DF_MAELIFO_ESTADO] DEFAULT ('') FOR [ESTADO]
GO

ALTER TABLE [dbo].[MAEMEN] WITH NOCHECK ADD
	CONSTRAINT [DF__MAEMEN__ESPERARE__717E7904] DEFAULT (0) FOR [ESPERARES]
GO

ALTER TABLE [dbo].[MAEMO] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEMO_VAMO] DEFAULT (0) FOR [VAMO],
	CONSTRAINT [DF_MAEMO_VAMOCOM] DEFAULT (0) FOR [VAMOCOM]
GO

ALTER TABLE [dbo].[MAEMOADU] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEMOADU_VAMO] DEFAULT (0) FOR [VAMO],
	CONSTRAINT [DF_MAEMOADU_VAMOCOM] DEFAULT (0) FOR [VAMOCOM]
GO

ALTER TABLE [dbo].[MAEOFERD] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEOFERD_CANTIDAD] DEFAULT (0) FOR [CANTIDAD]
GO

ALTER TABLE [dbo].[MAEPR] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEPR_TIPR] DEFAULT ('') FOR [TIPR],
	CONSTRAINT [DF_MAEPR_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_MAEPR_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_MAEPR_KOPRRA] DEFAULT ('') FOR [KOPRRA],
	CONSTRAINT [DF_MAEPR_NOKOPRRA] DEFAULT ('') FOR [NOKOPRRA],
	CONSTRAINT [DF_MAEPR_KOPRTE] DEFAULT ('') FOR [KOPRTE],
	CONSTRAINT [DF_MAEPR_KOGE] DEFAULT ('') FOR [KOGE],
	CONSTRAINT [DF_MAEPR_NMARCA] DEFAULT ('') FOR [NMARCA],
	CONSTRAINT [DF_MAEPR_UD01PR] DEFAULT ('') FOR [UD01PR],
	CONSTRAINT [DF_MAEPR_UD02PR] DEFAULT ('') FOR [UD02PR],
	CONSTRAINT [DF_MAEPR_RLUD] DEFAULT (0) FOR [RLUD],
	CONSTRAINT [DF_MAEPR_POIVPR] DEFAULT (0) FOR [POIVPR],
	CONSTRAINT [DF_MAEPR_NUIMPR] DEFAULT (0) FOR [NUIMPR],
	CONSTRAINT [DF_MAEPR_RGPR] DEFAULT ('') FOR [RGPR],
	CONSTRAINT [DF_MAEPR_STMIPR] DEFAULT (0) FOR [STMIPR],
	CONSTRAINT [DF_MAEPR_STMAPR] DEFAULT (0) FOR [STMAPR],
	CONSTRAINT [DF_MAEPR_MRPR] DEFAULT ('') FOR [MRPR],
	CONSTRAINT [DF_MAEPR_ATPR] DEFAULT ('') FOR [ATPR],
	CONSTRAINT [DF_MAEPR_RUPR] DEFAULT ('') FOR [RUPR],
	CONSTRAINT [DF_MAEPR_STFI1] DEFAULT (0) FOR [STFI1],
	CONSTRAINT [DF_MAEPR_STDV1] DEFAULT (0) FOR [STDV1],
	CONSTRAINT [DF_MAEPR_STOCNV1] DEFAULT (0) FOR [STOCNV1],
	CONSTRAINT [DF_MAEPR_STFI2] DEFAULT (0) FOR [STFI2],
	CONSTRAINT [DF_MAEPR_STDV2] DEFAULT (0) FOR [STDV2],
	CONSTRAINT [DF_MAEPR_STOCNV2] DEFAULT (0) FOR [STOCNV2],
	CONSTRAINT [DF_MAEPR_PPUL01] DEFAULT (0) FOR [PPUL01],
	CONSTRAINT [DF_MAEPR_PPUL02] DEFAULT (0) FOR [PPUL02],
	CONSTRAINT [DF_MAEPR_MOUL] DEFAULT ('') FOR [MOUL],
	CONSTRAINT [DF_MAEPR_TIMOUL] DEFAULT ('') FOR [TIMOUL],
	CONSTRAINT [DF_MAEPR_TAUL] DEFAULT (0) FOR [TAUL],
	CONSTRAINT [DF_MAEPR_PM] DEFAULT (0) FOR [PM],
	CONSTRAINT [DF_MAEPR_FMPR] DEFAULT ('') FOR [FMPR],
	CONSTRAINT [DF_MAEPR_PFPR] DEFAULT ('') FOR [PFPR],
	CONSTRAINT [DF_MAEPR_HFPR] DEFAULT ('') FOR [HFPR],
	CONSTRAINT [DF_MAEPR_VALI] DEFAULT (0) FOR [VALI],
	CONSTRAINT [DF_MAEPR_TTREPR] DEFAULT (0) FOR [TTREPR],
	CONSTRAINT [DF_MAEPR_PRRG] DEFAULT (0) FOR [PRRG],
	CONSTRAINT [DF_MAEPR_NIPRRG] DEFAULT ('') FOR [NIPRRG],
	CONSTRAINT [DF_MAEPR_NFPRRG] DEFAULT ('') FOR [NFPRRG],
	CONSTRAINT [DF_MAEPR_PMIN] DEFAULT (0) FOR [PMIN],
	CONSTRAINT [DF_MAEPR_CAMICO] DEFAULT (0) FOR [CAMICO],
	CONSTRAINT [DF_MAEPR_CAMIFA] DEFAULT (0) FOR [CAMIFA],
	CONSTRAINT [DF_MAEPR_LOMIFA] DEFAULT (0) FOR [LOMIFA],
	CONSTRAINT [DF_MAEPR_PLANO] DEFAULT ('') FOR [PLANO],
	CONSTRAINT [DF_MAEPR_STDV1C] DEFAULT (0) FOR [STDV1C],
	CONSTRAINT [DF_MAEPR_STOCNV1C] DEFAULT (0) FOR [STOCNV1C],
	CONSTRAINT [DF_MAEPR_STDV2C] DEFAULT (0) FOR [STDV2C],
	CONSTRAINT [DF_MAEPR_STOCNV2C] DEFAULT (0) FOR [STOCNV2C],
	CONSTRAINT [DF_MAEPR_METRCO] DEFAULT ('') FOR [METRCO],
	CONSTRAINT [DF_MAEPR_DESPNOFAC1] DEFAULT (0) FOR [DESPNOFAC1],
	CONSTRAINT [DF_MAEPR_DESPNOFAC2] DEFAULT (0) FOR [DESPNOFAC2],
	CONSTRAINT [DF_MAEPR_RECENOFAC1] DEFAULT (0) FOR [RECENOFAC1],
	CONSTRAINT [DF_MAEPR_RECENOFAC2] DEFAULT (0) FOR [RECENOFAC2],
	CONSTRAINT [DF_MAEPR_TRATALOTE] DEFAULT (0) FOR [TRATALOTE],
	CONSTRAINT [DF_MAEPR_DIVISIBLE] DEFAULT ('') FOR [DIVISIBLE],
	CONSTRAINT [DF_MAEPR_MUDEFA] DEFAULT (0) FOR [MUDEFA],
	CONSTRAINT [DF_MAEPR_EXENTO] DEFAULT (0) FOR [EXENTO],
	CONSTRAINT [DF_MAEPR_KOMODE] DEFAULT ('') FOR [KOMODE],
	CONSTRAINT [DF_MAEPR_PRDESRES] DEFAULT (0) FOR [PRDESRES],
	CONSTRAINT [DF_MAEPR_LISCOSTO] DEFAULT ('') FOR [LISCOSTO],
	CONSTRAINT [DF_MAEPR_STOCKASEG] DEFAULT (0) FOR [STOCKASEG],
	CONSTRAINT [DF_MAEPR_ESACTFI] DEFAULT (0) FOR [ESACTFI],
	CONSTRAINT [DF_MAEPR_CLALIBPR] DEFAULT ('') FOR [CLALIBPR],
	CONSTRAINT [DF_MAEPR_KOFUPR] DEFAULT ('') FOR [KOFUPR],
	CONSTRAINT [DF_MAEPR_KOPRDIM] DEFAULT ('') FOR [KOPRDIM],
	CONSTRAINT [DF_MAEPR_NODIM1] DEFAULT ('') FOR [NODIM1],
	CONSTRAINT [DF_MAEPR_NODIM2] DEFAULT ('') FOR [NODIM2],
	CONSTRAINT [DF_MAEPR_NODIM3] DEFAULT ('') FOR [NODIM3],
	CONSTRAINT [DF_MAEPR_CONUBIC] DEFAULT (0) FOR [CONUBIC],
	CONSTRAINT [DF_MAEPR_LOTECAJA] DEFAULT (0) FOR [LOTECAJA],
	CONSTRAINT [DF_MAEPR_STTR1] DEFAULT (0) FOR [STTR1],
	CONSTRAINT [DF_MAEPR_STTR2] DEFAULT (0) FOR [STTR2],
	CONSTRAINT [DF_MAEPR_PODEIVPR] DEFAULT (0) FOR [PODEIVPR],
	CONSTRAINT [DF_MAEPR_DIVISIBLE2] DEFAULT ('') FOR [DIVISIBLE2],
	CONSTRAINT [DF__MAEPR__MOVETIQ__20045DC3] DEFAULT (0) FOR [MOVETIQ],
	CONSTRAINT [DF_MAEPR_REPUESTO] DEFAULT ('') FOR [REPUESTO],
	CONSTRAINT [DF_MAEPR_VIDAMEDIA] DEFAULT (0) FOR [VIDAMEDIA],
	CONSTRAINT [DF__MAEPR__TRATVMEDI__275B66C8] DEFAULT (0) FOR [TRATVMEDIA],
	CONSTRAINT [DF__MAEPR__PRESALCLI__4E7533E9] DEFAULT (0) FOR [PRESALCLI1],
	CONSTRAINT [DF__MAEPR__PRESALCLI__4F695822] DEFAULT (0) FOR [PRESALCLI2],
	CONSTRAINT [DF__MAEPR__PRESDEPRO__505D7C5B] DEFAULT (0) FOR [PRESDEPRO1],
	CONSTRAINT [DF__MAEPR__PRESDEPRO__5151A094] DEFAULT (0) FOR [PRESDEPRO2],
	CONSTRAINT [DF__MAEPR__CONSALCLI__5245C4CD] DEFAULT (0) FOR [CONSALCLI1],
	CONSTRAINT [DF__MAEPR__CONSALCLI__5339E906] DEFAULT (0) FOR [CONSALCLI2],
	CONSTRAINT [DF__MAEPR__CONSDEPRO__542E0D3F] DEFAULT (0) FOR [CONSDEPRO1],
	CONSTRAINT [DF__MAEPR__CONSDEPRO__55223178] DEFAULT (0) FOR [CONSDEPRO2],
	CONSTRAINT [DF__MAEPR__DEVENGNCV__561655B1] DEFAULT (0) FOR [DEVENGNCV1],
	CONSTRAINT [DF__MAEPR__DEVENGNCV__570A79EA] DEFAULT (0) FOR [DEVENGNCV2],
	CONSTRAINT [DF__MAEPR__DEVENGNCC__57FE9E23] DEFAULT (0) FOR [DEVENGNCC1],
	CONSTRAINT [DF__MAEPR__DEVENGNCC__58F2C25C] DEFAULT (0) FOR [DEVENGNCC2],
	CONSTRAINT [DF__MAEPR__DEVSINNCV__59E6E695] DEFAULT (0) FOR [DEVSINNCV1],
	CONSTRAINT [DF__MAEPR__DEVSINNCV__5ADB0ACE] DEFAULT (0) FOR [DEVSINNCV2],
	CONSTRAINT [DF__MAEPR__DEVSINNCC__5BCF2F07] DEFAULT (0) FOR [DEVSINNCC1],
	CONSTRAINT [DF__MAEPR__DEVSINNCC__5CC35340] DEFAULT (0) FOR [DEVSINNCC2],
	CONSTRAINT [DF__MAEPR__STENFAB1__5DB77779] DEFAULT (0) FOR [STENFAB1],
	CONSTRAINT [DF__MAEPR__STENFAB2__5EAB9BB2] DEFAULT (0) FOR [STENFAB2],
	CONSTRAINT [DF__MAEPR__STREQFAB1__5F9FBFEB] DEFAULT (0) FOR [STREQFAB1],
	CONSTRAINT [DF__MAEPR__STREQFAB2__6093E424] DEFAULT (0) FOR [STREQFAB2]
GO

ALTER TABLE [dbo].[MAEPREM] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEPREM_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEPREM_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_MAEPREM_STMIPR] DEFAULT (0) FOR [STMIPR],
	CONSTRAINT [DF_MAEPREM_STMAPR] DEFAULT (0) FOR [STMAPR],
	CONSTRAINT [DF_MAEPREM_STFI1] DEFAULT (0) FOR [STFI1],
	CONSTRAINT [DF_MAEPREM_STDV1] DEFAULT (0) FOR [STDV1],
	CONSTRAINT [DF_MAEPREM_STOCNV1] DEFAULT (0) FOR [STOCNV1],
	CONSTRAINT [DF_MAEPREM_STFI2] DEFAULT (0) FOR [STFI2],
	CONSTRAINT [DF_MAEPREM_STDV2] DEFAULT (0) FOR [STDV2],
	CONSTRAINT [DF_MAEPREM_STOCNV2] DEFAULT (0) FOR [STOCNV2],
	CONSTRAINT [DF_MAEPREM_PPUL01] DEFAULT (0) FOR [PPUL01],
	CONSTRAINT [DF_MAEPREM_PPUL02] DEFAULT (0) FOR [PPUL02],
	CONSTRAINT [DF_MAEPREM_MOUL] DEFAULT ('') FOR [MOUL],
	CONSTRAINT [DF_MAEPREM_TIMOUL] DEFAULT ('') FOR [TIMOUL],
	CONSTRAINT [DF_MAEPREM_TAUL] DEFAULT (0) FOR [TAUL],
	CONSTRAINT [DF_MAEPREM_PM] DEFAULT (0) FOR [PM],
	CONSTRAINT [DF_MAEPREM_METRCO] DEFAULT ('') FOR [METRCO],
	CONSTRAINT [DF_MAEPREM_VALI] DEFAULT (0) FOR [VALI],
	CONSTRAINT [DF_MAEPREM_PMIN] DEFAULT (0) FOR [PMIN],
	CONSTRAINT [DF_MAEPREM_STDV1C] DEFAULT (0) FOR [STDV1C],
	CONSTRAINT [DF_MAEPREM_STOCNV1C] DEFAULT (0) FOR [STOCNV1C],
	CONSTRAINT [DF_MAEPREM_STDV2C] DEFAULT (0) FOR [STDV2C],
	CONSTRAINT [DF_MAEPREM_STOCNV2C] DEFAULT (0) FOR [STOCNV2C],
	CONSTRAINT [DF_MAEPREM_DESPNOFAC1] DEFAULT (0) FOR [DESPNOFAC1],
	CONSTRAINT [DF_MAEPREM_DESPNOFAC2] DEFAULT (0) FOR [DESPNOFAC2],
	CONSTRAINT [DF_MAEPREM_RECENOFAC1] DEFAULT (0) FOR [RECENOFAC1],
	CONSTRAINT [DF_MAEPREM_RECENOFAC2] DEFAULT (0) FOR [RECENOFAC2],
	CONSTRAINT [DF_MAEPREM_LISCOSTO] DEFAULT ('') FOR [LISCOSTO],
	CONSTRAINT [DF_MAEPREM_CUENTACON] DEFAULT ('') FOR [CUENTACON],
	CONSTRAINT [DF_MAEPREM_SUBAUXICON] DEFAULT ('') FOR [SUBAUXICON],
	CONSTRAINT [DF_MAEPREM_CUENTACOE] DEFAULT ('') FOR [CUENTACOE],
	CONSTRAINT [DF_MAEPREM_SUBAUXICOE] DEFAULT ('') FOR [SUBAUXICOE],
	CONSTRAINT [DF_MAEPREM_CUENTAVEN] DEFAULT ('') FOR [CUENTAVEN],
	CONSTRAINT [DF_MAEPREM_SUBAUXIVEN] DEFAULT ('') FOR [SUBAUXIVEN],
	CONSTRAINT [DF_MAEPREM_CUENTAVEE] DEFAULT ('') FOR [CUENTAVEE],
	CONSTRAINT [DF_MAEPREM_SUBAUXIVEE] DEFAULT ('') FOR [SUBAUXIVEE],
	CONSTRAINT [DF_MAEPREM_CUENTASIA] DEFAULT ('') FOR [CUENTASIA],
	CONSTRAINT [DF_MAEPREM_SUBAUXISIA] DEFAULT ('') FOR [SUBAUXISIA],
	CONSTRAINT [DF_MAEPREM_CUENTASIP] DEFAULT ('') FOR [CUENTASIP],
	CONSTRAINT [DF_MAEPREM_SUBAUXISIP] DEFAULT ('') FOR [SUBAUXISIP],
	CONSTRAINT [DF_MAEPREM_CUENTARIA] DEFAULT ('') FOR [CUENTARIA],
	CONSTRAINT [DF_MAEPREM_SUBAUXIRIA] DEFAULT ('') FOR [SUBAUXIRIA],
	CONSTRAINT [DF_MAEPREM_CUENTARIP] DEFAULT ('') FOR [CUENTARIP],
	CONSTRAINT [DF_MAEPREM_SUBAUXIRIP] DEFAULT ('') FOR [SUBAUXIRIP],
	CONSTRAINT [DF_MAEPREM_CUENTASTP] DEFAULT ('') FOR [CUENTASTP],
	CONSTRAINT [DF_MAEPREM_SUBAUXISTP] DEFAULT ('') FOR [SUBAUXISTP],
	CONSTRAINT [DF_MAEPREM_CUENTARTP] DEFAULT ('') FOR [CUENTARTP],
	CONSTRAINT [DF_MAEPREM_SUBAUXIRTP] DEFAULT ('') FOR [SUBAUXIRTP],
	CONSTRAINT [DF_MAEPREM_CTACOSVTA] DEFAULT ('') FOR [CTACOSVTA],
	CONSTRAINT [DF_MAEPREM_SUBCOSVTA] DEFAULT ('') FOR [SUBCOSVTA],
	CONSTRAINT [DF_MAEPREM_CTAVCONSI] DEFAULT ('') FOR [CTAVCONSI],
	CONSTRAINT [DF_MAEPREM_SUBVCONSI] DEFAULT ('') FOR [SUBVCONSI],
	CONSTRAINT [DF_MAEPREM_CTACCONSI] DEFAULT ('') FOR [CTACCONSI],
	CONSTRAINT [DF_MAEPREM_SUBCCONSI] DEFAULT ('') FOR [SUBCCONSI],
	CONSTRAINT [DF_MAEPREM_CTAVPREST] DEFAULT ('') FOR [CTAVPREST],
	CONSTRAINT [DF_MAEPREM_SUBVPREST] DEFAULT ('') FOR [SUBVPREST],
	CONSTRAINT [DF_MAEPREM_CTACPREST] DEFAULT ('') FOR [CTACPREST],
	CONSTRAINT [DF_MAEPREM_SUBCPREST] DEFAULT ('') FOR [SUBCPREST],
	CONSTRAINT [DF_MAEPREM_CTAVCONSIH] DEFAULT ('') FOR [CTAVCONSIH],
	CONSTRAINT [DF_MAEPREM_SUBVCONSIH] DEFAULT ('') FOR [SUBVCONSIH],
	CONSTRAINT [DF_MAEPREM_CTACCONSIH] DEFAULT ('') FOR [CTACCONSIH],
	CONSTRAINT [DF_MAEPREM_SUBCCONSIH] DEFAULT ('') FOR [SUBCCONSIH],
	CONSTRAINT [DF_MAEPREM_CTAVPRESTH] DEFAULT ('') FOR [CTAVPRESTH],
	CONSTRAINT [DF_MAEPREM_SUBVPRESTH] DEFAULT ('') FOR [SUBVPRESTH],
	CONSTRAINT [DF_MAEPREM_CTACPRESTH] DEFAULT ('') FOR [CTACPRESTH],
	CONSTRAINT [DF_MAEPREM_SUBCPRESTH] DEFAULT ('') FOR [SUBCPRESTH],
	CONSTRAINT [DF_MAEPREM_STTR1] DEFAULT (0) FOR [STTR1],
	CONSTRAINT [DF_MAEPREM_STTR2] DEFAULT (0) FOR [STTR2],
	CONSTRAINT [DF_MAEPREM_CTAAJUSAL] DEFAULT ('') FOR [CTAAJUSAL],
	CONSTRAINT [DF_MAEPREM_SUBAJUSAL] DEFAULT ('') FOR [SUBAJUSAL],
	CONSTRAINT [DF_MAEPREM_CTAAJUING] DEFAULT ('') FOR [CTAAJUING],
	CONSTRAINT [DF_MAEPREM_SUBAJUING] DEFAULT ('') FOR [SUBAJUING],
	CONSTRAINT [DF_MAEPREM_CTAFXRCOM] DEFAULT ('') FOR [CTAFXRCOM],
	CONSTRAINT [DF_MAEPREM_SUBFXRCOM] DEFAULT ('') FOR [SUBFXRCOM],
	CONSTRAINT [DF_MAEPREM_CTAFXRVTA] DEFAULT ('') FOR [CTAFXRVTA],
	CONSTRAINT [DF_MAEPREM_SUBFXRVTA] DEFAULT ('') FOR [SUBFXRVTA],
	CONSTRAINT [DF_MAEPREM_CTAPROCOVE] DEFAULT ('') FOR [CTAPROCOVE],
	CONSTRAINT [DF_MAEPREM_SUBPROCOVE] DEFAULT ('') FOR [SUBPROCOVE],
	CONSTRAINT [DF__MAEPREM__PRESALC__6188085D] DEFAULT (0) FOR [PRESALCLI1],
	CONSTRAINT [DF__MAEPREM__PRESALC__627C2C96] DEFAULT (0) FOR [PRESALCLI2],
	CONSTRAINT [DF__MAEPREM__PRESDEP__637050CF] DEFAULT (0) FOR [PRESDEPRO1],
	CONSTRAINT [DF__MAEPREM__PRESDEP__64647508] DEFAULT (0) FOR [PRESDEPRO2],
	CONSTRAINT [DF__MAEPREM__CONSALC__65589941] DEFAULT (0) FOR [CONSALCLI1],
	CONSTRAINT [DF__MAEPREM__CONSALC__664CBD7A] DEFAULT (0) FOR [CONSALCLI2],
	CONSTRAINT [DF__MAEPREM__CONSDEP__6740E1B3] DEFAULT (0) FOR [CONSDEPRO1],
	CONSTRAINT [DF__MAEPREM__CONSDEP__683505EC] DEFAULT (0) FOR [CONSDEPRO2],
	CONSTRAINT [DF__MAEPREM__DEVENGN__69292A25] DEFAULT (0) FOR [DEVENGNCV1],
	CONSTRAINT [DF__MAEPREM__DEVENGN__6A1D4E5E] DEFAULT (0) FOR [DEVENGNCV2],
	CONSTRAINT [DF__MAEPREM__DEVENGN__6B117297] DEFAULT (0) FOR [DEVENGNCC1],
	CONSTRAINT [DF__MAEPREM__DEVENGN__6C0596D0] DEFAULT (0) FOR [DEVENGNCC2],
	CONSTRAINT [DF__MAEPREM__DEVSINN__6CF9BB09] DEFAULT (0) FOR [DEVSINNCV1],
	CONSTRAINT [DF__MAEPREM__DEVSINN__6DEDDF42] DEFAULT (0) FOR [DEVSINNCV2],
	CONSTRAINT [DF__MAEPREM__DEVSINN__6EE2037B] DEFAULT (0) FOR [DEVSINNCC1],
	CONSTRAINT [DF__MAEPREM__DEVSINN__6FD627B4] DEFAULT (0) FOR [DEVSINNCC2],
	CONSTRAINT [DF__MAEPREM__STENFAB__70CA4BED] DEFAULT (0) FOR [STENFAB1],
	CONSTRAINT [DF__MAEPREM__STENFAB__71BE7026] DEFAULT (0) FOR [STENFAB2],
	CONSTRAINT [DF__MAEPREM__STREQFA__72B2945F] DEFAULT (0) FOR [STREQFAB1],
	CONSTRAINT [DF__MAEPREM__STREQFA__73A6B898] DEFAULT (0) FOR [STREQFAB2]
GO

ALTER TABLE [dbo].[MAEPROBS] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEPROBS_MENSAJE02] DEFAULT ('') FOR [MENSAJE02]
GO

ALTER TABLE [dbo].[MAESERIE] WITH NOCHECK ADD
	CONSTRAINT [DF_MAESERIE_ESNUEVA] DEFAULT (0) FOR [ESNUEVA],
	CONSTRAINT [DF_MAESERIE_HOROMETRO] DEFAULT ('') FOR [HOROMETRO]
GO

ALTER TABLE [dbo].[MAEST] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEST_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEST_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_MAEST_KOBO] DEFAULT ('') FOR [KOBO],
	CONSTRAINT [DF_MAEST_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_MAEST_STFI1] DEFAULT (0) FOR [STFI1],
	CONSTRAINT [DF_MAEST_STDV1] DEFAULT (0) FOR [STDV1],
	CONSTRAINT [DF_MAEST_STOCNV1] DEFAULT (0) FOR [STOCNV1],
	CONSTRAINT [DF_MAEST_STFI2] DEFAULT (0) FOR [STFI2],
	CONSTRAINT [DF_MAEST_STDV2] DEFAULT (0) FOR [STDV2],
	CONSTRAINT [DF_MAEST_STOCNV2] DEFAULT (0) FOR [STOCNV2],
	CONSTRAINT [DF_MAEST_STDV1C] DEFAULT (0) FOR [STDV1C],
	CONSTRAINT [DF_MAEST_STOCNV1C] DEFAULT (0) FOR [STOCNV1C],
	CONSTRAINT [DF_MAEST_STDV2C] DEFAULT (0) FOR [STDV2C],
	CONSTRAINT [DF_MAEST_STOCNV2C] DEFAULT (0) FOR [STOCNV2C],
	CONSTRAINT [DF_MAEST_DESPNOFAC1] DEFAULT (0) FOR [DESPNOFAC1],
	CONSTRAINT [DF_MAEST_DESPNOFAC2] DEFAULT (0) FOR [DESPNOFAC2],
	CONSTRAINT [DF_MAEST_RECENOFAC1] DEFAULT (0) FOR [RECENOFAC1],
	CONSTRAINT [DF_MAEST_RECENOFAC2] DEFAULT (0) FOR [RECENOFAC2],
	CONSTRAINT [DF_MAEST_STTR1] DEFAULT (0) FOR [STTR1],
	CONSTRAINT [DF_MAEST_STTR2] DEFAULT (0) FOR [STTR2],
	CONSTRAINT [DF__MAEST__PRESALCLI__749ADCD1] DEFAULT (0) FOR [PRESALCLI1],
	CONSTRAINT [DF__MAEST__PRESALCLI__758F010A] DEFAULT (0) FOR [PRESALCLI2],
	CONSTRAINT [DF__MAEST__PRESDEPRO__76832543] DEFAULT (0) FOR [PRESDEPRO1],
	CONSTRAINT [DF__MAEST__PRESDEPRO__7777497C] DEFAULT (0) FOR [PRESDEPRO2],
	CONSTRAINT [DF__MAEST__CONSALCLI__786B6DB5] DEFAULT (0) FOR [CONSALCLI1],
	CONSTRAINT [DF__MAEST__CONSALCLI__795F91EE] DEFAULT (0) FOR [CONSALCLI2],
	CONSTRAINT [DF__MAEST__CONSDEPRO__7A53B627] DEFAULT (0) FOR [CONSDEPRO1],
	CONSTRAINT [DF__MAEST__CONSDEPRO__7B47DA60] DEFAULT (0) FOR [CONSDEPRO2],
	CONSTRAINT [DF__MAEST__DEVENGNCV__7C3BFE99] DEFAULT (0) FOR [DEVENGNCV1],
	CONSTRAINT [DF__MAEST__DEVENGNCV__7D3022D2] DEFAULT (0) FOR [DEVENGNCV2],
	CONSTRAINT [DF__MAEST__DEVENGNCC__7E24470B] DEFAULT (0) FOR [DEVENGNCC1],
	CONSTRAINT [DF__MAEST__DEVENGNCC__7F186B44] DEFAULT (0) FOR [DEVENGNCC2],
	CONSTRAINT [DF__MAEST__DEVSINNCV__000C8F7D] DEFAULT (0) FOR [DEVSINNCV1],
	CONSTRAINT [DF__MAEST__DEVSINNCV__0100B3B6] DEFAULT (0) FOR [DEVSINNCV2],
	CONSTRAINT [DF__MAEST__DEVSINNCC__01F4D7EF] DEFAULT (0) FOR [DEVSINNCC1],
	CONSTRAINT [DF__MAEST__DEVSINNCC__02E8FC28] DEFAULT (0) FOR [DEVSINNCC2],
	CONSTRAINT [DF__MAEST__STENFAB1__03DD2061] DEFAULT (0) FOR [STENFAB1],
	CONSTRAINT [DF__MAEST__STENFAB2__04D1449A] DEFAULT (0) FOR [STENFAB2],
	CONSTRAINT [DF__MAEST__STREQFAB1__05C568D3] DEFAULT (0) FOR [STREQFAB1],
	CONSTRAINT [DF__MAEST__STREQFAB2__06B98D0C] DEFAULT (0) FOR [STREQFAB2]
GO

ALTER TABLE [dbo].[MAETRANS] WITH NOCHECK ADD
	CONSTRAINT [DF__MAETRANS__NUDETR__375B2DB9] DEFAULT (0) FOR [NUDETRANS]
GO

ALTER TABLE [dbo].[MAEUS] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEUS_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_MAEUS_KOUS] DEFAULT ('') FOR [KOUS],
	CONSTRAINT [DF_MAEUS_KOOP] DEFAULT ('') FOR [KOOP],
	CONSTRAINT [DF_MAEUS_ECKOUS] DEFAULT (0) FOR [ECKOUS],
	CONSTRAINT [DF_MAEUS_TIPO] DEFAULT ('') FOR [TIPO],
	CONSTRAINT [DF_MAEUS_VALOR] DEFAULT (0) FOR [VALOR]
GO

ALTER TABLE [dbo].[MAEVEN] WITH NOCHECK ADD
	CONSTRAINT [DF_MAEVEN_IDMAEEDO] DEFAULT (0) FOR [IDMAEEDO],
	CONSTRAINT [DF_MAEVEN_ESPGVE] DEFAULT ('') FOR [ESPGVE],
	CONSTRAINT [DF_MAEVEN_VAVE] DEFAULT (0) FOR [VAVE],
	CONSTRAINT [DF_MAEVEN_VAABVE] DEFAULT (0) FOR [VAABVE]
GO

ALTER TABLE [dbo].[MALERT] WITH NOCHECK ADD
	CONSTRAINT [DF__MALERT__ESTADO__33173237] DEFAULT (0) FOR [ESTADO],
	CONSTRAINT [DF__MALERT__PARAMETR__340B5670] DEFAULT ('') FOR [PARAMETROS],
	CONSTRAINT [DF__MALERT__PERIODO__34FF7AA9] DEFAULT (0) FOR [PERIODO],
	CONSTRAINT [DF__MALERT__TPOSUSPE__35F39EE2] DEFAULT (0) FOR [TPOSUSPEN],
	CONSTRAINT [DF__MALERT__DIASSEM__36E7C31B] DEFAULT ('') FOR [DIASSEM],
	CONSTRAINT [DF__MALERT__DIASMES__37DBE754] DEFAULT ('') FOR [DIASMES],
	CONSTRAINT [DF__MALERT__HORAINIP__38D00B8D] DEFAULT (0) FOR [HORAINIPER],
	CONSTRAINT [DF__MALERT__HORAFINP__39C42FC6] DEFAULT (0) FOR [HORAFINPER],
	CONSTRAINT [DF__MALERT__TPOULTES__3AB853FF] DEFAULT (0) FOR [TPOULTEST],
	CONSTRAINT [DF__MALERT__TPOPROES__3BAC7838] DEFAULT (0) FOR [TPOPROEST],
	CONSTRAINT [DF__MALERT__CONDAVIS__3CA09C71] DEFAULT ('') FOR [CONDAVISO],
	CONSTRAINT [DF__MALERT__RESUALER__3D94C0AA] DEFAULT (0) FOR [RESUALERT],
	CONSTRAINT [DF__MALERT__VRESUALE__3E88E4E3] DEFAULT ('') FOR [VRESUALERT],
	CONSTRAINT [DF__MALERT__VINDICAD__3F7D091C] DEFAULT (0) FOR [VINDICADOR]
GO

ALTER TABLE [dbo].[MHALERT] WITH NOCHECK ADD
	CONSTRAINT [DF__MHALERT__RESUALE__425975C7] DEFAULT (0) FOR [RESUALERT],
	CONSTRAINT [DF__MHALERT__VRESUAL__434D9A00] DEFAULT ('') FOR [VRESUALERT],
	CONSTRAINT [DF__MHALERT__VINDICA__4441BE39] DEFAULT (0) FOR [VINDICADOR]
GO

ALTER TABLE [dbo].[ORBAUS] WITH NOCHECK ADD
	CONSTRAINT [PK_ORBAUS] PRIMARY KEY  NONCLUSTERED
	(
		[KOUS]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[ORBREAL] WITH NOCHECK ADD
	CONSTRAINT [DF_ORBREAL_FECHA] DEFAULT (getdate()) FOR [FECHA],
	CONSTRAINT [DF_ORBREAL_LAHORA] DEFAULT (getdate()) FOR [LAHORA]
GO

ALTER TABLE [dbo].[PASPD] WITH NOCHECK ADD
	CONSTRAINT [DF_PASPD_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PASPD_NUASP] DEFAULT ('') FOR [NUASP],
	CONSTRAINT [DF_PASPD_KOFUASP] DEFAULT ('') FOR [KOFUASP],
	CONSTRAINT [DF_PASPD_EMPREOT] DEFAULT ('') FOR [EMPREOT],
	CONSTRAINT [DF_PASPD_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PASPD_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PASPD_EMPRECOTI] DEFAULT ('') FOR [EMPRECOTI],
	CONSTRAINT [DF_PASPD_DESDE] DEFAULT ('') FOR [DESDE],
	CONSTRAINT [DF_PASPD_NUMECOTI] DEFAULT ('') FOR [NUMECOTI],
	CONSTRAINT [DF_PASPD_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_PASPD_NREGCOT] DEFAULT ('') FOR [NREGCOT],
	CONSTRAINT [DF_PASPD_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PASPD_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PASPD_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_PASPD_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_PASPD_DESISTIDO] DEFAULT (0) FOR [DESISTIDO]
GO

ALTER TABLE [dbo].[PASPE] WITH NOCHECK ADD
	CONSTRAINT [DF_PASPE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PASPE_NUASP] DEFAULT ('') FOR [NUASP],
	CONSTRAINT [DF_PASPE_KOFUASP] DEFAULT ('') FOR [KOFUASP],
	CONSTRAINT [DF_PASPE_REFERENCIA] DEFAULT ('') FOR [REFERENCIA]
GO

ALTER TABLE [dbo].[PAYUDAS] WITH NOCHECK ADD
	CONSTRAINT [DF_PAYUDAS_NREG] DEFAULT (0) FOR [NREG]
GO

ALTER TABLE [dbo].[PCALEN] WITH NOCHECK ADD
	CONSTRAINT [DF_PCALEN_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PCALEN_NDIA] DEFAULT (0) FOR [NDIA],
	CONSTRAINT [DF_PCALEN_HORASDIA] DEFAULT (0) FOR [HORASDIA],
	CONSTRAINT [DF_PCALEN_HCALEN] DEFAULT (0) FOR [HCALEN],
	CONSTRAINT [DF_PCALEN_HORAUNO] DEFAULT (0) FOR [HORAUNO]
GO

ALTER TABLE [dbo].[PDATFAD] WITH NOCHECK ADD
	CONSTRAINT [DF_PDATFAD_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDATFAD_NUMDF] DEFAULT ('') FOR [NUMDF],
	CONSTRAINT [DF_PDATFAD_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PDATFAD_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PDATFAD_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_PDATFAD_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PDATFAD_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PDATFAD_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PDATFAD_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PDATFAD_REALJOR] DEFAULT (0) FOR [REALJOR],
	CONSTRAINT [DF_PDATFAD_HORAINI] DEFAULT (0) FOR [HORAINI],
	CONSTRAINT [DF_PDATFAD_HORATER] DEFAULT (0) FOR [HORATER],
	CONSTRAINT [DF_PDATFAD_TIEMPO] DEFAULT (0) FOR [TIEMPO],
	CONSTRAINT [DF_PDATFAD_OBRERO1] DEFAULT ('') FOR [OBRERO1],
	CONSTRAINT [DF_PDATFAD_OBRERO2] DEFAULT ('') FOR [OBRERO2],
	CONSTRAINT [DF_PDATFAD_OBRERO3] DEFAULT ('') FOR [OBRERO3],
	CONSTRAINT [DF_PDATFAD_OBRERO4] DEFAULT ('') FOR [OBRERO4],
	CONSTRAINT [DF_PDATFAD_OBRERO5] DEFAULT ('') FOR [OBRERO5],
	CONSTRAINT [DF_PDATFAD_OBRERO6] DEFAULT ('') FOR [OBRERO6],
	CONSTRAINT [DF_PDATFAD_ESULTOPER] DEFAULT (0) FOR [ESULTOPER],
	CONSTRAINT [DF_PDATFAD_UDAD2] DEFAULT ('') FOR [UDAD2],
	CONSTRAINT [DF_PDATFAD_REALJOR2] DEFAULT (0) FOR [REALJOR2],
	CONSTRAINT [DF_PDATFAD_RLUD] DEFAULT (0) FOR [RLUD],
	CONSTRAINT [DF_PDATFAD_IDGDI] DEFAULT (0) FOR [IDGDI]
GO

ALTER TABLE [dbo].[PDATFAE] WITH NOCHECK ADD
	CONSTRAINT [DF_PDATFAE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDATFAE_NUMDF] DEFAULT ('') FOR [NUMDF],
	CONSTRAINT [DF_PDATFAE_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PDATFAE_RESPONSABL] DEFAULT ('') FOR [RESPONSABL],
	CONSTRAINT [DF_PDATFAE_REQCONFIR] DEFAULT (0) FOR [REQCONFIR]
GO

ALTER TABLE [dbo].[PDATODC] WITH NOCHECK ADD
	CONSTRAINT [DF_PDATODC_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDATODC_NUMDF] DEFAULT ('') FOR [NUMDF],
	CONSTRAINT [DF_PDATODC_NREGODC] DEFAULT ('') FOR [NREGODC],
	CONSTRAINT [DF_PDATODC_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PDATODC_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_PDATODC_CARPR01] DEFAULT (0) FOR [CARPR01],
	CONSTRAINT [DF_PDATODC_CARPR02] DEFAULT (0) FOR [CARPR02]
GO

ALTER TABLE [dbo].[PDATTAD] WITH NOCHECK ADD
	CONSTRAINT [DF_PDATTAD_IDPDATTAE] DEFAULT (0) FOR [IDPDATTAE],
	CONSTRAINT [DF_PDATTAD_OPERARIO] DEFAULT ('') FOR [OPERARIO],
	CONSTRAINT [DF_PDATTAD_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_PDATTAD_ARCHIRST] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF_PDATTAD_IDRST] DEFAULT (0) FOR [IDRST]
GO

ALTER TABLE [dbo].[PDATTAE] WITH NOCHECK ADD
	CONSTRAINT [DF_PDATTAE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDATTAE_NUMDF] DEFAULT ('') FOR [NUMDF],
	CONSTRAINT [DF_PDATTAE_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PDATTAE_RESPONSABL] DEFAULT ('') FOR [RESPONSABL]
GO

ALTER TABLE [dbo].[PDIMCAR] WITH NOCHECK ADD
	CONSTRAINT [DF_PDIMCAR_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_PDIMCAR_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PDIMCAR_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PDIMCAR_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PDIMCAR_NOMBRE] DEFAULT ('') FOR [NOMBRE],
	CONSTRAINT [DF_PDIMCAR_UDAD] DEFAULT ('') FOR [UDAD]
GO

ALTER TABLE [dbo].[PDIMCLI] WITH NOCHECK ADD
	CONSTRAINT [DF_PDIMCLI_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_PDIMCLI_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PDIMCLI_NOMBRE] DEFAULT ('') FOR [NOMBRE]
GO

ALTER TABLE [dbo].[PDIMEN] WITH NOCHECK ADD
	CONSTRAINT [DF_PDIMEN_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDIMEN_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PDIMEN_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PDIMEN_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PDIMEN_NOMBRE] DEFAULT ('') FOR [NOMBRE],
	CONSTRAINT [DF_PDIMEN_UDAD] DEFAULT ('') FOR [UDAD]
GO

ALTER TABLE [dbo].[PDIMOT] WITH NOCHECK ADD
	CONSTRAINT [DF_PDIMOT_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PDIMOT_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PDIMOT_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PDIMOT_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PDIMOT_NOMBRE] DEFAULT ('') FOR [NOMBRE],
	CONSTRAINT [DF_PDIMOT_UDAD] DEFAULT ('') FOR [UDAD]
GO

ALTER TABLE [dbo].[PHDMAQ] WITH NOCHECK ADD
	CONSTRAINT [DF_PHDMAQ_HORAINI] DEFAULT (0) FOR [HORAINI],
	CONSTRAINT [DF_PHDMAQ_HORATER] DEFAULT (0) FOR [HORATER],
	CONSTRAINT [DF_PHDMAQ_TIEMPO] DEFAULT (0) FOR [TIEMPO]
GO

ALTER TABLE [dbo].[PHORAMAQ] WITH NOCHECK ADD
	CONSTRAINT [DF_PHORAMAQ_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PHORAMAQ_DHORAI] DEFAULT (0) FOR [DHORAI],
	CONSTRAINT [DF_PHORAMAQ_DHORAF] DEFAULT (0) FOR [DHORAF],
	CONSTRAINT [DF_PHORAMAQ_CODUTI] DEFAULT (0) FOR [CODUTI],
	CONSTRAINT [DF_PHORAMAQ_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PHORAMAQ_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PHORAMAQ_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PHORAMAQ_ELORDEN] DEFAULT (0) FOR [ELORDEN]
GO

ALTER TABLE [dbo].[PMAEOB] WITH NOCHECK ADD
	CONSTRAINT [DF_PMAEOB_VAHROB] DEFAULT (0) FOR [VAHROB],
	CONSTRAINT [DF_PMAEOB_KOJORNADA] DEFAULT ('') FOR [KOJORNADA],
	CONSTRAINT [DF_PMAEOB_VAHROBHE] DEFAULT (0) FOR [VAHROBHE]
GO

ALTER TABLE [dbo].[PMAQALT] WITH NOCHECK ADD
	CONSTRAINT [DF_PMAQALT_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PMAQALT_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_PMAQALT_CODMAQPR] DEFAULT ('') FOR [CODMAQPR],
	CONSTRAINT [DF_PMAQALT_CODMAQAL] DEFAULT ('') FOR [CODMAQAL],
	CONSTRAINT [DF_PMAQALT_RENDIMIEN] DEFAULT (0) FOR [RENDIMIEN]
GO

ALTER TABLE [dbo].[PMAQUI] WITH NOCHECK ADD
	CONSTRAINT [DF_PMAQUI_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PMAQUI_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PMAQUI_NOMBREMAQ] DEFAULT ('') FOR [NOMBREMAQ],
	CONSTRAINT [DF_PMAQUI_DESCRIPCIO] DEFAULT ('') FOR [DESCRIPCIO],
	CONSTRAINT [DF_PMAQUI_HLUI1] DEFAULT (0) FOR [HLUI1],
	CONSTRAINT [DF_PMAQUI_HLUT1] DEFAULT (0) FOR [HLUT1],
	CONSTRAINT [DF_PMAQUI_HLUI2] DEFAULT (0) FOR [HLUI2],
	CONSTRAINT [DF_PMAQUI_HLUT2] DEFAULT (0) FOR [HLUT2],
	CONSTRAINT [DF_PMAQUI_HLUI3] DEFAULT (0) FOR [HLUI3],
	CONSTRAINT [DF_PMAQUI_HLUT3] DEFAULT (0) FOR [HLUT3],
	CONSTRAINT [DF_PMAQUI_HMAI1] DEFAULT (0) FOR [HMAI1],
	CONSTRAINT [DF_PMAQUI_HMAT1] DEFAULT (0) FOR [HMAT1],
	CONSTRAINT [DF_PMAQUI_HMAI2] DEFAULT (0) FOR [HMAI2],
	CONSTRAINT [DF_PMAQUI_HMAT2] DEFAULT (0) FOR [HMAT2],
	CONSTRAINT [DF_PMAQUI_HMAI3] DEFAULT (0) FOR [HMAI3],
	CONSTRAINT [DF_PMAQUI_HMAT3] DEFAULT (0) FOR [HMAT3],
	CONSTRAINT [DF_PMAQUI_HMII1] DEFAULT (0) FOR [HMII1],
	CONSTRAINT [DF_PMAQUI_HMIT1] DEFAULT (0) FOR [HMIT1],
	CONSTRAINT [DF_PMAQUI_HMII2] DEFAULT (0) FOR [HMII2],
	CONSTRAINT [DF_PMAQUI_HMIT2] DEFAULT (0) FOR [HMIT2],
	CONSTRAINT [DF_PMAQUI_HMII3] DEFAULT (0) FOR [HMII3],
	CONSTRAINT [DF_PMAQUI_HMIT3] DEFAULT (0) FOR [HMIT3],
	CONSTRAINT [DF_PMAQUI_HJUI1] DEFAULT (0) FOR [HJUI1],
	CONSTRAINT [DF_PMAQUI_HJUT1] DEFAULT (0) FOR [HJUT1],
	CONSTRAINT [DF_PMAQUI_HJUI2] DEFAULT (0) FOR [HJUI2],
	CONSTRAINT [DF_PMAQUI_HJUT2] DEFAULT (0) FOR [HJUT2],
	CONSTRAINT [DF_PMAQUI_HJUI3] DEFAULT (0) FOR [HJUI3],
	CONSTRAINT [DF_PMAQUI_HJUT3] DEFAULT (0) FOR [HJUT3],
	CONSTRAINT [DF_PMAQUI_HVII1] DEFAULT (0) FOR [HVII1],
	CONSTRAINT [DF_PMAQUI_HVIT1] DEFAULT (0) FOR [HVIT1],
	CONSTRAINT [DF_PMAQUI_HVII2] DEFAULT (0) FOR [HVII2],
	CONSTRAINT [DF_PMAQUI_HVIT2] DEFAULT (0) FOR [HVIT2],
	CONSTRAINT [DF_PMAQUI_HVII3] DEFAULT (0) FOR [HVII3],
	CONSTRAINT [DF_PMAQUI_HVIT3] DEFAULT (0) FOR [HVIT3],
	CONSTRAINT [DF_PMAQUI_HSAI1] DEFAULT (0) FOR [HSAI1],
	CONSTRAINT [DF_PMAQUI_HSAT1] DEFAULT (0) FOR [HSAT1],
	CONSTRAINT [DF_PMAQUI_HSAI2] DEFAULT (0) FOR [HSAI2],
	CONSTRAINT [DF_PMAQUI_HSAT2] DEFAULT (0) FOR [HSAT2],
	CONSTRAINT [DF_PMAQUI_HSAI3] DEFAULT (0) FOR [HSAI3],
	CONSTRAINT [DF_PMAQUI_HSAT3] DEFAULT (0) FOR [HSAT3],
	CONSTRAINT [DF_PMAQUI_HDOI1] DEFAULT (0) FOR [HDOI1],
	CONSTRAINT [DF_PMAQUI_HDOT1] DEFAULT (0) FOR [HDOT1],
	CONSTRAINT [DF_PMAQUI_HDOI2] DEFAULT (0) FOR [HDOI2],
	CONSTRAINT [DF_PMAQUI_HDOT2] DEFAULT (0) FOR [HDOT2],
	CONSTRAINT [DF_PMAQUI_HDOI3] DEFAULT (0) FOR [HDOI3],
	CONSTRAINT [DF_PMAQUI_HDOT3] DEFAULT (0) FOR [HDOT3],
	CONSTRAINT [DF_PMAQUI_PLANO] DEFAULT ('') FOR [PLANO],
	CONSTRAINT [DF_PMAQUI_TPOCRITICO] DEFAULT (0) FOR [TPOCRITICO],
	CONSTRAINT [DF_PMAQUI_PLANTA] DEFAULT ('') FOR [PLANTA],
	CONSTRAINT [DF_PMAQUI_MULTICARGA] DEFAULT ('') FOR [MULTICARGA],
	CONSTRAINT [DF_PMAQUI_CAPACIDAD] DEFAULT (0) FOR [CAPACIDAD],
	CONSTRAINT [DF_PMAQUI_UDADCARGA] DEFAULT ('') FOR [UDADCARGA]
GO

ALTER TABLE [dbo].[PNOMCAR] WITH NOCHECK ADD
	CONSTRAINT [PK_PNOMCAR] PRIMARY KEY  NONCLUSTERED
	(
		[CODIGO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNOMDIM] WITH NOCHECK ADD
	CONSTRAINT [DF_PNOMDIM_VALOR] DEFAULT (0) FOR [VALOR],
	CONSTRAINT [DF_PNOMDIM_LARGOOBLI] DEFAULT (0) FOR [LARGOOBLI],
	CONSTRAINT [DF_PNOMDIM_LARGOMAX] DEFAULT (0) FOR [LARGOMAX]
GO

ALTER TABLE [dbo].[PNPA] WITH NOCHECK ADD
	CONSTRAINT [DF_PNPA_NREG] DEFAULT (0) FOR [NREG],
	CONSTRAINT [DF_PNPA_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF_PNPA_ESMODELO] DEFAULT ('') FOR [ESMODELO]
GO

ALTER TABLE [dbo].[PNPD] WITH NOCHECK ADD
	CONSTRAINT [DF_PNPD_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF_PNPD_ESMODELO] DEFAULT ('') FOR [ESMODELO]
GO

ALTER TABLE [dbo].[PNPE] WITH NOCHECK ADD
	CONSTRAINT [DF_PNPE_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF__PNPE__INACTIVA__462A06AB] DEFAULT (0) FOR [INACTIVA]
GO

ALTER TABLE [dbo].[PNPR] WITH NOCHECK ADD
	CONSTRAINT [DF_PNPR_POROPANT] DEFAULT (100) FOR [POROPANT],
	CONSTRAINT [DF_PNPR_PORREQCOMP] DEFAULT (100) FOR [PORREQCOMP],
	CONSTRAINT [PK_PNPR] PRIMARY KEY  NONCLUSTERED
	(
		[CODIGO],
		[ORDEN]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[PNPRA] WITH NOCHECK ADD
	CONSTRAINT [DF_PNPRA_POROPANT] DEFAULT (100) FOR [POROPANT],
	CONSTRAINT [DF_PNPRA_PORREQCOMP] DEFAULT (100) FOR [PORREQCOMP],
	CONSTRAINT [PK_PNPRA] PRIMARY KEY  NONCLUSTERED
	(
		[CODIGO],
		[ORDEN],
		[OPERACION]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[POBREFAD] WITH NOCHECK ADD
	CONSTRAINT [DF_POBREFAD_KOJORNADA] DEFAULT ('') FOR [KOJORNADA],
	CONSTRAINT [DF_POBREFAD_TIEMPOOBHE] DEFAULT (0) FOR [TIEMPOOBHE]
GO

ALTER TABLE [dbo].[PODCD] WITH NOCHECK ADD
	CONSTRAINT [DF_PODCD_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PODCD_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PODCD_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_PODCD_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_PODCD_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_PODCD_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_PODCD_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PODCD_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PODCD_UD01PR] DEFAULT ('') FOR [UD01PR],
	CONSTRAINT [DF_PODCD_RLUD] DEFAULT (0) FOR [RLUD],
	CONSTRAINT [DF_PODCD_UD02PR] DEFAULT ('') FOR [UD02PR],
	CONSTRAINT [DF_PODCD_CATPR01] DEFAULT (0) FOR [CATPR01],
	CONSTRAINT [DF_PODCD_CATPR02] DEFAULT (0) FOR [CATPR02],
	CONSTRAINT [DF_PODCD_CARPR01] DEFAULT (0) FOR [CARPR01],
	CONSTRAINT [DF_PODCD_CARPR02] DEFAULT (0) FOR [CARPR02],
	CONSTRAINT [DF_PODCD_CABPR01] DEFAULT (0) FOR [CABPR01],
	CONSTRAINT [DF_PODCD_CABPR02] DEFAULT (0) FOR [CABPR02],
	CONSTRAINT [DF_PODCD_VANELI] DEFAULT (0) FOR [VANELI]
GO

ALTER TABLE [dbo].[PODCE] WITH NOCHECK ADD
	CONSTRAINT [DF_PODCE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PODCE_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_PODCE_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_PODCE_REFERENCIA] DEFAULT ('') FOR [REFERENCIA],
	CONSTRAINT [DF_PODCE_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_PODCE_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PODCE_KOIN] DEFAULT ('') FOR [KOIN],
	CONSTRAINT [DF_PODCE_NOKOIN] DEFAULT ('') FOR [NOKOIN],
	CONSTRAINT [DF_PODCE_UD01IN] DEFAULT ('') FOR [UD01IN],
	CONSTRAINT [DF_PODCE_RLUD] DEFAULT (0) FOR [RLUD],
	CONSTRAINT [DF_PODCE_UD02IN] DEFAULT ('') FOR [UD02IN],
	CONSTRAINT [DF_PODCE_TTTODC] DEFAULT (0) FOR [TTTODC],
	CONSTRAINT [DF_PODCE_CATIN01] DEFAULT (0) FOR [CATIN01],
	CONSTRAINT [DF_PODCE_CATIN02] DEFAULT (0) FOR [CATIN02],
	CONSTRAINT [DF_PODCE_COTIN] DEFAULT (0) FOR [COTIN],
	CONSTRAINT [DF_PODCE_COTMO] DEFAULT (0) FOR [COTMO],
	CONSTRAINT [DF_PODCE_COTMA] DEFAULT (0) FOR [COTMA],
	CONSTRAINT [DF_PODCE_TTRODC] DEFAULT (0) FOR [TTRODC],
	CONSTRAINT [DF_PODCE_CARIN01] DEFAULT (0) FOR [CARIN01],
	CONSTRAINT [DF_PODCE_CARIN02] DEFAULT (0) FOR [CARIN02],
	CONSTRAINT [DF_PODCE_CARIN01FA] DEFAULT (0) FOR [CARIN01FA],
	CONSTRAINT [DF_PODCE_CORIN] DEFAULT (0) FOR [CORIN],
	CONSTRAINT [DF_PODCE_CORMO] DEFAULT (0) FOR [CORMO],
	CONSTRAINT [DF_PODCE_CORMA] DEFAULT (0) FOR [CORMA],
	CONSTRAINT [DF_PODCE_CATTOTPRFA] DEFAULT (0) FOR [CATTOTPRFA],
	CONSTRAINT [DF_PODCE_CARTOTPRFA] DEFAULT (0) FOR [CARTOTPRFA],
	CONSTRAINT [DF_PODCE_PPERDIDAT] DEFAULT (0) FOR [PPERDIDAT],
	CONSTRAINT [DF_PODCE_PERDIDAT] DEFAULT (0) FOR [PERDIDAT],
	CONSTRAINT [DF_PODCE_PPERDIDAR] DEFAULT (0) FOR [PPERDIDAR],
	CONSTRAINT [DF_PODCE_PERDIDAR] DEFAULT (0) FOR [PERDIDAR],
	CONSTRAINT [DF_PODCE_QUEMANDA] DEFAULT ('') FOR [QUEMANDA]
GO

ALTER TABLE [dbo].[POPER] WITH NOCHECK ADD
	CONSTRAINT [DF_POPER_TIPOOP] DEFAULT ('') FOR [TIPOOP],
	CONSTRAINT [DF_POPER_PUNTOS] DEFAULT (0) FOR [PUNTOS],
	CONSTRAINT [DF_POPER_LOTE] DEFAULT (0) FOR [LOTE],
	CONSTRAINT [DF_POPER_TPU] DEFAULT (0) FOR [TPU],
	CONSTRAINT [DF_POPER_RANGO_1] DEFAULT (0) FOR [RANGO_1],
	CONSTRAINT [DF_POPER_RANGO_2] DEFAULT (0) FOR [RANGO_2],
	CONSTRAINT [DF_POPER_RANGO_3] DEFAULT (0) FOR [RANGO_3],
	CONSTRAINT [DF_POPER_CUT] DEFAULT (0) FOR [CUT],
	CONSTRAINT [DF_POPER_CUP] DEFAULT (0) FOR [CUP],
	CONSTRAINT [DF_POPER_OBREROS] DEFAULT (0) FOR [OBREROS],
	CONSTRAINT [DF_POPER_CHMO] DEFAULT (0) FOR [CHMO],
	CONSTRAINT [DF_POPER_CHMOP] DEFAULT (0) FOR [CHMOP],
	CONSTRAINT [DF_POPER_PORTICKET] DEFAULT (0) FOR [PORTICKET],
	CONSTRAINT [DF_POPER_TPOTICKET] DEFAULT (0) FOR [TPOTICKET]
GO

ALTER TABLE [dbo].[POTD] WITH NOCHECK ADD
	CONSTRAINT [DF_POTD_IDPOTL] DEFAULT (0) FOR [IDPOTL],
	CONSTRAINT [DF_POTD_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_POTD_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_POTD_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_POTD_SUBNREG] DEFAULT ('') FOR [SUBNREG],
	CONSTRAINT [DF_POTD_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_POTD_PERTENECE] DEFAULT ('') FOR [PERTENECE],
	CONSTRAINT [DF_POTD_NIVEL] DEFAULT (0) FOR [NIVEL],
	CONSTRAINT [DF_POTD_AUXI] DEFAULT ('') FOR [AUXI],
	CONSTRAINT [DF_POTD_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_POTD_MARCANOM] DEFAULT ('') FOR [MARCANOM],
	CONSTRAINT [DF_POTD_CODNOMEN] DEFAULT ('') FOR [CODNOMEN],
	CONSTRAINT [DF_POTD_NUMDEEST] DEFAULT (0) FOR [NUMDEEST],
	CONSTRAINT [DF_POTD_GLOSA] DEFAULT ('') FOR [GLOSA],
	CONSTRAINT [DF_POTD_TIPOUNI] DEFAULT (0) FOR [TIPOUNI],
	CONSTRAINT [DF_POTD_DOBLEU] DEFAULT (0) FOR [DOBLEU],
	CONSTRAINT [DF_POTD_CANTIDADF] DEFAULT (0) FOR [CANTIDADF],
	CONSTRAINT [DF_POTD_CANTIDACF] DEFAULT (0) FOR [CANTIDACF],
	CONSTRAINT [DF_POTD_CANTIDADR] DEFAULT (0) FOR [CANTIDADR],
	CONSTRAINT [DF_POTD_CANTANTI] DEFAULT (0) FOR [CANTANTI],
	CONSTRAINT [DF_POTD_UNIDAD] DEFAULT ('') FOR [UNIDAD],
	CONSTRAINT [DF_POTD_UNIDADC] DEFAULT ('') FOR [UNIDADC],
	CONSTRAINT [DF_POTD_TIPO] DEFAULT ('') FOR [TIPO],
	CONSTRAINT [DF_POTD_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_POTD_CALIDAD] DEFAULT ('') FOR [CALIDAD],
	CONSTRAINT [DF_POTD_NIVELSUP] DEFAULT ('') FOR [NIVELSUP],
	CONSTRAINT [DF_POTD_NUMPLAN] DEFAULT ('') FOR [NUMPLAN],
	CONSTRAINT [DF_POTD_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_POTD_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_POTD_NREGODC] DEFAULT ('') FOR [NREGODC],
	CONSTRAINT [DF_POTD_SULIOTD] DEFAULT ('') FOR [SULIOTD],
	CONSTRAINT [DF_POTD_BOLIOTD] DEFAULT ('') FOR [BOLIOTD],
	CONSTRAINT [DF_POTD_C_SALIDA] DEFAULT (0) FOR [C_SALIDA]
GO

ALTER TABLE [dbo].[POTE] WITH NOCHECK ADD
	CONSTRAINT [DF_POTE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_POTE_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_POTE_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_POTE_REFERENCIA] DEFAULT ('') FOR [REFERENCIA],
	CONSTRAINT [DF_POTE_PLANO] DEFAULT ('') FOR [PLANO],
	CONSTRAINT [DF_POTE_EXTEN] DEFAULT ('') FOR [EXTEN],
	CONSTRAINT [DF_POTE_NUMPLAN] DEFAULT ('') FOR [NUMPLAN],
	CONSTRAINT [DF_POTE_SUOT] DEFAULT ('') FOR [SUOT],
	CONSTRAINT [DF_POTE_KOFUCRE] DEFAULT ('') FOR [KOFUCRE],
	CONSTRAINT [DF_POTE_KOFUCIE] DEFAULT ('') FOR [KOFUCIE],
	CONSTRAINT [DF_POTE_HORAGRAB] DEFAULT (0) FOR [HORAGRAB],
	CONSTRAINT [DF_POTE_FACTURAR] DEFAULT (0) FOR [FACTURAR],
	CONSTRAINT [DF_POTE_MODO] DEFAULT ('') FOR [MODO],
	CONSTRAINT [DF_POTE_TIMODO] DEFAULT ('') FOR [TIMODO],
	CONSTRAINT [DF_POTE_TAMODO] DEFAULT (0) FOR [TAMODO],
	CONSTRAINT [DF_POTE_KOCT01] DEFAULT ('') FOR [KOCT01],
	CONSTRAINT [DF_POTE_POKOCT01] DEFAULT (0) FOR [POKOCT01],
	CONSTRAINT [DF_POTE_KOCT02] DEFAULT ('') FOR [KOCT02],
	CONSTRAINT [DF_POTE_POKOCT02] DEFAULT (0) FOR [POKOCT02],
	CONSTRAINT [DF_POTE_KOCT03] DEFAULT ('') FOR [KOCT03],
	CONSTRAINT [DF_POTE_POKOCT03] DEFAULT (0) FOR [POKOCT03],
	CONSTRAINT [DF_POTE_DIASVIGCOT] DEFAULT (0) FOR [DIASVIGCOT],
	CONSTRAINT [DF_POTE_FORMAPAGO] DEFAULT ('') FOR [FORMAPAGO],
	CONSTRAINT [DF_POTE_ENCARGADO] DEFAULT ('') FOR [ENCARGADO],
	CONSTRAINT [DF_POTE_CARGO] DEFAULT ('') FOR [CARGO],
	CONSTRAINT [DF_POTE_KOPROYE] DEFAULT ('') FOR [KOPROYE],
	CONSTRAINT [DF_POTE_KOETAPA] DEFAULT ('') FOR [KOETAPA],
	CONSTRAINT [DF_POTE_OCDO] DEFAULT ('') FOR [OCDO]
GO

ALTER TABLE [dbo].[POTL] WITH NOCHECK ADD
	CONSTRAINT [DF_POTL_IDPOTE] DEFAULT (0) FOR [IDPOTE],
	CONSTRAINT [DF_POTL_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_POTL_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_POTL_NREG] DEFAULT ('') FOR [NREG],
	CONSTRAINT [DF_POTL_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_POTL_DESDE] DEFAULT ('') FOR [DESDE],
	CONSTRAINT [DF_POTL_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_POTL_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_POTL_CODNOMEN] DEFAULT ('') FOR [CODNOMEN],
	CONSTRAINT [DF_POTL_NUMECOTI] DEFAULT ('') FOR [NUMECOTI],
	CONSTRAINT [DF_POTL_NREGCOT] DEFAULT ('') FOR [NREGCOT],
	CONSTRAINT [DF_POTL_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_POTL_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_POTL_DIFERENCIA] DEFAULT (0) FOR [DIFERENCIA],
	CONSTRAINT [DF_POTL_MARCANOM] DEFAULT ('') FOR [MARCANOM],
	CONSTRAINT [DF_POTL_NUMDEEST] DEFAULT (0) FOR [NUMDEEST],
	CONSTRAINT [DF_POTL_NIVEL] DEFAULT (0) FOR [NIVEL],
	CONSTRAINT [DF_POTL_GLOSA] DEFAULT ('') FOR [GLOSA],
	CONSTRAINT [DF_POTL_PLANO] DEFAULT ('') FOR [PLANO],
	CONSTRAINT [DF_POTL_EXTEN] DEFAULT ('') FOR [EXTEN],
	CONSTRAINT [DF_POTL_NIVELSUP] DEFAULT ('') FOR [NIVELSUP],
	CONSTRAINT [DF_POTL_ESCADENA] DEFAULT ('') FOR [ESCADENA],
	CONSTRAINT [DF_POTL_PORENTRAR] DEFAULT (0) FOR [PORENTRAR],
	CONSTRAINT [DF_POTL_NUMPLAN] DEFAULT ('') FOR [NUMPLAN],
	CONSTRAINT [DF_POTL_INFORABODE] DEFAULT ('') FOR [INFORABODE],
	CONSTRAINT [DF_POTL_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_POTL_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_POTL_NREGODC] DEFAULT ('') FOR [NREGODC],
	CONSTRAINT [DF_POTL_SULIOTL] DEFAULT ('') FOR [SULIOTL],
	CONSTRAINT [DF_POTL_BOLIOTL] DEFAULT ('') FOR [BOLIOTL],
	CONSTRAINT [DF_POTL_PORASIGNAR] DEFAULT ('') FOR [PORASIGNAR],
	CONSTRAINT [DF_POTL_KOFUCRE] DEFAULT ('') FOR [KOFUCRE],
	CONSTRAINT [DF_POTL_KOFUCIE] DEFAULT ('') FOR [KOFUCIE],
	CONSTRAINT [DF_POTL_C_FABRIC] DEFAULT (0) FOR [C_FABRIC],
	CONSTRAINT [DF_POTL_C_INSUMOS] DEFAULT (0) FOR [C_INSUMOS],
	CONSTRAINT [DF_POTL_C_MAQUINAS] DEFAULT (0) FOR [C_MAQUINAS],
	CONSTRAINT [DF_POTL_C_M_OBRA] DEFAULT (0) FOR [C_M_OBRA],
	CONSTRAINT [DF_POTL_PREFIJADO] DEFAULT ('') FOR [PREFIJADO],
	CONSTRAINT [DF_POTL_PODESINSU] DEFAULT (0) FOR [PODESINSU],
	CONSTRAINT [DF_POTL_PODESMO] DEFAULT (0) FOR [PODESMO],
	CONSTRAINT [DF_POTL_PODESMAQ] DEFAULT (0) FOR [PODESMAQ],
	CONSTRAINT [DF_POTL_PODESSAL] DEFAULT (0) FOR [PODESSAL]
GO

ALTER TABLE [dbo].[POTLCOM] WITH NOCHECK ADD
	CONSTRAINT [DF_POTLCOM_IDPOTL] DEFAULT (0) FOR [IDPOTL],
	CONSTRAINT [DF_POTLCOM_IDMAEDDO] DEFAULT (0) FOR [ARCHIRST],
	CONSTRAINT [DF_POTLCOM_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_POTLCOM_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_POTLCOM_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_POTLCOM_DESDE] DEFAULT ('') FOR [DESDE],
	CONSTRAINT [DF_POTLCOM_NUMECOTI] DEFAULT ('') FOR [NUMECOTI],
	CONSTRAINT [DF_POTLCOM_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_POTLCOM_NREGCOT] DEFAULT ('') FOR [NREGCOT],
	CONSTRAINT [DF_POTLCOM_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_POTLCOM_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_POTLCOM_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_POTLCOM_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_POTLCOM_DESISTIDO] DEFAULT (0) FOR [DESISTIDO]
GO

ALTER TABLE [dbo].[POTLSER] WITH NOCHECK ADD
	CONSTRAINT [DF_POTLSER_ARCHIRST] DEFAULT ('') FOR [ARCHIRST],
	CONSTRAINT [DF_POTLSER_IDRST] DEFAULT (0) FOR [IDRST]
GO

ALTER TABLE [dbo].[POTPR] WITH NOCHECK ADD
	CONSTRAINT [DF_POTPR_IDPOTL] DEFAULT (0) FOR [IDPOTL],
	CONSTRAINT [DF_POTPR_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_POTPR_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_POTPR_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_POTPR_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_POTPR_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_POTPR_ORDEN] DEFAULT (0) FOR [ORDEN],
	CONSTRAINT [DF_POTPR_POROPANT] DEFAULT (0) FOR [POROPANT],
	CONSTRAINT [DF_POTPR_PORREQCOMP] DEFAULT (0) FOR [PORREQCOMP],
	CONSTRAINT [DF_POTPR_TIPOOP] DEFAULT ('') FOR [TIPOOP],
	CONSTRAINT [DF_POTPR_ESTADO] DEFAULT ('') FOR [ESTADO],
	CONSTRAINT [DF_POTPR_SITPEDFAB] DEFAULT ('') FOR [SITPEDFAB],
	CONSTRAINT [DF_POTPR_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_POTPR_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_POTPR_SALPROXJOR] DEFAULT ('') FOR [SALPROXJOR],
	CONSTRAINT [DF_POTPR_PORMAQUILA] DEFAULT (0) FOR [PORMAQUILA],
	CONSTRAINT [DF_POTPR_LILG] DEFAULT ('') FOR [LILG],
	CONSTRAINT [DF_POTPR_NUMODC] DEFAULT ('') FOR [NUMODC],
	CONSTRAINT [DF_POTPR_NREGODC] DEFAULT ('') FOR [NREGODC]
GO

ALTER TABLE [dbo].[POTPRTA] WITH NOCHECK ADD
	CONSTRAINT [DF_POTPRTA_VALTAREA] DEFAULT (0) FOR [VALTAREA],
	CONSTRAINT [DF_POTPRTA_REALIZADO] DEFAULT (0) FOR [REALIZADO]
GO

ALTER TABLE [dbo].[PPLAMAQ] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLAMAQ_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLAMAQ_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PPLAMAQ_LINEA] DEFAULT (0) FOR [LINEA],
	CONSTRAINT [DF_PPLAMAQ_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PPLAMAQ_NOMBRE] DEFAULT ('') FOR [NOMBRE],
	CONSTRAINT [DF_PPLAMAQ_ULTHORAANT] DEFAULT (0) FOR [ULTHORAANT],
	CONSTRAINT [DF_PPLAMAQ_HRSTRABANT] DEFAULT (0) FOR [HRSTRABANT],
	CONSTRAINT [DF_PPLAMAQ_HRSESPEANT] DEFAULT (0) FOR [HRSESPEANT],
	CONSTRAINT [DF_PPLAMAQ_HRSDETEANT] DEFAULT (0) FOR [HRSDETEANT],
	CONSTRAINT [DF_PPLAMAQ_ULTHORAACT] DEFAULT (0) FOR [ULTHORAACT],
	CONSTRAINT [DF_PPLAMAQ_HRSTRABACT] DEFAULT (0) FOR [HRSTRABACT],
	CONSTRAINT [DF_PPLAMAQ_HRSESPEACT] DEFAULT (0) FOR [HRSESPEACT],
	CONSTRAINT [DF_PPLAMAQ_HRSDETEACT] DEFAULT (0) FOR [HRSDETEACT],
	CONSTRAINT [DF_PPLAMAQ_PARAORDEN] DEFAULT (0) FOR [PARAORDEN],
	CONSTRAINT [DF_PPLAMAQ_TPOCRITICO] DEFAULT (0) FOR [TPOCRITICO],
	CONSTRAINT [DF_PPLAMAQ_PLANTA] DEFAULT ('') FOR [PLANTA],
	CONSTRAINT [DF_PPLAMAQ_MULTICARGA] DEFAULT ('') FOR [MULTICARGA],
	CONSTRAINT [DF_PPLAMAQ_CAPACIDAD] DEFAULT (0) FOR [CAPACIDAD],
	CONSTRAINT [DF_PPLAMAQ_UDADCARGA] DEFAULT ('') FOR [UDADCARGA]
GO

ALTER TABLE [dbo].[PPLAND] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLAND_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLAND_NUMPLAN] DEFAULT ('') FOR [NUMPLAN],
	CONSTRAINT [DF_PPLAND_PRIORIDAD] DEFAULT (0) FOR [PRIORIDAD],
	CONSTRAINT [DF_PPLAND_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PPLAND_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PPLAND_NIVEL] DEFAULT (0) FOR [NIVEL],
	CONSTRAINT [DF_PPLAND_NIVELSUP] DEFAULT ('') FOR [NIVELSUP],
	CONSTRAINT [DF_PPLAND_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PPLAND_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PPLAND_OPERACION] DEFAULT ('') FOR [OPERACION],
	CONSTRAINT [DF_PPLAND_CODMAQ] DEFAULT ('') FOR [CODMAQ],
	CONSTRAINT [DF_PPLAND_POROPANT] DEFAULT (0) FOR [POROPANT],
	CONSTRAINT [DF_PPLAND_PORREQCOMP] DEFAULT (0) FOR [PORREQCOMP],
	CONSTRAINT [DF_PPLAND_NULOTES] DEFAULT (0) FOR [NULOTES],
	CONSTRAINT [DF_PPLAND_LINEA] DEFAULT (0) FOR [LINEA],
	CONSTRAINT [DF_PPLAND_ORDEN] DEFAULT (0) FOR [ORDEN],
	CONSTRAINT [DF_PPLAND_COLCAD] DEFAULT (0) FOR [COLCAD],
	CONSTRAINT [DF_PPLAND_KOLOR] DEFAULT (0) FOR [KOLOR],
	CONSTRAINT [DF_PPLAND_CARAC] DEFAULT ('') FOR [CARAC],
	CONSTRAINT [DF_PPLAND_TIEMPO] DEFAULT (0) FOR [TIEMPO],
	CONSTRAINT [DF_PPLAND_TIEMPOE] DEFAULT (0) FOR [TIEMPOE],
	CONSTRAINT [DF_PPLAND_ASIGNADO] DEFAULT (0) FOR [ASIGNADO],
	CONSTRAINT [DF_PPLAND_ASIGOPAN] DEFAULT (0) FOR [ASIGOPAN],
	CONSTRAINT [DF_PPLAND_HORAI] DEFAULT (0) FOR [HORAI],
	CONSTRAINT [DF_PPLAND_HORAANT] DEFAULT (0) FOR [HORAANT],
	CONSTRAINT [DF_PPLAND_ULTOPER] DEFAULT (0) FOR [ULTOPER],
	CONSTRAINT [DF_PPLAND_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_PPLAND_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_PPLAND_PORFABRI] DEFAULT (0) FOR [PORFABRI],
	CONSTRAINT [DF_PPLAND_PORENTRAR] DEFAULT (0) FOR [PORENTRAR],
	CONSTRAINT [DF_PPLAND_AGREGADO] DEFAULT (0) FOR [AGREGADO],
	CONSTRAINT [DF_PPLAND_PIVOTE] DEFAULT (0) FOR [PIVOTE],
	CONSTRAINT [DF_PPLAND_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_PPLAND_NOMBREOP] DEFAULT ('') FOR [NOMBREOP],
	CONSTRAINT [DF_PPLAND_ESCADENA] DEFAULT ('') FOR [ESCADENA],
	CONSTRAINT [DF_PPLAND_DESDE] DEFAULT ('') FOR [DESDE],
	CONSTRAINT [DF_PPLAND_NUMECOTI] DEFAULT ('') FOR [NUMECOTI],
	CONSTRAINT [DF_PPLAND_NREGCOT] DEFAULT ('') FOR [NREGCOT],
	CONSTRAINT [DF_PPLAND_PREFIJADO] DEFAULT ('') FOR [PREFIJADO],
	CONSTRAINT [DF_PPLAND_HORAFINOP] DEFAULT (0) FOR [HORAFINOP],
	CONSTRAINT [DF_PPLAND_BORRADO] DEFAULT (0) FOR [BORRADO],
	CONSTRAINT [DF_PPLAND_COLOT] DEFAULT (0) FOR [COLOT],
	CONSTRAINT [DF_PPLAND_SALPROXJOR] DEFAULT ('') FOR [SALPROXJOR]
GO

ALTER TABLE [dbo].[PPLANE] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLANE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLANE_NUMPLAN] DEFAULT ('') FOR [NUMPLAN],
	CONSTRAINT [DF_PPLANE_DESCRIPCIO] DEFAULT ('') FOR [DESCRIPCIO]
GO

ALTER TABLE [dbo].[PPLANPR] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLANPR_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLANPR_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PPLANPR_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PPLANPR_MARCANOM] DEFAULT ('') FOR [MARCANOM],
	CONSTRAINT [DF_PPLANPR_INICIAL] DEFAULT (0) FOR [INICIAL],
	CONSTRAINT [DF_PPLANPR_RETIRADO] DEFAULT (0) FOR [RETIRADO],
	CONSTRAINT [DF_PPLANPR_REQUERIDO] DEFAULT (0) FOR [REQUERIDO],
	CONSTRAINT [DF_PPLANPR_ENBODEGA] DEFAULT (0) FOR [ENBODEGA],
	CONSTRAINT [DF_PPLANPR_PORENTRAR] DEFAULT (0) FOR [PORENTRAR],
	CONSTRAINT [DF_PPLANPR_PEDIDOS] DEFAULT (0) FOR [PEDIDOS],
	CONSTRAINT [DF_PPLANPR_ENFABRI] DEFAULT (0) FOR [ENFABRI],
	CONSTRAINT [DF_PPLANPR_ENFABRIP] DEFAULT (0) FOR [ENFABRIP],
	CONSTRAINT [DF_PPLANPR_COMPROM] DEFAULT (0) FOR [COMPROM],
	CONSTRAINT [DF_PPLANPR_COMPROMP] DEFAULT (0) FOR [COMPROMP],
	CONSTRAINT [DF_PPLANPR_AJUSTES] DEFAULT (0) FOR [AJUSTES],
	CONSTRAINT [DF_PPLANPR_SALDODIS] DEFAULT (0) FOR [SALDODIS],
	CONSTRAINT [DF_PPLANPR_RETSIMUL] DEFAULT (0) FOR [RETSIMUL],
	CONSTRAINT [DF_PPLANPR_INGSIMUL] DEFAULT (0) FOR [INGSIMUL],
	CONSTRAINT [DF_PPLANPR_SALDOSIMUL] DEFAULT (0) FOR [SALDOSIMUL],
	CONSTRAINT [DF_PPLANPR_SALDOSIMT] DEFAULT (0) FOR [SALDOSIMT],
	CONSTRAINT [DF_PPLANPR_STINISIMU] DEFAULT (0) FOR [STINISIMU],
	CONSTRAINT [DF_PPLANPR_AJUSTE] DEFAULT (0) FOR [AJUSTE],
	CONSTRAINT [DF_PPLANPR_GLOSA] DEFAULT ('') FOR [GLOSA]
GO

ALTER TABLE [dbo].[PPLAPRIO] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLAPRIO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLAPRIO_NUMOT] DEFAULT ('') FOR [NUMOT],
	CONSTRAINT [DF_PPLAPRIO_NREGOTL] DEFAULT ('') FOR [NREGOTL],
	CONSTRAINT [DF_PPLAPRIO_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PPLAPRIO_KOLOR] DEFAULT (0) FOR [KOLOR],
	CONSTRAINT [DF_PPLAPRIO_CARAC] DEFAULT ('') FOR [CARAC],
	CONSTRAINT [DF_PPLAPRIO_TIEMPO] DEFAULT (0) FOR [TIEMPO],
	CONSTRAINT [DF_PPLAPRIO_NUTOPER] DEFAULT (0) FOR [NUTOPER],
	CONSTRAINT [DF_PPLAPRIO_PIVOTE] DEFAULT (0) FOR [PIVOTE],
	CONSTRAINT [DF_PPLAPRIO_NOKOPR] DEFAULT ('') FOR [NOKOPR],
	CONSTRAINT [DF_PPLAPRIO_UD01PR] DEFAULT ('') FOR [UD01PR],
	CONSTRAINT [DF_PPLAPRIO_FABRICAR] DEFAULT (0) FOR [FABRICAR],
	CONSTRAINT [DF_PPLAPRIO_REALIZADO] DEFAULT (0) FOR [REALIZADO],
	CONSTRAINT [DF_PPLAPRIO_LISTO] DEFAULT (0) FOR [LISTO],
	CONSTRAINT [DF_PPLAPRIO_ESCADENA] DEFAULT ('') FOR [ESCADENA],
	CONSTRAINT [DF_PPLAPRIO_DESDE] DEFAULT ('') FOR [DESDE],
	CONSTRAINT [DF_PPLAPRIO_NUMECOTI] DEFAULT ('') FOR [NUMECOTI],
	CONSTRAINT [DF_PPLAPRIO_NREGCOT] DEFAULT ('') FOR [NREGCOT],
	CONSTRAINT [DF_PPLAPRIO_PREFIJADO] DEFAULT ('') FOR [PREFIJADO],
	CONSTRAINT [DF_PPLAPRIO_SECUENCIA] DEFAULT ('') FOR [SECUENCIA]
GO

ALTER TABLE [dbo].[PPLASIMU] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLASIMU_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLASIMU_EVENTO] DEFAULT (0) FOR [EVENTO],
	CONSTRAINT [DF_PPLASIMU_EXITOS] DEFAULT (0) FOR [EXITOS]
GO

ALTER TABLE [dbo].[PPLAVST] WITH NOCHECK ADD
	CONSTRAINT [DF_PPLAVST_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_PPLAVST_EVENTO] DEFAULT (0) FOR [EVENTO],
	CONSTRAINT [DF_PPLAVST_HORAGENE] DEFAULT (0) FOR [HORAGENE],
	CONSTRAINT [DF_PPLAVST_PIVOTE] DEFAULT (0) FOR [PIVOTE],
	CONSTRAINT [DF_PPLAVST_NUMOTPRO] DEFAULT ('') FOR [NUMOTPRO],
	CONSTRAINT [DF_PPLAVST_NREGOTLPRO] DEFAULT ('') FOR [NREGOTLPRO],
	CONSTRAINT [DF_PPLAVST_OPERAPRO] DEFAULT ('') FOR [OPERAPRO],
	CONSTRAINT [DF_PPLAVST_NUMOTCON] DEFAULT ('') FOR [NUMOTCON],
	CONSTRAINT [DF_PPLAVST_NREGOTLCON] DEFAULT ('') FOR [NREGOTLCON],
	CONSTRAINT [DF_PPLAVST_OPERACON] DEFAULT ('') FOR [OPERACON],
	CONSTRAINT [DF_PPLAVST_CODIGO] DEFAULT ('') FOR [CODIGO],
	CONSTRAINT [DF_PPLAVST_UDAD] DEFAULT ('') FOR [UDAD],
	CONSTRAINT [DF_PPLAVST_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [DF_PPLAVST_BORRADO] DEFAULT (0) FOR [BORRADO],
	CONSTRAINT [DF_PPLAVST_UTILIZADO] DEFAULT (0) FOR [UTILIZADO],
	CONSTRAINT [DF_PPLAVST_LEIDO] DEFAULT ('') FOR [LEIDO]
GO

ALTER TABLE [dbo].[PRELA] WITH NOCHECK ADD
	CONSTRAINT [DF_PRELA_ORDEN] DEFAULT (0) FOR [ORDEN],
	CONSTRAINT [DF_PRELA_ESMODELO] DEFAULT ('') FOR [ESMODELO]
GO

ALTER TABLE [dbo].[PTICKET] WITH NOCHECK ADD
	CONSTRAINT [DF_PTICKET_ANULADO] DEFAULT (0) FOR [ANULADO]
GO

ALTER TABLE [dbo].[PVELPROP] WITH NOCHECK ADD
	CONSTRAINT [DF_PVELPROP_NOOPPR] DEFAULT ('') FOR [NOOPPR],
	CONSTRAINT [DF_PVELPROP_CODMAQOPPR] DEFAULT ('') FOR [CODMAQOPPR]
GO

ALTER TABLE [dbo].[RCLASED] WITH NOCHECK ADD
	CONSTRAINT [DF_RCLASED_IMPONIBLE] DEFAULT (0) FOR [IMPONIBLE],
	CONSTRAINT [DF_RCLASED_TRIBUTABLE] DEFAULT (0) FOR [TRIBUTABLE],
	CONSTRAINT [DF_RCLASED_PORTAB] DEFAULT (0) FOR [PORTAB],
	CONSTRAINT [DF_RCLASED_PORTAB1] DEFAULT (0) FOR [PORTABDES],
	CONSTRAINT [PK_RCLASED] PRIMARY KEY  NONCLUSTERED
	(
		[KOCO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RCLASEE] WITH NOCHECK ADD
	CONSTRAINT [DF_RCLASES_NUEVASI] DEFAULT (0) FOR [NUEVASI],
	CONSTRAINT [DF_RCLASES_ORDENAPAR] DEFAULT (0) FOR [ORDENAPAR],
	CONSTRAINT [PK_RCLASES] PRIMARY KEY  NONCLUSTERED
	(
		[CLASE]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RCLASEIN] WITH NOCHECK ADD
	CONSTRAINT [PK_RCLASEIN] PRIMARY KEY  NONCLUSTERED
	(
		[CLASE],
		[KOCO],
		[CLASEI],
		[KOCOI],
		[QUECAMPO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RCLASEN] WITH NOCHECK ADD
	CONSTRAINT [PK_RCLASEM] PRIMARY KEY  NONCLUSTERED
	(
		[CLASE],
		[KOCO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RDIMEN] WITH NOCHECK ADD
	CONSTRAINT [PK_RDIMEN] PRIMARY KEY  NONCLUSTERED
	(
		[NPROCESO],
		[KOPER]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RFORMATD] WITH NOCHECK ADD
	CONSTRAINT [DF_RFORMATD_NEGRITA] DEFAULT (0) FOR [NEGRITA],
	CONSTRAINT [DF_RFORMATD_COMPRIMIDA] DEFAULT (0) FOR [COMPRIMIDA],
	CONSTRAINT [PK_RFORMATD] PRIMARY KEY  NONCLUSTERED
	(
		[FORMATO],
		[NREG]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RFORMATE] WITH NOCHECK ADD
	CONSTRAINT [PK_RFORMATE] PRIMARY KEY  NONCLUSTERED
	(
		[FORMATO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RLIQUID] WITH NOCHECK ADD
	CONSTRAINT [DF_RLIQUID_VAKOCO] DEFAULT (0) FOR [VALPRIN],
	CONSTRAINT [DF_RLIQUID_VALAUX1] DEFAULT (0) FOR [VALAUX1],
	CONSTRAINT [DF_RLIQUID_VALAUX2] DEFAULT (0) FOR [VALAUX2],
	CONSTRAINT [DF_RLIQUID_VALAUX3] DEFAULT (0) FOR [VALAUX3],
	CONSTRAINT [DF_RLIQUID_IMPONIBLE] DEFAULT (0) FOR [IMPONIBLE],
	CONSTRAINT [DF_RLIQUID_TRIBUTABLE] DEFAULT (0) FOR [TRIBUTABLE]
GO

ALTER TABLE [dbo].[RLIQUIDM] WITH NOCHECK ADD
	CONSTRAINT [DF_RLIQUIDM_VAKOCO] DEFAULT (0) FOR [VALPRIN],
	CONSTRAINT [DF_RLIQUIDM_VALAUX1] DEFAULT (0) FOR [VALAUX1],
	CONSTRAINT [DF_RLIQUIDM_VALAUX2] DEFAULT (0) FOR [VALAUX2],
	CONSTRAINT [DF_RLIQUIDM_VALAUX3] DEFAULT (0) FOR [VALAUX3],
	CONSTRAINT [DF_RLIQUIDM_IMPONIBLE] DEFAULT (0) FOR [IMPONIBLE],
	CONSTRAINT [DF_RLIQUIDM_TRIBUTABLE] DEFAULT (0) FOR [TRIBUTABLE]
GO

ALTER TABLE [dbo].[RMODLIQ] WITH NOCHECK ADD
	CONSTRAINT [PK_RMODLIQ] PRIMARY KEY  NONCLUSTERED
	(
		[CLASE],
		[KOCO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RNOMCAMP] WITH NOCHECK ADD
	CONSTRAINT [PK_RNOMCAMP] PRIMARY KEY  NONCLUSTERED
	(
		[TABLA],
		[CAMPO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RPARAMREM] WITH NOCHECK ADD
	CONSTRAINT [DF_RPARAMREM_PAR_UF] DEFAULT (0) FOR [PAR_UF],
	CONSTRAINT [DF_RPARAMREM_PAR_UTM] DEFAULT (0) FOR [PAR_UTM],
	CONSTRAINT [DF_RPARAMREM_PAR_SUEMIN] DEFAULT (0) FOR [PAR_SUEMIN],
	CONSTRAINT [DF_RPARAMREM_PAR_TOPEUF] DEFAULT (0) FOR [PAR_TOPEUF],
	CONSTRAINT [DF_RPARAMREM_PAR_PORSAL] DEFAULT (0) FOR [PAR_PORSAL],
	CONSTRAINT [DF_RPARAMREM_PAR_FDOPEN] DEFAULT (0) FOR [PAR_FDOPEN],
	CONSTRAINT [DF_RPARAMREM_PAR_FACHE1] DEFAULT (0) FOR [PAR_FACHE1],
	CONSTRAINT [DF_RPARAMREM_PAR_FACHE2] DEFAULT (0) FOR [PAR_FACHE2],
	CONSTRAINT [DF_RPARAMREM_PAR_FACHE3] DEFAULT (0) FOR [PAR_FACHE3],
	CONSTRAINT [DF_RPARAMREM_PAR_PORGRA] DEFAULT (0) FOR [PAR_PORGRA],
	CONSTRAINT [DF_RPARAMREM_PAR_TOPGRA] DEFAULT (0) FOR [PAR_TOPGRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M01GRA] DEFAULT (' ') FOR [PAR_M01GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M02GRA] DEFAULT (' ') FOR [PAR_M02GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M03GRA] DEFAULT (' ') FOR [PAR_M03GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M04GRA] DEFAULT (' ') FOR [PAR_M04GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M05GRA] DEFAULT (' ') FOR [PAR_M05GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M06GRA] DEFAULT (' ') FOR [PAR_M06GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M07GRA] DEFAULT (' ') FOR [PAR_M07GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M08GRA] DEFAULT (' ') FOR [PAR_M08GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M09GRA] DEFAULT (' ') FOR [PAR_M09GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M10GRA] DEFAULT (' ') FOR [PAR_M10GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M11GRA] DEFAULT (' ') FOR [PAR_M11GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_M12GRA] DEFAULT (' ') FOR [PAR_M12GRA],
	CONSTRAINT [DF_RPARAMREM_PAR_TRA1CF] DEFAULT (0) FOR [PAR_TRA1CF],
	CONSTRAINT [DF_RPARAMREM_PAR_VAL1CF] DEFAULT (0) FOR [PAR_VAL1CF],
	CONSTRAINT [DF_RPARAMREM_PAR_TRA2CF] DEFAULT (0) FOR [PAR_TRA2CF],
	CONSTRAINT [DF_RPARAMREM_PAR_VAL2CF] DEFAULT (0) FOR [PAR_VAL2CF],
	CONSTRAINT [DF_RPARAMREM_PAR_TRA3CF] DEFAULT (0) FOR [PAR_TRA3CF],
	CONSTRAINT [DF_RPARAMREM_PAR_VAL3CF] DEFAULT (0) FOR [PAR_VAL3CF],
	CONSTRAINT [DF_RPARAMREM_PAR_TRA4CF] DEFAULT (0) FOR [PAR_TRA4CF],
	CONSTRAINT [DF_RPARAMREM_PAR_VAL4CF] DEFAULT (0) FOR [PAR_VAL4CF],
	CONSTRAINT [DF_RPARAMREM_PAR_TOPZON] DEFAULT (0) FOR [PAR_TOPZON],
	CONSTRAINT [DF_RPARAMREM_PAR_TOP889] DEFAULT (0) FOR [PAR_TOP889],
	CONSTRAINT [DF_RPARAMREM_PAR_POR889] DEFAULT (0) FOR [PAR_POR889]
GO

ALTER TABLE [dbo].[RPERSE] WITH NOCHECK ADD
	CONSTRAINT [DF_RPERSE_ESMINIMO] DEFAULT ('') FOR [ESMINIMO],
	CONSTRAINT [DF_RPERSE_CLAMINREEM] DEFAULT ('') FOR [CLAMINREEM],
	CONSTRAINT [DF_RPERSE_KOCOMIREEM] DEFAULT ('') FOR [KOCOMIREEM],
	CONSTRAINT [DF_RPERSE_VALREEM] DEFAULT ('') FOR [VALREEM],
	CONSTRAINT [DF_RPERSE_NROCONAPVI] DEFAULT ('') FOR [NROCONAPVI],
	CONSTRAINT [DF_RPERSE_NROCONAPVC] DEFAULT ('') FOR [NROCONAPVC],
	CONSTRAINT [DF_RPERSE_NRORUTAPV] DEFAULT ('') FOR [NRORUTAPV],
	CONSTRAINT [DF_RPERSE_NRODVAPV] DEFAULT ('') FOR [NRODVAPV],
	CONSTRAINT [DF_RPERSE_APEPATAPV] DEFAULT ('') FOR [APEPATAPV],
	CONSTRAINT [DF_RPERSE_APEMATAPV] DEFAULT ('') FOR [APEMATAPV],
	CONSTRAINT [DF_RPERSE_NOMBREAPV] DEFAULT ('') FOR [NOMBREAPV],
	CONSTRAINT [DF_RPERSE_IDSUCEMPL] DEFAULT ('') FOR [IDSUCEMPL]
GO

ALTER TABLE [dbo].[RPERSED] WITH NOCHECK ADD
	CONSTRAINT [DF_RPERSED_IMPONIBLE_1] DEFAULT (0) FOR [IMPONIBLE],
	CONSTRAINT [DF_RPERSED_TRIBUTABLE_1] DEFAULT (0) FOR [TRIBUTABLE],
	CONSTRAINT [DF_RPERSED_PORTAB_1] DEFAULT (0) FOR [PORTAB],
	CONSTRAINT [DF_RPERSED_PORTAB1] DEFAULT (0) FOR [PORTABDES],
	CONSTRAINT [PK_RPERSED] PRIMARY KEY  NONCLUSTERED
	(
		[KOPER],
		[NREG],
		[CLASE],
		[KOCO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RPROCESO] WITH NOCHECK ADD
	CONSTRAINT [DF_RPROCESO_ESTADO] DEFAULT (' ') FOR [ESTADO],
	CONSTRAINT [PK_RPROCESO] PRIMARY KEY  NONCLUSTERED
	(
		[NPROCESO]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RTABLASD] WITH NOCHECK ADD
	CONSTRAINT [DF_RTABLASD_VALOR] DEFAULT (0) FOR [VALTAB1],
	CONSTRAINT [DF_RTABLASD_VALTAB2] DEFAULT (0) FOR [VALTAB2],
	CONSTRAINT [PK_RTABLASD] PRIMARY KEY  NONCLUSTERED
	(
		[KOTAB],
		[NPOS]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[RTABLASE] WITH NOCHECK ADD
	CONSTRAINT [PK_RTABLASE] PRIMARY KEY  NONCLUSTERED
	(
		[KOTAB]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[SATAUS] WITH NOCHECK ADD
	CONSTRAINT [PK_SATAUS] PRIMARY KEY  NONCLUSTERED
	(
		[KOUS]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[STARREAL] WITH NOCHECK ADD
	CONSTRAINT [DF_STARREAL_FECHA] DEFAULT (getdate()) FOR [FECHA]
GO

ALTER TABLE [dbo].[TABACTUS] WITH NOCHECK ADD
	CONSTRAINT [DF_TABACTUS_FECHA] DEFAULT (getdate()) FOR [FECHA],
	CONSTRAINT [DF_TABACTUS_VERSION] DEFAULT ('') FOR [VERSION]
GO

ALTER TABLE [dbo].[TABADPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABADPRE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_TABADPRE_KOPRESU] DEFAULT ('') FOR [KOPRESU],
	CONSTRAINT [DF_TABADPRE_NOKOPRESU] DEFAULT ('') FOR [NOKOPRESU],
	CONSTRAINT [DF_TABADPRE_TPRESU] DEFAULT ('') FOR [TPRESU],
	CONSTRAINT [DF_TABADPRE_KOLTPRE] DEFAULT ('') FOR [KOLTPRE],
	CONSTRAINT [DF_TABADPRE_MATERIA] DEFAULT ('') FOR [MATERIA],
	CONSTRAINT [DF_TABADPRE_MONAUTPAG] DEFAULT (0) FOR [MONAUTPAG],
	CONSTRAINT [DF_TABADPRE_BLOQUEADO] DEFAULT ('') FOR [BLOQUEADO]
GO

ALTER TABLE [dbo].[TABBO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABBO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABBO_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_TABBO_KOBO] DEFAULT ('') FOR [KOBO],
	CONSTRAINT [DF_TABBO_KOFUBO] DEFAULT ('') FOR [KOFUBO],
	CONSTRAINT [DF_TABBO_NOKOBO] DEFAULT ('') FOR [NOKOBO],
	CONSTRAINT [DF_TABBO_DIBO] DEFAULT ('') FOR [DIBO],
	CONSTRAINT [DF_TABBO_FOBO] DEFAULT ('') FOR [FOBO],
	CONSTRAINT [DF_TABBO_NOEXPLOSI] DEFAULT (0) FOR [NOEXPLOSI],
	CONSTRAINT [DF_TABBO_SINLOTE] DEFAULT (0) FOR [SINLOTE],
	CONSTRAINT [DF_TABBO_SINUBIC] DEFAULT (0) FOR [SINUBIC]
GO

ALTER TABLE [dbo].[TABBOPR] WITH NOCHECK ADD
	CONSTRAINT [DF_TABBOPR_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_TABBOPR_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABBOPR_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_TABBOPR_KOBO] DEFAULT ('') FOR [KOBO],
	CONSTRAINT [DF_TABBOPR_STMIPR] DEFAULT (0) FOR [STMIPR],
	CONSTRAINT [DF_TABBOPR_STMAPR] DEFAULT (0) FOR [STMAPR],
	CONSTRAINT [DF_TABBOPR_DATOSUBIC] DEFAULT ('') FOR [DATOSUBIC],
	CONSTRAINT [DF_TABBOPR_VESAPR] DEFAULT (0) FOR [VESAPR],
	CONSTRAINT [DF_TABBOPR_CATOVESAPR] DEFAULT (0) FOR [CATOVESAPR],
	CONSTRAINT [DF_TABBOPR_STOCKASEG] DEFAULT (0) FOR [STOCKASEG],
	CONSTRAINT [DF_TABBOPR_TDISTRIINT] DEFAULT (0) FOR [TDISTRIINT],
	CONSTRAINT [DF_TABBOPR_BLOQBOPR] DEFAULT ('') FOR [BLOQBOPR]
GO

ALTER TABLE [dbo].[TABCFG] WITH NOCHECK ADD
	CONSTRAINT [DF_TABCFG_FCREACION] DEFAULT (getdate()) FOR [FCREACION],
	CONSTRAINT [DF_TABCFG_FULTMODIF] DEFAULT (getdate()) FOR [FULTMODIF],
	CONSTRAINT [DF_TABCFG_OBSERVAC] DEFAULT ('') FOR [OBSERVAC]
GO

ALTER TABLE [dbo].[TABCJ] WITH NOCHECK ADD
	CONSTRAINT [DF_TABCJ_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABCJ_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_TABCJ_KOCJ] DEFAULT ('') FOR [KOCJ],
	CONSTRAINT [DF_TABCJ_NOKOCJ] DEFAULT ('') FOR [NOKOCJ],
	CONSTRAINT [DF_TABCJ_KOFUCJ] DEFAULT ('') FOR [KOFUCJ]
GO

ALTER TABLE [dbo].[TABCODAL] WITH NOCHECK ADD
	CONSTRAINT [DF_TABCODAL_KOEN] DEFAULT ('') FOR [KOEN]
GO

ALTER TABLE [dbo].[TABCT] WITH NOCHECK ADD
	CONSTRAINT [DF_TABCT_TICT] DEFAULT ('') FOR [TICT],
	CONSTRAINT [DF_TABCT_KOCT] DEFAULT ('') FOR [KOCT],
	CONSTRAINT [DF_TABCT_NOKOCT] DEFAULT ('') FOR [NOKOCT],
	CONSTRAINT [DF_TABCT_POIVCT] DEFAULT (0) FOR [POIVCT],
	CONSTRAINT [DF_TABCT_CONTAB] DEFAULT ('') FOR [CONTAB],
	CONSTRAINT [DF_TABCT_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_TABCT_CONTABVTA] DEFAULT ('') FOR [CONTABVTA],
	CONSTRAINT [DF_TABCT_SUBAUXIVTA] DEFAULT ('') FOR [SUBAUXIVTA],
	CONSTRAINT [DF_TABCT_RECAPRRE] DEFAULT (0) FOR [RECAPRRE],
	CONSTRAINT [DF_TABCT_POCT] DEFAULT (0) FOR [POCT],
	CONSTRAINT [DF_TABCT_ECUCT] DEFAULT ('') FOR [ECUCT],
	CONSTRAINT [DF_TABCT_VALIPRESU] DEFAULT (0) FOR [VALIPRESU],
	CONSTRAINT [DF__TABCT__BLOQUEADO__4BD7F309] DEFAULT (0) FOR [BLOQUEADO],
	CONSTRAINT [DF_TABCT_PROVCOM] DEFAULT ('') FOR [PROVCOM],
	CONSTRAINT [DF_TABCT_SUBPROVCOM] DEFAULT ('') FOR [SUBPROVCOM],
	CONSTRAINT [DF_TABCT_COVENCT] DEFAULT ('') FOR [COVENCT],
	CONSTRAINT [DF_TABCT_SUBCOVENCT] DEFAULT ('') FOR [SUBCOVENCT],
	CONSTRAINT [DF_TABCT_BASECAPRRE] DEFAULT ('') FOR [BASECAPRRE],
	CONSTRAINT [DF__TABCT__SIPAGOEF__71D37EBF] DEFAULT (0) FOR [SIPAGOEF],
	CONSTRAINT [DF__TABCT__SIPAGOCH__72C7A2F8] DEFAULT (0) FOR [SIPAGOCH],
	CONSTRAINT [DF__TABCT__SIPAGOTJ__73BBC731] DEFAULT (0) FOR [SIPAGOTJ],
	CONSTRAINT [DF__TABCT__SIPAGOTJE__74AFEB6A] DEFAULT (0) FOR [SIPAGOTJEN],
	CONSTRAINT [DF_TABCT_KOENDP] DEFAULT ('') FOR [KOENDP]
GO

ALTER TABLE [dbo].[TABCTAEM] WITH NOCHECK ADD
	CONSTRAINT [DF_TABCTAEM_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABCTAEM_CTACTEEM] DEFAULT ('') FOR [CTACTEEM],
	CONSTRAINT [DF_TABCTAEM_NOCTACTEEM] DEFAULT ('') FOR [NOCTACTEEM],
	CONSTRAINT [DF_TABCTAEM_KOENCTA] DEFAULT ('') FOR [KOENCTA],
	CONSTRAINT [DF_TABCTAEM_SUENCTA] DEFAULT ('') FOR [SUENCTA],
	CONSTRAINT [DF_TABCTAEM_CONTAB] DEFAULT ('') FOR [CONTAB],
	CONSTRAINT [DF_TABCTAEM_SUBAUXI] DEFAULT ('') FOR [SUBAUXI]
GO

ALTER TABLE [dbo].[TABDPCE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABDPCE_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABDPCE_TIDP] DEFAULT ('') FOR [TIDP],
	CONSTRAINT [DF_TABDPCE_NUDP] DEFAULT ('') FOR [NUDP],
	CONSTRAINT [DF_TABDPCE_ENDP] DEFAULT ('') FOR [ENDP],
	CONSTRAINT [DF_TABDPCE_EMDP] DEFAULT ('') FOR [EMDP],
	CONSTRAINT [DF_TABDPCE_SUEMDP] DEFAULT ('') FOR [SUEMDP],
	CONSTRAINT [DF_TABDPCE_CUDP] DEFAULT ('') FOR [CUDP],
	CONSTRAINT [DF_TABDPCE_NUCUDP] DEFAULT ('') FOR [NUCUDP],
	CONSTRAINT [DF_TABDPCE_MODP] DEFAULT ('') FOR [MODP],
	CONSTRAINT [DF_TABDPCE_TIMODP] DEFAULT ('') FOR [TIMODP],
	CONSTRAINT [DF_TABDPCE_TAMODP] DEFAULT (0) FOR [TAMODP],
	CONSTRAINT [DF_TABDPCE_VADP] DEFAULT (0) FOR [VADP],
	CONSTRAINT [DF_TABDPCE_VAABDP] DEFAULT (0) FOR [VAABDP],
	CONSTRAINT [DF_TABDPCE_VAASDP] DEFAULT (0) FOR [VAASDP],
	CONSTRAINT [DF_TABDPCE_VAVUDP] DEFAULT (0) FOR [VAVUDP],
	CONSTRAINT [DF_TABDPCE_ESASDP] DEFAULT ('') FOR [ESASDP],
	CONSTRAINT [DF_TABDPCE_ESPGDP] DEFAULT ('') FOR [ESPGDP],
	CONSTRAINT [DF_TABDPCE_SUREDP] DEFAULT ('') FOR [SUREDP],
	CONSTRAINT [DF_TABDPCE_CJREDP] DEFAULT ('') FOR [CJREDP],
	CONSTRAINT [DF_TABDPCE_KOFUDP] DEFAULT ('') FOR [KOFUDP],
	CONSTRAINT [DF_TABDPCE_KOTNDP] DEFAULT ('') FOR [KOTNDP],
	CONSTRAINT [DF_TABDPCE_SUTNDP] DEFAULT ('') FOR [SUTNDP],
	CONSTRAINT [DF_TABDPCE_NUTRANSMI] DEFAULT ('') FOR [NUTRANSMI],
	CONSTRAINT [DF_TABDPCE_NUCOCO] DEFAULT ('') FOR [NUCOCO],
	CONSTRAINT [DF_TABDPCE_KOTU] DEFAULT ('') FOR [KOTU],
	CONSTRAINT [DF_TABDPCE_REFANTI] DEFAULT ('') FOR [REFANTI],
	CONSTRAINT [DF_TABDPCE_DOCUENANTI] DEFAULT ('') FOR [DOCUENANTI],
	CONSTRAINT [DF_TABDPCE_IMDP] DEFAULT ('') FOR [IMDP],
	CONSTRAINT [DF_TABDPCE_NULICO] DEFAULT ('') FOR [NULICO],
	CONSTRAINT [DF_TABDPCE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_TABDPCE_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_TABDPCE_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_TABDPCE_KOENDOSO] DEFAULT ('') FOR [KOENDOSO],
	CONSTRAINT [DF_TABDPCE_NOENDOSO] DEFAULT ('') FOR [NOENDOSO],
	CONSTRAINT [DF_TABDPCE_NUVISA] DEFAULT ('') FOR [NUVISA],
	CONSTRAINT [DF_TABDPCE_KOVISADOR] DEFAULT ('') FOR [KOVISADOR]
GO

ALTER TABLE [dbo].[TABENDP] WITH NOCHECK ADD
	CONSTRAINT [DF_TABENDP_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABENDP_KOENDP] DEFAULT ('') FOR [KOENDP],
	CONSTRAINT [DF_TABENDP_SUENDP] DEFAULT ('') FOR [SUENDP],
	CONSTRAINT [DF_TABENDP_TIDPEN] DEFAULT ('') FOR [TIDPEN],
	CONSTRAINT [DF_TABENDP_KOTEENDP] DEFAULT ('') FOR [KOTEENDP],
	CONSTRAINT [DF_TABENDP_NOKOENDP] DEFAULT ('') FOR [NOKOENDP],
	CONSTRAINT [DF_TABENDP_CONTAB] DEFAULT ('') FOR [CONTAB],
	CONSTRAINT [DF_TABENDP_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_TABENDP_CONTABVTA] DEFAULT ('') FOR [CONTABVTA],
	CONSTRAINT [DF_TABENDP_SUBAUXIVTA] DEFAULT ('') FOR [SUBAUXIVTA],
	CONSTRAINT [DF_TABENDP_CTACTE] DEFAULT ('') FOR [CTACTE],
	CONSTRAINT [DF_TABENDP_KOENDPPIA] DEFAULT ('') FOR [KOENDPPIA],
	CONSTRAINT [DF_TABENDP_NUCHLT] DEFAULT ('') FOR [NUCHLT],
	CONSTRAINT [DF_TABENDP_NUCHLTINI] DEFAULT ('') FOR [NUCHLTINI],
	CONSTRAINT [DF_TABENDP_CMESAP] DEFAULT ('') FOR [CMESAP]
GO

ALTER TABLE [dbo].[TABFU] WITH NOCHECK ADD
	CONSTRAINT [DF__TABFU__KOFU__1C680BB2] DEFAULT ('') FOR [KOFU],
	CONSTRAINT [DF__TABFU__NOKOFU__1D5C2FEB] DEFAULT ('') FOR [NOKOFU],
	CONSTRAINT [DF__TABFU__TIFU__1E505424] DEFAULT ('') FOR [TIFU],
	CONSTRAINT [DF__TABFU__RTFU__1F44785D] DEFAULT ('') FOR [RTFU],
	CONSTRAINT [DF__TABFU__CIFU__20389C96] DEFAULT ('') FOR [CIFU],
	CONSTRAINT [DF__TABFU__CMFU__212CC0CF] DEFAULT ('') FOR [CMFU],
	CONSTRAINT [DF__TABFU__DIFU__2220E508] DEFAULT ('') FOR [DIFU],
	CONSTRAINT [DF__TABFU__FOFU__23150941] DEFAULT ('') FOR [FOFU],
	CONSTRAINT [DF__TABFU__PWFU__24092D7A] DEFAULT ('') FOR [PWFU],
	CONSTRAINT [DF__TABFU__PLANO__24FD51B3] DEFAULT ('') FOR [PLANO],
	CONSTRAINT [DF__TABFU__KOFUAUTO__25F175EC] DEFAULT ('') FOR [KOFUAUTO],
	CONSTRAINT [DF__TABFU__KOOP__26E59A25] DEFAULT ('') FOR [KOOP],
	CONSTRAINT [DF__TABFU__TEMA__27D9BE5E] DEFAULT ('') FOR [TEMA],
	CONSTRAINT [DF__TABFU__OTORGA__28CDE297] DEFAULT ('') FOR [OTORGA],
	CONSTRAINT [DF__TABFU__NUDO__29C206D0] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF__TABFU__MODALIDAD__2AB62B09] DEFAULT ('') FOR [MODALIDAD],
	CONSTRAINT [DF__TABFU__INACTIVO__2BAA4F42] DEFAULT (0) FOR [INACTIVO],
	CONSTRAINT [DF__TABFU__KOTABLA__2C9E737B] DEFAULT ('') FOR [KOTABLA],
	CONSTRAINT [DF__TABFU__KOCARAC__2D9297B4] DEFAULT ('') FOR [KOCARAC],
	CONSTRAINT [DF__TABFU__EMAIL__2E86BBED] DEFAULT ('') FOR [EMAIL],
	CONSTRAINT [DF__TABFU__PARAFIRMA__2F7AE026] DEFAULT ('') FOR [PARAFIRMA],
	CONSTRAINT [DF__TABFU__CODEXTERN__306F045F] DEFAULT ('') FOR [CODEXTERN],
	CONSTRAINT [DF__TABFU__PERCONTAC__31632898] DEFAULT ('') FOR [PERCONTACT],
	CONSTRAINT [DF_TABFU_EMAILSUP] DEFAULT ('') FOR [EMAILSUP],
	CONSTRAINT [DF__TABFU__REGACTIV__7366C176] DEFAULT (0) FOR [REGACTIV],
	CONSTRAINT [DF__TABFU__CLAVEEXPI__745AE5AF] DEFAULT (0) FOR [CLAVEEXPI],
	CONSTRAINT [DF_TABFU_DIASEXPI] DEFAULT (0) FOR [DIASEXPI]
GO

ALTER TABLE [dbo].[TABFUEM] WITH NOCHECK ADD
	CONSTRAINT [DF_TABFUEM_KOFU] DEFAULT ('') FOR [KOFU],
	CONSTRAINT [DF_TABFUEM_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABFUEM_CONTROL] DEFAULT (0) FOR [CONTROL]
GO

ALTER TABLE [dbo].[TABHF] WITH NOCHECK ADD
	CONSTRAINT [DF_TABHF_NOKOHF] DEFAULT (' ') FOR [NOKOHF]
GO

ALTER TABLE [dbo].[TABIM] WITH NOCHECK ADD
	CONSTRAINT [DF_TABIM_KOIM] DEFAULT ('') FOR [KOIM],
	CONSTRAINT [DF_TABIM_NOKOIM] DEFAULT ('') FOR [NOKOIM],
	CONSTRAINT [DF_TABIM_POIM] DEFAULT (0) FOR [POIM],
	CONSTRAINT [DF_TABIM_MEIM] DEFAULT ('') FOR [MEIM],
	CONSTRAINT [DF_TABIM_CONTAB] DEFAULT ('') FOR [CONTAB],
	CONSTRAINT [DF_TABIM_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_TABIM_CONTABVTA] DEFAULT ('') FOR [CONTABVTA],
	CONSTRAINT [DF_TABIM_SUBAUXIVTA] DEFAULT ('') FOR [SUBAUXIVTA],
	CONSTRAINT [DF_TABIM_KOIMSII] DEFAULT ('') FOR [KOIMSII]
GO

ALTER TABLE [dbo].[TABIMPR] WITH NOCHECK ADD
	CONSTRAINT [DF_TABIMPR_KOPR] DEFAULT ('') FOR [KOPR],
	CONSTRAINT [DF_TABIMPR_KOIM] DEFAULT ('') FOR [KOIM]
GO

ALTER TABLE [dbo].[TABINFO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABINFO_TOTAL] DEFAULT (0) FOR [TOTAL],
	CONSTRAINT [DF_TABINFO_CONTROL] DEFAULT (0) FOR [CONTROL],
	CONSTRAINT [DF_TABINFO_ORDEN] DEFAULT (0) FOR [ORDEN]
GO

ALTER TABLE [dbo].[TABKOPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABKOPRE_IDTABITPRE] DEFAULT (0) FOR [IDTABITPRE]
GO

ALTER TABLE [dbo].[TABLOTES] WITH NOCHECK ADD
	CONSTRAINT [DF_TABLOTES_NULOTE] DEFAULT ('') FOR [NULOTE],
	CONSTRAINT [DF_TABLOTES_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABLOTES_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_TABLOTES_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_TABLOTES_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_TABLOTES_SUDO] DEFAULT ('') FOR [SUDO]
GO

ALTER TABLE [dbo].[TABLUG] WITH NOCHECK ADD
	CONSTRAINT [DF_TABLUG_EMPRESAS] DEFAULT ('') FOR [EMPRESAS]
GO

ALTER TABLE [dbo].[TABMEN] WITH NOCHECK ADD
	CONSTRAINT [DF__TABMEN__ESREGAGE__6EA20C59] DEFAULT (0) FOR [ESREGAGEND]
GO

ALTER TABLE [dbo].[TABMETAS] WITH NOCHECK ADD
	CONSTRAINT [PK_TABMETAS] PRIMARY KEY  NONCLUSTERED
	(
		[PERIODO],
		[KOFU]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABMO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABMO_VAMO] DEFAULT (0) FOR [VAMO],
	CONSTRAINT [DF_TABMO_FACOMOAN] DEFAULT (0) FOR [FACOMOAN],
	CONSTRAINT [DF_TABMO_FACOMO1S] DEFAULT (0) FOR [FACOMO1S],
	CONSTRAINT [DF_TABMO_FACOMO2S] DEFAULT (0) FOR [FACOMO2S],
	CONSTRAINT [DF_TABMO_VAMOCOM] DEFAULT (0) FOR [VAMOCOM]
GO

ALTER TABLE [dbo].[TABMODE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABMODE_STOCKASEG] DEFAULT (0) FOR [STOCKASEG],
	CONSTRAINT [DF_TABMODE_PRRG] DEFAULT (0) FOR [PRRG],
	CONSTRAINT [DF_TABMODE_OTRASVAR] DEFAULT ('') FOR [OTRASVAR]
GO

ALTER TABLE [dbo].[TABMR] WITH NOCHECK ADD
	CONSTRAINT [DF_TABMR_NOKOMR] DEFAULT (' ') FOR [NOKOMR]
GO

ALTER TABLE [dbo].[TABPERMISO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABPERMISO_TIPOPERMI] DEFAULT ('') FOR [TIPOPERMI],
	CONSTRAINT [DF_TABPERMISO_ENVIOS1] DEFAULT (0) FOR [ENVIOS1],
	CONSTRAINT [DF_TABPERMISO_ENVIOS2] DEFAULT (0) FOR [ENVIOS2],
	CONSTRAINT [DF_TABPERMISO_ENVIOS3] DEFAULT (0) FOR [ENVIOS3],
	CONSTRAINT [DF_TABPERMISO_ENVIOS4] DEFAULT (0) FOR [ENVIOS4],
	CONSTRAINT [DF_TABPERMISO_ENVIOS5] DEFAULT (0) FOR [ENVIOS5]
GO

ALTER TABLE [dbo].[TABPF] WITH NOCHECK ADD
	CONSTRAINT [DF_TABPF_NOKOPF] DEFAULT (' ') FOR [NOKOPF]
GO

ALTER TABLE [dbo].[TABPLCR] WITH NOCHECK ADD
	CONSTRAINT [DF_TABPLCR_CUOTAS] DEFAULT (0) FOR [CUOTAS],
	CONSTRAINT [DF_TABPLCR_INTERES] DEFAULT (0) FOR [INTERES],
	CONSTRAINT [DF_TABPLCR_TIPOINT] DEFAULT (0) FOR [TIPOINT],
	CONSTRAINT [DF_TABPLCR_MODIFICAR] DEFAULT (0) FOR [MODIFICAR]
GO

ALTER TABLE [dbo].[TABPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABPRE_KOLT] DEFAULT ('') FOR [KOLT],
	CONSTRAINT [DF_TABPRE_KOPRRA] DEFAULT ('') FOR [KOPRRA],
	CONSTRAINT [DF_TABPRE_KOPRTE] DEFAULT ('') FOR [KOPRTE],
	CONSTRAINT [DF_TABPRE_RLUD] DEFAULT (0) FOR [RLUD],
	CONSTRAINT [DF_TABPRE_PP01UD] DEFAULT (0) FOR [PP01UD],
	CONSTRAINT [DF_TABPRE_MG01UD] DEFAULT (0) FOR [MG01UD],
	CONSTRAINT [DF_TABPRE_DTMA01UD] DEFAULT (0) FOR [DTMA01UD],
	CONSTRAINT [DF_TABPRE_PP02UD] DEFAULT (0) FOR [PP02UD],
	CONSTRAINT [DF_TABPRE_MG02UD] DEFAULT (0) FOR [MG02UD],
	CONSTRAINT [DF_TABPRE_DTMA02UD] DEFAULT (0) FOR [DTMA02UD],
	CONSTRAINT [DF_TABPRE_PPUL01] DEFAULT (0) FOR [PPUL01],
	CONSTRAINT [DF_TABPRE_PPUL02] DEFAULT (0) FOR [PPUL02],
	CONSTRAINT [DF_TABPRE_PM01] DEFAULT (0) FOR [PM01],
	CONSTRAINT [DF_TABPRE_PM02] DEFAULT (0) FOR [PM02],
	CONSTRAINT [DF_TABPRE_C_INSUMOS] DEFAULT (0) FOR [C_INSUMOS],
	CONSTRAINT [DF_TABPRE_C_MAQUINAS] DEFAULT (0) FOR [C_MAQUINAS],
	CONSTRAINT [DF_TABPRE_C_M_OBRA] DEFAULT (0) FOR [C_M_OBRA],
	CONSTRAINT [DF_TABPRE_C_FABRIC] DEFAULT (0) FOR [C_FABRIC],
	CONSTRAINT [DF_TABPRE_C_COMPRA] DEFAULT (0) FOR [C_COMPRA],
	CONSTRAINT [DF_TABPRE_C_LIBRE] DEFAULT (0) FOR [C_LIBRE],
	CONSTRAINT [DF__TABPRE__DSCTO01__76432E21] DEFAULT (0) FOR [DSCTO01],
	CONSTRAINT [DF__TABPRE__RECGO01__7737525A] DEFAULT (0) FOR [RECGO01]
GO

ALTER TABLE [dbo].[TABREMOT] WITH NOCHECK ADD
	CONSTRAINT [DF_TABREMOT_KOFU] DEFAULT ('') FOR [KOFU],
	CONSTRAINT [DF_TABREMOT_NUREMOT] DEFAULT ('') FOR [NUREMOT],
	CONSTRAINT [DF_TABREMOT_NOKOFU] DEFAULT ('') FOR [NOKOFU],
	CONSTRAINT [DF_TABREMOT_KOFUAUTO] DEFAULT ('') FOR [KOFUAUTO],
	CONSTRAINT [DF_TABREMOT_KOOP] DEFAULT ('') FOR [KOOP],
	CONSTRAINT [DF_TABREMOT_TEMA] DEFAULT ('') FOR [TEMA],
	CONSTRAINT [DF_TABREMOT_OTORGA] DEFAULT ('') FOR [OTORGA],
	CONSTRAINT [DF_TABREMOT_NUDOKASI] DEFAULT (0) FOR [NUDOKASI],
	CONSTRAINT [DF_TABREMOT_KOEN] DEFAULT ('') FOR [KOEN],
	CONSTRAINT [DF_TABREMOT_NOKOEN] DEFAULT ('') FOR [NOKOEN],
	CONSTRAINT [DF_TABREMOT_VABRDO] DEFAULT (0) FOR [VABRDO],
	CONSTRAINT [DF_TABREMOT_NIVEL] DEFAULT ('') FOR [NIVEL],
	CONSTRAINT [DF_TABREMOT_REGDDO] DEFAULT ('') FOR [REGDDO]
GO

ALTER TABLE [dbo].[TABRETI] WITH NOCHECK ADD
	CONSTRAINT [DF__TABRETI__RETCLI__00C0BC94] DEFAULT (0) FOR [RETCLI],
	CONSTRAINT [DF_TABRETI_KOENRESP] DEFAULT ('') FOR [KOENRESP],
	CONSTRAINT [DF_TABRETI_SUENRESP] DEFAULT ('') FOR [SUENRESP]
GO

ALTER TABLE [dbo].[TABRU] WITH NOCHECK ADD
	CONSTRAINT [DF_TABRU_NOKORU] DEFAULT (' ') FOR [NOKORU]
GO

ALTER TABLE [dbo].[TABSU] WITH NOCHECK ADD
	CONSTRAINT [DF_TABSU_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABSU_KOSU] DEFAULT ('') FOR [KOSU],
	CONSTRAINT [DF_TABSU_KOFUSU] DEFAULT ('') FOR [KOFUSU],
	CONSTRAINT [DF_TABSU_NOKOSU] DEFAULT ('') FOR [NOKOSU],
	CONSTRAINT [DF_TABSU_CISU] DEFAULT ('') FOR [CISU],
	CONSTRAINT [DF_TABSU_CMSU] DEFAULT ('') FOR [CMSU],
	CONSTRAINT [DF_TABSU_DISU] DEFAULT ('') FOR [DISU],
	CONSTRAINT [DF_TABSU_FOSU] DEFAULT ('') FOR [FOSU]
GO

ALTER TABLE [dbo].[TABSUPRE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABSUPRE_PERIODO] DEFAULT ('') FOR [PERIODO],
	CONSTRAINT [DF_TABSUPRE_GRANCUE] DEFAULT ('') FOR [GRANCUE],
	CONSTRAINT [DF_TABSUPRE_MAYOR] DEFAULT ('') FOR [MAYOR],
	CONSTRAINT [DF_TABSUPRE_CUENTA] DEFAULT ('') FOR [CUENTA],
	CONSTRAINT [DF_TABSUPRE_SUBAUXI] DEFAULT ('') FOR [SUBAUXI],
	CONSTRAINT [DF_TABSUPRE_KOPRESU] DEFAULT ('') FOR [KOPRESU],
	CONSTRAINT [DF_TABSUPRE_APRESU] DEFAULT ('') FOR [APRESU],
	CONSTRAINT [DF_TABSUPRE_BPRESU] DEFAULT ('') FOR [BPRESU],
	CONSTRAINT [DF_TABSUPRE_CPRESU] DEFAULT ('') FOR [CPRESU],
	CONSTRAINT [DF_TABSUPRE_LCUENTA] DEFAULT (0) FOR [LCUENTA]
GO

ALTER TABLE [dbo].[TABTIDO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABTIDO_NUTIDO] DEFAULT (0) FOR [NUTIDO],
	CONSTRAINT [DF_TABTIDO_LFORMATO] DEFAULT (1) FOR [LFORMATO],
	CONSTRAINT [DF_TABTIDO_NUEMRO] DEFAULT (0) FOR [NUEMRO],
	CONSTRAINT [DF_TABTIDO_PERMISOS] DEFAULT (0) FOR [PERMISOS]
GO

ALTER TABLE [dbo].[TABTR] WITH NOCHECK ADD
	CONSTRAINT [DF_TABTR_TOVH] DEFAULT (0) FOR [TOVH]
GO

ALTER TABLE [dbo].[TABTURNO] WITH NOCHECK ADD
	CONSTRAINT [DF_TABTURNO_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TABTURNO_KOTU] DEFAULT ('') FOR [KOTU],
	CONSTRAINT [DF_TABTURNO_HITU] DEFAULT (0) FOR [HITU],
	CONSTRAINT [DF_TABTURNO_HTTU] DEFAULT (0) FOR [HTTU],
	CONSTRAINT [DF_TABTURNO_NOKOTU] DEFAULT ('') FOR [NOKOTU]
GO

ALTER TABLE [dbo].[TABVISBUE] WITH NOCHECK ADD
	CONSTRAINT [DF_TABVISBUE_VISTOBUENO] DEFAULT (0) FOR [VISTOBUENO],
	CONSTRAINT [DF_TABVISBUE_IPOTORGA] DEFAULT ('') FOR [IPOTORGA]
GO

ALTER TABLE [dbo].[TCONPREM] WITH NOCHECK ADD
	CONSTRAINT [DF_TCONPREM_EMPRESA] DEFAULT ('') FOR [EMPRESA],
	CONSTRAINT [DF_TCONPREM_TIDO] DEFAULT ('') FOR [TIDO],
	CONSTRAINT [DF_TCONPREM_NUDO] DEFAULT ('') FOR [NUDO],
	CONSTRAINT [DF_TCONPREM_ENDO] DEFAULT ('') FOR [ENDO],
	CONSTRAINT [DF_TCONPREM_CODPREM] DEFAULT ('') FOR [CODPREM],
	CONSTRAINT [DF_TCONPREM_NOKOPREM] DEFAULT ('') FOR [NOKOPREM],
	CONSTRAINT [DF_TCONPREM_RUTCONTACT] DEFAULT ('') FOR [RUTCONTACT]
GO

ALTER TABLE [dbo].[TINFORD] WITH NOCHECK ADD
	CONSTRAINT [DF__TINFORD__TOTALIZ__13A7DD28] DEFAULT (0) FOR [TOTALIZAR],
	CONSTRAINT [DF__TINFORD__CORTE__149C0161] DEFAULT (0) FOR [CORTE]
GO

ALTER TABLE [dbo].[TPREMIOS] WITH NOCHECK ADD
	CONSTRAINT [DF_TPREMIOS_NOKOPREM] DEFAULT ('') FOR [NOKOPREM],
	CONSTRAINT [DF_TPREMIOS_VALOR] DEFAULT (0) FOR [VALOR],
	CONSTRAINT [DF_TPREMIOS_CANTIDAD] DEFAULT (0) FOR [CANTIDAD],
	CONSTRAINT [PK_TPREMIOS] PRIMARY KEY  NONCLUSTERED
	(
		[CODPREM]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TPROYECT] WITH NOCHECK ADD
	CONSTRAINT [DF_TPROYECT_FUNCASIG] DEFAULT ('') FOR [FUNCASIG]
GO

ALTER TABLE [dbo].[TRANMASI] WITH NOCHECK ADD
	CONSTRAINT [DF_TRANMASI_CRM] DEFAULT (0) FOR [CRM],
	CONSTRAINT [DF_TRANMASI_GESTION] DEFAULT (0) FOR [GESTION],
	CONSTRAINT [DF_TRANMASI_COMPRAS] DEFAULT (0) FOR [COMPRAS]
GO

 CREATE  INDEX [IX1_ACUADPRE] ON [dbo].[ACUADPRE]([EMPRESA], [PERIODO], [KOPRESU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CACTFI] ON [dbo].[CACTFI]([KOPR], [NUSEPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CACTFI] ON [dbo].[CACTFI]([KOPRPE], [NUSEPRPE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_CACTFI] ON [dbo].[CACTFI]([PERIODO], [GRANCUE], [MAYOR], [CUENTA], [SUBAUXI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CCARTOLD] ON [dbo].[CCARTOLD]([IDCARTOLE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCARTOLD] ON [dbo].[CCARTOLD]([IDRST]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [UX1_CCARTOLE] ON [dbo].[CCARTOLE]([EMPRESA], [PERIODO], [NUCAR], [CTACTECAR], [CUENTACON], [SUBAUXICON]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCARTOLE] ON [dbo].[CCARTOLE]([PERIODO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CCOMPRC] ON [dbo].[CCOMPRC]([IDCOMPRD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCOMPRC] ON [dbo].[CCOMPRC]([CODCC]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CCOMPRD] ON [dbo].[CCOMPRD]([IDCOMPRE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCOMPRD] ON [dbo].[CCOMPRD]([GRANCUE], [MAYOR], [CUENTA], [SUBAUXI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CCOMPRD1] ON [dbo].[CCOMPRD1]([IDCOMPRD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCOMPRD1] ON [dbo].[CCOMPRD1]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_CCOMPRD1] ON [dbo].[CCOMPRD1]([SUBDEBE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_CCOMPRD1] ON [dbo].[CCOMPRD1]([SUBHABER]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [UX1_CCOMPRE] ON [dbo].[CCOMPRE]([EMPRESA], [PERIODO], [NUMECOM], [TIPOCOM]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CCOMPRE] ON [dbo].[CCOMPRE]([FECHCOM]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [UX2_CCOMPRE] ON [dbo].[CCOMPRE]([PERIODO], [EMPRESA], [NUMECOM]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CDICUEN] ON [dbo].[CDICUEN]([EMPRESA], [GRANCUE], [MAYOR], [CUENTA], [SUBAUXI], [CODCC]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CDOCCOD] ON [dbo].[CDOCCOD]([IDDOCCOD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CDOCCOD] ON [dbo].[CDOCCOD]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_CDOCCOE] ON [dbo].[CDOCCOE]([PERIODO], [EMPRESA], [TIDO], [NUDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CDOCCOE] ON [dbo].[CDOCCOE]([ESPGDO]) ON [PRIMARY]
GO

 CREATE  INDEX [UX1_CDOCCOE] ON [dbo].[CDOCCOE]([EMPRESA], [TIDO], [NUDO], [ENDO], [SIMILSISTE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CFORMCOM] ON [dbo].[CFORMCON]([NOKOFORMU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CNETEOS] ON [dbo].[CNETEOS]([IDPRD1ACT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_CNETEOS] ON [dbo].[CNETEOS]([IDPRD1PAS]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_CNETEOS] ON [dbo].[CNETEOS]([NURANALI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CPRESUP] ON [dbo].[CPRESUP]([APRESU], [BPRESU], [CPRESU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CPRORRO] ON [dbo].[CPRORRO]([EMPRESA], [TIDP], [NUDP], [ENDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_CTABAPER] ON [dbo].[CTABAPER]([EMPRESA], [FECHAREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_DETADPRE] ON [dbo].[DETADPRE]([IDTABITPRE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAEACT] ON [dbo].[EMAEACT]([IDMAEMEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAEDEST] ON [dbo].[EMAEDEST]([IDMAEMEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAEDEST_1] ON [dbo].[EMAEDEST]([RECEPTOR], [LEIDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAELINK] ON [dbo].[EMAELINK]([ARLINK], [IDLINK]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAELINK_1] ON [dbo].[EMAELINK]([IDMAEMEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_EMAEMEN] ON [dbo].[EMAEMEN]([EMISOR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_FCORREO] ON [dbo].[FCORREO]([ESTADO]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IIX_FCORREO_1] ON [dbo].[FCORREO]([IDRST]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX1_FFOLIOS] ON [dbo].[FFOLIOS]([TD], [RNG_D], [RNG_H]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAEDTE] ON [dbo].[FMAEDTE]([IDDT]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAELIBRO] ON [dbo].[FMAELIB]([LIBRO]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAEPETD] ON [dbo].[FMAEPETD]([IDPET]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAEPETD_1] ON [dbo].[FMAEPETD]([IDDTE]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAERESE] ON [dbo].[FMAERESE]([INFORMADO], [IDENVIO]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAESOBD] ON [dbo].[FMAESOBD]([IDSOBE]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX1_FMAESOBE] ON [dbo].[FMAESOBE]([IDPET]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAESRD] ON [dbo].[FMAESRD]([IDSRE]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_FMAESRE] ON [dbo].[FMAESRE]([FECHARE], [HORAGRAB], [ESACEP]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX1_FPASODT] ON [dbo].[FPASODT]([IDMAEEDO]) WITH  FILLFACTOR = 60 ON [PRIMARY]
GO

 CREATE  INDEX [IX_KASIDAUT] ON [dbo].[KASIDAUT]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_KASIDDO] ON [dbo].[KASIDDO]([NUDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_KASIDDO] ON [dbo].[KASIDDO]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_KASIDDO] ON [dbo].[KASIDDO]([KOPRCT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_KASIDTLI] ON [dbo].[KASIDTLI]([IDMAEEDO], [NULIDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_KASIEDO] ON [dbo].[KASIEDO]([EMPRESA], [TIDO], [NUDO], [ENDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_KASIEDO] ON [dbo].[KASIEDO]([NUDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_KASIEDO] ON [dbo].[KASIEDO]([EMPRESA], [TIDO], [LIBRO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_KASIEDOB] ON [dbo].[KASIEDOB]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_KASIIMLI] ON [dbo].[KASIIMLI]([IDMAEEDO], [NULIDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_LORESCAD] ON [dbo].[LORESCAD]([KOLORESCA], [KOPR], [KOSU], [KOBO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEDCR] ON [dbo].[MAEDCR]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEDDO] ON [dbo].[MAEDDO]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEDDO] ON [dbo].[MAEDDO]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEDDO] ON [dbo].[MAEDDO]([KOPRCT], [NUSEPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_MAEDDO] ON [dbo].[MAEDDO]([FEEMLI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX5_MAEDDO] ON [dbo].[MAEDDO]([FEERLI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX6_MAEDDO] ON [dbo].[MAEDDO]([ESPRODLI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX7_MAEDDO] ON [dbo].[MAEDDO]([TIDOPA], [IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX8_MAEDDO] ON [dbo].[MAEDDO]([ENDO], [TIDO], [EMPRESA], [ESLIDO], [LILG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX9_MAEDDO] ON [dbo].[MAEDDO]([FEEMLI], [TIDO], [BOSULIDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEDDOAU] ON [dbo].[MAEDDOAU]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEDPCD] ON [dbo].[MAEDPCD]([IDMAEDPCE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEDPCD] ON [dbo].[MAEDPCD]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEDPCE] ON [dbo].[MAEDPCE]([ENDP], [TIDP], [ESASDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEDPCE] ON [dbo].[MAEDPCE]([EMPRESA], [CJREDP], [TIDP], [NUDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEDPCE] ON [dbo].[MAEDPCE]([FEEMDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_MAEDPCE] ON [dbo].[MAEDPCE]([ESASDP], [TIDP], [FEEMDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX5_MAEDPCE] ON [dbo].[MAEDPCE]([EMPRESA], [TIDP], [NUDP], [ENDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX6_MAEDPCE] ON [dbo].[MAEDPCE]([ENDP], [TIDP], [ESPGDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX7_MAEDPCE] ON [dbo].[MAEDPCE]([TIDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX8_MAEDPCE] ON [dbo].[MAEDPCE]([IDRSD], [ARCHIRSD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEDTLI] ON [dbo].[MAEDTLI]([IDMAEEDO], [NULIDO]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [UX1_MAEEDO] ON [dbo].[MAEEDO]([EMPRESA], [TIDO], [NUDO], [ENDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEEDO] ON [dbo].[MAEEDO]([FEEMDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX10_MAEEDO] ON [dbo].[MAEEDO]([EMPRESA], [LIBRO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX7_MAEEDO] ON [dbo].[MAEEDO]([ESFADO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEEDO] ON [dbo].[MAEEDO]([TIDO], [FEEMDO], [EMPRESA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX5_MAEEDO] ON [dbo].[MAEEDO]([FEEMDO], [TIDO], [ESPGDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX9_MAEEDO] ON [dbo].[MAEEDO]([ENDO], [TIDO], [EMPRESA], [ESPGDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX6_MAEEDO] ON [dbo].[MAEEDO]([ESPRODDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_MAEEDO] ON [dbo].[MAEEDO]([EMPRESA], [TIDO], [FEEMDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX8_MAEEDO] ON [dbo].[MAEEDO]([TIDO], [NUDO], [ENDO], [ESDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX11_MAEEDO] ON [dbo].[MAEEDO]([ENDO], [TIDO], [FEEMDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEEDOOB] ON [dbo].[MAEEDOOB]([OCDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEELIMI] ON [dbo].[MAEELIMI]([TIDO], [NUDO], [ENDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEELIMI] ON [dbo].[MAEELIMI]([PERIODO], [TIPOCOM], [NUMECOM]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEELIMI] ON [dbo].[MAEELIMI]([KOFUDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEELOTE] ON [dbo].[MAEELOTE]([EMPRESA], [KOSU], [KOBO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEEN] ON [dbo].[MAEEN]([NOKOEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEEN] ON [dbo].[MAEEN]([TIEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEEN] ON [dbo].[MAEEN]([RTEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_MAEEN] ON [dbo].[MAEEN]([DIEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEENCTA] ON [dbo].[MAEENCTA]([KOEN], [CUENTA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEENOBS] ON [dbo].[MAEENOBS]([KOEN], [SUEN], [FECHA] DESC , [SEMILLA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEENOBS] ON [dbo].[MAEENOBS]([KOFU], [FECHA] DESC ) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEENVA] ON [dbo].[MAEENVA]([KOENVASE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEETIQ] ON [dbo].[MAEETIQ]([LIDDOCRI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEIMLI] ON [dbo].[MAEIMLI]([IDMAEEDO], [NULIDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAELIFO] ON [dbo].[MAELIFO]([KOPR], [ESTADO], [FEEMLI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEMEN] ON [dbo].[MAEMEN]([IDTABMEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEMEN_1] ON [dbo].[MAEMEN]([EMISOR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEMEN_2] ON [dbo].[MAEMEN]([RECEPTOR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEMO] ON [dbo].[MAEMO]([KOMO], [FEMO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEOFERD] ON [dbo].[MAEOFERD]([ELEMENTO], [CODIGO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEOFERE] ON [dbo].[MAEOFERE]([FECHAINI], [FECHAFIN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MAEPOSLI] ON [dbo].[MAEPOSLI]([IDMAEDDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEPR] ON [dbo].[MAEPR]([KOPRRA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MAEPR] ON [dbo].[MAEPR]([KOPRTE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MAEPR] ON [dbo].[MAEPR]([NOKOPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_MAEPR] ON [dbo].[MAEPR]([KOMODE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX5_MAEPR] ON [dbo].[MAEPR]([ATPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX6_MAEPR] ON [dbo].[MAEPR]([FMPR], [PFPR], [HFPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAESERIE] ON [dbo].[MAESERIE]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEST] ON [dbo].[MAEST]([KOPR], [KOSU], [KOBO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_MAEVEN] ON [dbo].[MAEVEN]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MALERT] ON [dbo].[MALERT]([KOALERT], [IDMALERT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MCODBAR] ON [dbo].[MCODBAR]([IDMAEEDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MDDOETIQ] ON [dbo].[MDDOETIQ]([IDMAEDDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MLIQARR] ON [dbo].[MLIQARR]([IDPOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MLIQARR] ON [dbo].[MLIQARR]([IDMAEDDO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_MLIQARR] ON [dbo].[MLIQARR]([FLIQUID]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MLIQARRD] ON [dbo].[MLIQARRD]([IDPOTL], [IDPOTD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_MLIQARR] ON [dbo].[MLIQARRD]([FLIQUID]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_MPROENVA] ON [dbo].[MPROENVA]([KOPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PAYUDAS] ON [dbo].[PAYUDAS]([PROGRAMA], [VENTANA], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PDATFAD] ON [dbo].[PDATFAD]([EMPRESA], [NUMDF], [NUMOT], [OPERACION], [CODMAQ], [NREGOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_PDATFAD] ON [dbo].[PDATFAD]([FECHINI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_PDATFAD] ON [dbo].[PDATFAD]([IDPDATFAE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_PDATFAD] ON [dbo].[PDATFAD]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PDATFAE] ON [dbo].[PDATFAE]([EMPRESA], [NUMDF]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PDATTAD] ON [dbo].[PDATTAD]([IDPDATTAE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_PDATTAD] ON [dbo].[PDATTAD]([IDPTICKET]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_PDATTAD] ON [dbo].[PDATTAD]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PDATTAE] ON [dbo].[PDATTAE]([EMPRESA], [NUMDF]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PHORAMAQ] ON [dbo].[PHORAMAQ]([EMPRESA], [NUMOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_PHORAMAQ] ON [dbo].[PHORAMAQ]([CODMAQ]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PINSUPRO] ON [dbo].[PINSUPRO]([CODNOMEN], [NREGNOM]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_POBREFAD] ON [dbo].[POBREFAD]([IDPDATFAD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_POBREFAD] ON [dbo].[POBREFAD]([OBRERO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PODCD] ON [dbo].[PODCD]([IDPODCE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PODCD_1] ON [dbo].[PODCD]([EMPRESA], [NUMODC], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_PODCD] ON [dbo].[PODCD]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PODCE] ON [dbo].[PODCE]([EMPRESA], [NUMODC]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTD] ON [dbo].[POTD]([IDPOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTD_1] ON [dbo].[POTD]([EMPRESA], [NUMOT], [NREG], [SUBNREG]) ON [PRIMARY]
GO

 CREATE  UNIQUE  INDEX [IX_POTE] ON [dbo].[POTE]([ESTADO], [NUMOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTE_1] ON [dbo].[POTE]([EMPRESA], [NUMOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTE_2] ON [dbo].[POTE]([ESODD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTE_3] ON [dbo].[POTE]([SUOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTL] ON [dbo].[POTL]([IDPOTE]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTL_1] ON [dbo].[POTL]([EMPRESA], [NUMOT], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTL_2] ON [dbo].[POTL]([ESODD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTLCOM] ON [dbo].[POTLCOM]([DESDE], [NUMECOTI], [NREGCOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IIX_POTLCOM_1] ON [dbo].[POTLCOM]([IDPOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IIX_POTLCOM_2] ON [dbo].[POTLCOM]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IIX_POTLCOM_3] ON [dbo].[POTLCOM]([EMPRESA], [NUMOT], [NREGOTL], [DESDE], [NUMECOTI], [ENDO], [NREGCOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IIX_POTLCOM_4] ON [dbo].[POTLCOM]([ESODD]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_POTLSER] ON [dbo].[POTLSER]([KOPR], [NUSEPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_POTLSER] ON [dbo].[POTLSER]([IDPOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_POTLSER] ON [dbo].[POTLSER]([NUMOT], [NREGOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTPR] ON [dbo].[POTPR]([IDPOTL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTPR_1] ON [dbo].[POTPR]([EMPRESA], [NUMOT], [NREGOTL], [ORDEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTPRTA] ON [dbo].[POTPRTA]([NUMOT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_POTPRTA_1] ON [dbo].[POTPRTA]([IDPOTPR], [TAREA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLAMAQ] ON [dbo].[PPLAMAQ]([EMPRESA], [CODMAQ]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_PPLAND] ON [dbo].[PPLAND]([NUMPLAN], [HORAI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLAND] ON [dbo].[PPLAND]([EMPRESA], [NUMPLAN], [HORAI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLANPR] ON [dbo].[PPLANPR]([EMPRESA], [CODIGO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLAPRIO] ON [dbo].[PPLAPRIO]([EMPRESA], [CODIGO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLASIMU] ON [dbo].[PPLASIMU]([EMPRESA], [EVENTO], [EXITOS]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PPLAVST] ON [dbo].[PPLAVST]([EMPRESA], [EVENTO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PRESERVA] ON [dbo].[PRESERVA]([IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_PRESERVA] ON [dbo].[PRESERVA]([IDDEST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_PRESERVA] ON [dbo].[PRESERVA]([CODIGO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_PTAROP] ON [dbo].[PTAROP]([TAREA], [OPERACION]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_RCLASED] ON [dbo].[RCLASED]([CLASE], [KOCO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_RLIQUID] ON [dbo].[RLIQUID]([NPROCESO], [KOPER], [CLASE], [KOCO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_RLIQUIDM] ON [dbo].[RLIQUIDM]([NPROCESO], [KOPER], [CLASE], [KOCO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_RPERSE] ON [dbo].[RPERSE]([RUTPER]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_RPERSE] ON [dbo].[RPERSE]([NOKOPER]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABBOPR] ON [dbo].[TABBOPR]([KOSU], [KOBO], [KOPR]) ON [PRIMARY]
GO

 CREATE  INDEX [RUT] ON [dbo].[TABCFG]([RUT], [RAZON]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABCODAL] ON [dbo].[TABCODAL]([KOPR]) ON [PRIMARY]
GO

 CREATE  INDEX [IX2_TABCODAL] ON [dbo].[TABCODAL]([KOPRAL], [KOEN]) ON [PRIMARY]
GO

 CREATE  INDEX [IX3_TABCODAL] ON [dbo].[TABCODAL]([KOPRAL2]) ON [PRIMARY]
GO

 CREATE  INDEX [IX4_TABCODAL] ON [dbo].[TABCODAL]([KOPRAL3]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABDPCE] ON [dbo].[TABDPCE]([TIDP], [NUDP], [ENDP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABEP] ON [dbo].[TABEP]([TIDO], [AMDO], [KOEP]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABFU] ON [dbo].[TABFU]([PWFU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABGRUEN] ON [dbo].[TABGRUEN]([KOENFCC], [SUENFCC]) ON [PRIMARY]
GO

 CREATE  INDEX [PK_TABNOFAVO] ON [dbo].[TABNOFAVO]([KOFU], [TABLA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABPERMISO] ON [dbo].[TABPERMISO]([ARCHIRST], [IDRST]) WITH  FILLFACTOR = 90 ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABPERMISO_1] ON [dbo].[TABPERMISO]([ESTADO0]) WITH  FILLFACTOR = 90 ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABPLCR] ON [dbo].[TABPLCR]([CONVENIO], [CUOTAS]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABREMOT] ON [dbo].[TABREMOT]([NUREMOT], [KOFU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABREMOT] ON [dbo].[TABREMOT]([NUDOKASI], [KOFU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABRUTAD] ON [dbo].[TABRUTAD]([CODRUTA], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABSELEC] ON [dbo].[TABSELEC]([KOFU]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TABSUPRE] ON [dbo].[TABSUPRE]([PERIODO], [KOPRESU], [GRANCUE], [MAYOR], [CUENTA], [SUBAUXI]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TABVISBUE] ON [dbo].[TABVISBUE]([ARCHIRST], [IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TBULTOS] ON [dbo].[TBULTOS]([ARCHIRST], [IDRST]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TCANALES] ON [dbo].[TCANALES]([KOCANAL]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TCONTROL] ON [dbo].[TCONTROL]([KOFU], [INFO], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TFILTROS] ON [dbo].[TFILTROS]([MAESTRO], [IDFILTRO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TFUALERT] ON [dbo].[TFUALERT]([IDMALERT]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TINFORD] ON [dbo].[TINFORD]([KOFU], [INFO], [TIPO], [NREG]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TINFORE] ON [dbo].[TINFORE]([KOFU], [INFO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX1_TNEGADOS] ON [dbo].[TNEGADOS]([INFORMADO], [FEEMDO], [KOPRCT], [HORAGRAB]) WITH  FILLFACTOR = 90 ON [PRIMARY]
GO

 CREATE  INDEX [IX_TPROYECT] ON [dbo].[TPROYECT]([PROYECTO]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TRELCON] ON [dbo].[TRELCON]([CODRELCON], [FECHA], [HORA]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_TSELECT] ON [dbo].[TSELECT]([KOFU], [INFO], [NREGI], [NREGJ]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [UX2_CCOMPRE] ON [dbo].[CCOMPRE]([PERIODO], [EMPRESA], [NUMECOM]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MAEENOBS] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEENOBS] PRIMARY KEY  CLUSTERED
	(
		[SEMILLA]
	)  ON [PRIMARY]
GO
ALTER TABLE [dbo].[MAEIMLI] WITH NOCHECK ADD
	CONSTRAINT [PK_MAEIMLI] PRIMARY KEY  CLUSTERED
	(
		[IDMAEIMLI]
	)  ON [PRIMARY]
GO
ALTER TABLE [dbo].[MAELIFO] WITH NOCHECK ADD
	CONSTRAINT [PK_MAELIFO] PRIMARY KEY  CLUSTERED
	(
		[SEMILLA]
	)  ON [PRIMARY]
GO
ALTER TABLE [dbo].[RLIQUID] WITH NOCHECK ADD
	CONSTRAINT [PK_RLIQUID] PRIMARY KEY  CLUSTERED
	(
		[IDRLIQUID]
	)  ON [PRIMARY]
GO

ALTER TABLE [dbo].[TABCODAL] WITH NOCHECK ADD
	CONSTRAINT [PK_TABCODAL] PRIMARY KEY  CLUSTERED
	(
		[KOPRAL],
		[KOPR],
		[KOEN]
	)  ON [PRIMARY]
GO
ALTER TABLE [dbo].[TABEP] WITH NOCHECK ADD
	CONSTRAINT [PK_TABEP] PRIMARY KEY  CLUSTERED
	(
		[TIDO],
		[AMDO],
		[KOEP]
	)  ON [PRIMARY]
GO

