568 lines
14 KiB
SQL
568 lines
14 KiB
SQL
{ TABLE "informix".irtb00001 row size = 56 number of columns = 13 index size = 0 }
|
|
create table "informix".irtb00001
|
|
(
|
|
cod_n smallint not null ,
|
|
cod_grupo smallint not null ,
|
|
cod_tipo smallint not null ,
|
|
cod_sec smallint not null ,
|
|
existencia decimal(10,2),
|
|
exist_min decimal(10,2),
|
|
dia_llegada smallint,
|
|
categoria char(1),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00001 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00002 row size = 56 number of columns = 13 index size = 43
|
|
}
|
|
create table "informix".irtb00002
|
|
(
|
|
cod_n smallint not null ,
|
|
cod_grupo smallint not null ,
|
|
cod_tipo smallint not null ,
|
|
cod_sec smallint not null ,
|
|
existencia decimal(10,2),
|
|
exist_min decimal(10,2),
|
|
dia_llegada smallint,
|
|
categoria char(1),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00002 from "public";
|
|
|
|
create index "informix".ircod on "informix".irtb00002 (cod_n,cod_grupo,cod_tipo,
|
|
cod_sec);
|
|
create index "informix".ircod1 on "informix".irtb00002 (cod_tipo);
|
|
create index "informix".ircod2 on "informix".irtb00002 (status_t);
|
|
create index "informix".idx5 on "informix".irtb00002 (cod_grupo);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00003 row size = 100 number of columns = 24 index size = 0
|
|
}
|
|
create table "informix".irtb00003
|
|
(
|
|
num_doc integer not null ,
|
|
fecha date,
|
|
fact_no char(10),
|
|
conduce_no char(10),
|
|
tipo char(2),
|
|
orden_compra integer,
|
|
cod_sp smallint,
|
|
cod_sp_sec smallint,
|
|
cod_mov smallint not null ,
|
|
maquina smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
cantidad_1 decimal(10,2),
|
|
cantidad_2 decimal(10,2),
|
|
sec_de smallint,
|
|
sec_a smallint,
|
|
status_mov char(1),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00003 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00004 row size = 65 number of columns = 7 index size = 9 }
|
|
create table "informix".irtb00004
|
|
(
|
|
codigo smallint,
|
|
nombre char(30),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00004 from "public";
|
|
|
|
create unique index "informix".ix331_1 on "informix".irtb00004 (codigo);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00005 row size = 100 number of columns = 11 index size = 9
|
|
}
|
|
create table "informix".irtb00005
|
|
(
|
|
cod_mov smallint not null ,
|
|
descrip_mov char(40),
|
|
status_mov char(1),
|
|
cuenta_1 char(8),
|
|
cuenta_2 char(8),
|
|
cuenta_3 char(8),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00005 from "public";
|
|
|
|
create index "informix".ix327_1 on "informix".irtb00005 (cod_mov);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00006 row size = 100 number of columns = 24 index size = 147
|
|
}
|
|
create table "informix".irtb00006
|
|
(
|
|
num_doc integer not null ,
|
|
fecha date,
|
|
fact_no char(10),
|
|
conduce_no char(10),
|
|
tipo char(2),
|
|
orden_compra integer,
|
|
cod_sp smallint,
|
|
cod_sp_sec smallint,
|
|
cod_mov smallint not null ,
|
|
maquina smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
cantidad_1 decimal(10,2),
|
|
cantidad_2 decimal(10,2),
|
|
sec_de smallint,
|
|
sec_a smallint,
|
|
status_mov char(1),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00006 from "public";
|
|
|
|
create index "informix".ix328_1 on "informix".irtb00006 (num_doc);
|
|
create index "informix".ix328_2 on "informix".irtb00006 (fecha);
|
|
create index "informix".ix328_3 on "informix".irtb00006 (fact_no);
|
|
create index "informix".ix328_4 on "informix".irtb00006 (conduce_no);
|
|
create cluster index "informix".busqueda on "informix".irtb00006 (cod_n,cod_grupo,
|
|
cod_tipo,cod_sec,fecha);
|
|
create index "informix".ircodigo on "informix".irtb00006 (cod_n,cod_grupo,cod_tipo,
|
|
cod_sec);
|
|
create index "informix".idx_51 on "informix".irtb00006 (cod_mov,num_doc);
|
|
create index "informix".ir_orden on "informix".irtb00006 (tipo,orden_compra,num_doc,
|
|
cod_mov);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00007 row size = 156 number of columns = 18 index size = 9
|
|
}
|
|
create table "informix".irtb00007
|
|
(
|
|
codigo_m smallint,
|
|
frame char(10),
|
|
numero char(15),
|
|
fase_m smallint,
|
|
serie char(20),
|
|
rpm_m integer,
|
|
hp_m char(7),
|
|
voltaje char(7),
|
|
amperaje char(7),
|
|
ciclo integer,
|
|
tipo char(10),
|
|
modelo char(15),
|
|
marca char(20),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00007 from "public";
|
|
|
|
create index "informix".ix386_1 on "informix".irtb00007 (codigo_m);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00008 row size = 245 number of columns = 18 index size = 36
|
|
}
|
|
create table "informix".irtb00008
|
|
(
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
cod_maq smallint,
|
|
numero char(20),
|
|
serie char(20),
|
|
distribuidor char(30),
|
|
fabricante char(50),
|
|
localizacion char(50),
|
|
material char(20),
|
|
dureza char(10),
|
|
motor_elec smallint,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00008 from "public";
|
|
|
|
create index "informix".cod_n on "informix".irtb00008 (cod_n);
|
|
create index "informix".cod_grupo on "informix".irtb00008 (cod_grupo);
|
|
create index "informix".cod_tipo on "informix".irtb00008 (cod_tipo);
|
|
create index "informix".cod_sec on "informix".irtb00008 (cod_sec);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00009 row size = 138 number of columns = 11 index size = 9
|
|
}
|
|
create table "informix".irtb00009
|
|
(
|
|
codigo smallint,
|
|
nombre char(25),
|
|
unidad_med char(3),
|
|
modelo char(15),
|
|
serie char(15),
|
|
fabricante char(45),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00009 from "public";
|
|
|
|
create index "informix".ix326_1 on "informix".irtb00009 (codigo);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00010 row size = 67 number of columns = 7 index size = 12 }
|
|
create table "informix".irtb00010
|
|
(
|
|
codigo integer,
|
|
nombre char(30),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00010 from "public";
|
|
|
|
create unique index "informix".ix399_1 on "informix".irtb00010 (codigo);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00011 row size = 20 number of columns = 4 index size = 9 }
|
|
create table "informix".irtb00011
|
|
(
|
|
cod_form smallint,
|
|
cod_mov smallint,
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00011 from "public";
|
|
|
|
create unique index "informix".ix1605_2 on "informix".irtb00011 (cod_mov);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00013 row size = 54 number of columns = 13 index size = 39
|
|
}
|
|
create table "informix".irtb00013
|
|
(
|
|
mes_ini smallint,
|
|
mes_fin smallint,
|
|
ano smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
costo_st decimal(12,2),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00013 from "public";
|
|
|
|
create index "informix".irtb231 on "informix".irtb00013 (mes_ini);
|
|
create index "informix".irtb232 on "informix".irtb00013 (cod_n,cod_grupo,cod_tipo,
|
|
cod_sec);
|
|
create index "informix".mes2 on "informix".irtb00013 (ano,mes_fin);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00014 row size = 39 number of columns = 7 index size = 0 }
|
|
create table "informix".irtb00014
|
|
(
|
|
num_salida integer,
|
|
cod_mov smallint,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00014 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00015 row size = 20 number of columns = 4 index size = 0 }
|
|
create table "informix".irtb00015
|
|
(
|
|
cod_form smallint,
|
|
cod_mov smallint,
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00015 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00016 row size = 46 number of columns = 11 index size = 54
|
|
}
|
|
create table "informix".irtb00016
|
|
(
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
categoria char(1),
|
|
mes_ch date,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00016 from "public";
|
|
|
|
create index "informix".ix853_1 on "informix".irtb00016 (cod_n);
|
|
create index "informix".ix853_2 on "informix".irtb00016 (cod_grupo);
|
|
create index "informix".ix853_3 on "informix".irtb00016 (cod_tipo);
|
|
create index "informix".ix853_4 on "informix".irtb00016 (cod_sec);
|
|
create index "informix".ir_codigo on "informix".irtb00016 (cod_n,cod_grupo,cod_tipo,
|
|
cod_sec);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00017 row size = 61 number of columns = 13 index size = 36
|
|
}
|
|
create table "informix".irtb00017
|
|
(
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
semana_del date,
|
|
semana_al date,
|
|
exis_act decimal(10,2),
|
|
exis_fisica decimal(10,2),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00017 from "public";
|
|
|
|
create index "informix".ix857_1 on "informix".irtb00017 (cod_n);
|
|
create index "informix".ix857_2 on "informix".irtb00017 (cod_grupo);
|
|
create index "informix".ix857_3 on "informix".irtb00017 (cod_tipo);
|
|
create index "informix".ix857_4 on "informix".irtb00017 (cod_sec);
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00018 row size = 13 number of columns = 2 index size = 0 }
|
|
create table "informix".irtb00018
|
|
(
|
|
cod_mov integer,
|
|
usuario char(9)
|
|
);
|
|
revoke all on "informix".irtb00018 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00026 row size = 100 number of columns = 24 index size = 0
|
|
}
|
|
create table "informix".irtb00026
|
|
(
|
|
num_doc integer not null ,
|
|
fecha date,
|
|
fact_no char(10),
|
|
conduce_no char(10),
|
|
tipo char(2),
|
|
orden_compra integer,
|
|
cod_sp smallint,
|
|
cod_sp_sec smallint,
|
|
cod_mov smallint not null ,
|
|
maquina smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
cantidad_1 decimal(10,2),
|
|
cantidad_2 decimal(10,2),
|
|
sec_de smallint,
|
|
sec_a smallint,
|
|
status_mov char(1),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00026 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00027 row size = 59 number of columns = 15 index size = 0 }
|
|
create table "informix".irtb00027
|
|
(
|
|
fecha_r date not null ,
|
|
cod_n_r smallint not null ,
|
|
cod_grupo_r smallint not null ,
|
|
cod_tipo_r smallint not null ,
|
|
cod_sec_r smallint not null ,
|
|
cod_n_m smallint not null ,
|
|
cod_grupo_m smallint not null ,
|
|
cod_tipo_m smallint not null ,
|
|
cod_sec_m smallint not null ,
|
|
cantidad_m decimal(10,2) not null ,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00027 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00028 row size = 54 number of columns = 13 index size = 0 }
|
|
create table "informix".irtb00028
|
|
(
|
|
mes_ini smallint not null ,
|
|
mes_fin smallint not null ,
|
|
ano smallint not null ,
|
|
cod_n smallint not null ,
|
|
cod_grupo smallint not null ,
|
|
cod_tipo smallint not null ,
|
|
cod_sec smallint not null ,
|
|
costo_st decimal(12,2) not null ,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00028 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb00029 row size = 37 number of columns = 7 index size = 0 }
|
|
create table "informix".irtb00029
|
|
(
|
|
departamento smallint,
|
|
maquina smallint,
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb00029 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb0013 row size = 54 number of columns = 13 index size = 0 }
|
|
create table "informix".irtb0013
|
|
(
|
|
mes_ini smallint,
|
|
mes_fin smallint,
|
|
ano smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
costo_st decimal(12,2),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb0013 from "public";
|
|
|
|
|
|
|
|
|
|
|
|
{ TABLE "informix".irtb01133 row size = 54 number of columns = 13 index size = 39
|
|
}
|
|
create table "informix".irtb01133
|
|
(
|
|
mes_ini smallint,
|
|
mes_fin smallint,
|
|
ano smallint,
|
|
cod_n smallint,
|
|
cod_grupo smallint,
|
|
cod_tipo smallint,
|
|
cod_sec smallint,
|
|
costo_st decimal(12,2),
|
|
status_t char(1),
|
|
us_crea char(9),
|
|
fech_crea datetime year to minute,
|
|
us_mod char(9),
|
|
fech_mod datetime year to minute
|
|
);
|
|
revoke all on "informix".irtb01133 from "public";
|
|
|
|
create index "informix".irtb11133 on "informix".irtb01133 (mes_ini);
|
|
create index "informix".irtb21133 on "informix".irtb01133 (cod_n,cod_grupo,cod_tipo,
|
|
cod_sec);
|
|
create index "informix".irtb31133 on "informix".irtb01133 (ano,mes_fin);
|