[Pgsql-ayuda] reverse engineering database
sandrigo lezcano
psql@msa.com.py
Fri, 23 May 2003 14:28:33 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0048_01C32137.96D70E20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
usando Reverse Engineering Database ... del=20
PowerDisigner 7.0 al ODBC del PostgreSQL
creo que los tipos de datos tienen que ser modificados manualmente
me da un archivo: crebas.sql
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Database name: MODL_1 */
/* DBMS name: Sybase AS Anywhere 7 */
/* Created on: 23/05/03 02:09:21 PM */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : accidentes_laborales */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.accidentes_laborales
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
tipo_accidente smallint not null
check (tipo_accidente >=3D 1),
descripcion varchar(256),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.accidentes_laborales.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.accidentes_laborales.legajo is 'Legajo'
/
comment on column sal.accidentes_laborales.fecha is 'Fecha'
/
comment on column sal.accidentes_laborales.tipo_accidente is 'Tipo =
Accidente'
/
comment on column sal.accidentes_laborales.descripcion is =
'Descripci=A2n'
/
comment on column sal.accidentes_laborales.fecha_insercion is 'Fecha =
Inserci=A2n'
/
comment on column sal.accidentes_laborales.usuario_insercion is 'Usuario =
Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : actividades_ips */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.actividades_ips
(
anio smallint not null
check (anio between 1900 and 2500),
mes tinyint not null
check (mes between 1 and 12),
legajo integer not null
check (legajo >=3D 1),
actividad char(2) not null,
empresa integer not null,
primary key (anio, mes, legajo, empresa)
)
/
comment on column sal.actividades_ips.anio is 'A=A4o'
/
comment on column sal.actividades_ips.mes is 'Mes'
/
comment on column sal.actividades_ips.legajo is 'Legajo'
/
comment on column sal.actividades_ips.actividad is 'Actividad'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : bancos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.bancos
(
banco integer not null
check (banco >=3D 1),
nombre varchar(40) not null,
primary key (banco)
)
/
comment on column sal.bancos.banco is 'Banco'
/
comment on column sal.bancos.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos
(
codigo double,
descri char(15)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos_unidades */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos_unidades
(
legajo integer not null
check (legajo >=3D 1),
lugar_de_trabajo smallint not null
check (lugar_de_trabajo >=3D 1),
funcion integer not null
check (funcion >=3D 1),
unidad_organica integer not null
check (unidad_organica >=3D 1),
estadia char not null default =
'F'
check (estadia in ('''F''
','V')),
tipo_empleado char not null default =
'E'
check (tipo_empleado in ('''E''
','O')),
banco integer not null
check (banco >=3D 1),
cuenta_bancaria varchar(40),
observacion varchar(40),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
fecha_modificacion timestamp,
usuario_modificacion varchar(30),
fecha_ips date,
fecha_ingreso date not null,
fecha_egreso date,
ubicacion integer,
sucursal char(2),
tipo_cuenta char(2),
codigo_numero_mjt integer,
turno integer,
primary key (legajo)
)
/
comment on column sal.cargos_unidades.legajo is 'Legajo'
/
comment on column sal.cargos_unidades.lugar_de_trabajo is 'Lugar de =
Trabajo'
/
comment on column sal.cargos_unidades.funcion is 'Funci=A2n'
/
comment on column sal.cargos_unidades.unidad_organica is 'Unidad Org =
nica'
/
comment on column sal.cargos_unidades.estadia is 'Estad=A1a'
/
comment on column sal.cargos_unidades.tipo_empleado is 'Tipo Empleado'
/
comment on column sal.cargos_unidades.banco is 'Banco'
/
comment on column sal.cargos_unidades.cuenta_bancaria is 'Cuenta =
Bancaria en la que se debe pagar el sueldo del empleado'
/
comment on column sal.cargos_unidades.observacion is 'Observaci=A2n'
/
comment on column sal.cargos_unidades.fecha_insercion is 'Fecha =
inserci=A2n'
/
comment on column sal.cargos_unidades.usuario_insercion is 'Usuario =
Inserci=A2n'
/
comment on column sal.cargos_unidades.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/
comment on column sal.cargos_unidades.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cargos_unidades_auditoria */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cargos_unidades_auditoria
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
lugar_de_trabajo smallint not null
check (lugar_de_trabajo >=3D 1),
funcion integer not null
check (funcion >=3D 1),
unidad_organica integer not null
check (unidad_organica >=3D 1),
estadia char not null default =
'F'
check (estadia in ('''F''
','V')),
tipo_empleado char not null default =
'E'
check (tipo_empleado in ('''E''
','O')),
banco integer
check (banco is null or (banco >=3D 1 )),
cuenta_bancaria varchar(40),
observacion varchar(40),
fecha_insercion timestamp,
usuario_insercion varchar(30) not null,
fecha_modificacion timestamp,
usuario_modificacion varchar(30),
fecha_registro timestamp not null default =
current timestamp,
usuario_registro varchar(30) not null,
fecha_ips date,
fecha_ingreso date,
fecha_egreso date,
tipo char not null,
ubicacion integer,
codigo_numero_mjt integer,
primary key (numero_interno)
)
/
comment on column sal.cargos_unidades_auditoria.numero_interno is =
'N=A3mero Interno'
/
comment on column sal.cargos_unidades_auditoria.legajo is 'Legajo'
/
comment on column sal.cargos_unidades_auditoria.lugar_de_trabajo is =
'Lugar de Trabajo'
/
comment on column sal.cargos_unidades_auditoria.funcion is 'Funci=A2n'
/
comment on column sal.cargos_unidades_auditoria.unidad_organica is =
'Unidad Org nica'
/
comment on column sal.cargos_unidades_auditoria.estadia is 'Estad=A1a'
/
comment on column sal.cargos_unidades_auditoria.tipo_empleado is 'Tipo =
Empleado'
/
comment on column sal.cargos_unidades_auditoria.banco is 'Banco'
/
comment on column sal.cargos_unidades_auditoria.cuenta_bancaria is =
'Cuenta Bancaria en la que se debe pagar el sueldo del empleado'
/
comment on column sal.cargos_unidades_auditoria.observacion is =
'Observaci=A2n'
/
comment on column sal.cargos_unidades_auditoria.fecha_insercion is =
'Fecha inserci=A2n'
/
comment on column sal.cargos_unidades_auditoria.usuario_insercion is =
'Usuario Inserci=A2n'
/
comment on column sal.cargos_unidades_auditoria.fecha_modificacion is =
'Fecha Modificaci=A2n'
/
comment on column sal.cargos_unidades_auditoria.usuario_modificacion is =
'Usuario Modificaci=A2n'
/
comment on column sal.cargos_unidades_auditoria.fecha_registro is 'Fecha =
Registro'
/
comment on column sal.cargos_unidades_auditoria.usuario_registro is =
'Usuario Registro'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : centros_de_costos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.centros_de_costos
(
centro_de_costo integer not null
check (centro_de_costo >=3D 1),
aclaracion varchar(40) not null,
primary key (centro_de_costo)
)
/
comment on column sal.centros_de_costos.centro_de_costo is =
'centro_de_costo'
/
comment on column sal.centros_de_costos.aclaracion is 'Aclaraci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : ciudades */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.ciudades
(
ciudad integer not null
check (ciudad >=3D 1),
nombre varchar(40) not null,
primary key (ciudad)
)
/
comment on column sal.ciudades.ciudad is 'Ciudad'
/
comment on column sal.ciudades.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : costo_turno */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.costo_turno
(
turno smallint not null
check (turno >=3D 1),
desde time not null,
hasta time not null,
cantidad_horas numeric(6,2) not null,
novedad integer not null
check (novedad between 1 and 9999),
primary key (turno, desde, hasta)
)
/
comment on column sal.costo_turno.turno is 'Turno'
/
comment on column sal.costo_turno.desde is 'Desde'
/
comment on column sal.costo_turno.hasta is 'Hasta'
/
comment on column sal.costo_turno.cantidad_horas is 'Cantidad Horas'
/
comment on column sal.costo_turno.novedad is 'Novedad'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cuentas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cuentas
(
codemp_060 varchar(4),
cuenta varchar(6)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : cursos_y_seminarios */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.cursos_y_seminarios
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
nombre varchar(40),
institucion varchar(40),
carga_horaria numeric(6,2),
costo_empresa numeric(13,2),
descripcion varchar(256),
curso_interno char not null default =
'S'
check (curso_interno in ('''S''
','N')),
primary key (numero_interno)
)
/
comment on column sal.cursos_y_seminarios.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.cursos_y_seminarios.legajo is 'Legajo'
/
comment on column sal.cursos_y_seminarios.fecha is 'Fecha'
/
comment on column sal.cursos_y_seminarios.nombre is 'Nombre'
/
comment on column sal.cursos_y_seminarios.institucion is 'Instituci=A2n'
/
comment on column sal.cursos_y_seminarios.carga_horaria is 'Carga =
Horaria'
/
comment on column sal.cursos_y_seminarios.costo_empresa is 'Costo =
Empresa'
/
comment on column sal.cursos_y_seminarios.descripcion is 'Descripci=A2n'
/
comment on column sal.cursos_y_seminarios.curso_interno is 'Curso =
Interno'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : datos_de_la_empresa */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.datos_de_la_empresa
(
solo_clave integer not null default =
1
check (solo_clave between 1 and 1),
nombre varchar(40),
direccion varchar(40),
telefono varchar(40),
numero_patronal_ips varchar(40),
numero_patronal_mjt varchar(40),
sector_de_trabajo varchar(40),
logotipo_etiqueta varchar(20),
logotipo_grafico long binary,
fecha_de_proceso date,
ano_mes_de_proceso char(6)
check (ano_mes_de_proceso is null or (ano_mes_de_proceso =
between '199001' and '999912' )),
ruc char(15),
primary key (solo_clave)
)
/
comment on column sal.datos_de_la_empresa.solo_clave is 'Solo_Clave'
/
comment on column sal.datos_de_la_empresa.nombre is 'Nombre'
/
comment on column sal.datos_de_la_empresa.direccion is 'Direcci=A2n'
/
comment on column sal.datos_de_la_empresa.telefono is 'Tel=82fono'
/
comment on column sal.datos_de_la_empresa.numero_patronal_ips is =
'N=A3mero Patronal IPS'
/
comment on column sal.datos_de_la_empresa.numero_patronal_mjt is =
'N=A3mero Patronal BNT'
/
comment on column sal.datos_de_la_empresa.sector_de_trabajo is 'Sector =
de Trabajo'
/
comment on column sal.datos_de_la_empresa.logotipo_etiqueta is 'Logotipo =
Etiqueta'
/
comment on column sal.datos_de_la_empresa.logotipo_grafico is 'Logotipo =
Gr fico'
/
comment on column sal.datos_de_la_empresa.fecha_de_proceso is 'Fecha de =
Proceso'
/
comment on column sal.datos_de_la_empresa.ano_mes_de_proceso is 'A=A4o =
Mes de Proceso'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos
(
numero integer not null,
tipo_descuento integer not null,
legajo integer not null
check (legajo >=3D 1),
fecha date,
monto numeric(13,2) not null,
tasa_interes numeric(5,2) not null,
plazo smallint,
tipo_planilla char not null
check (tipo_planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
fecha_inicio_descuento date,
fecha_insercion timestamp not null,
usuario_insercion varchar(30) not null,
primary key (numero)
)
/
comment on column sal.descuentos_diferidos.numero is 'N=A3mero'
/
comment on column sal.descuentos_diferidos.tipo_descuento is 'Tipo =
Descuento'
/
comment on column sal.descuentos_diferidos.legajo is 'Legajo'
/
comment on column sal.descuentos_diferidos.fecha is 'Fecha'
/
comment on column sal.descuentos_diferidos.monto is 'Monto'
/
comment on column sal.descuentos_diferidos.tasa_interes is 'Tasa =
Inter=82s'
/
comment on column sal.descuentos_diferidos.plazo is 'Plazo'
/
comment on column sal.descuentos_diferidos.tipo_planilla is 'Tipo =
Planilla'
/
comment on column sal.descuentos_diferidos.fecha_inicio_descuento is =
'Fecha Inicio Descuento'
/
comment on column sal.descuentos_diferidos.fecha_insercion is 'Fecha =
Inserci=A2n'
/
comment on column sal.descuentos_diferidos.usuario_insercion is 'Usuario =
Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos_detalles */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos_detalles
(
numero integer not null,
cuota smallint not null,
monto_amortizacion numeric(13,2) not null,
monto_interes numeric(13,2) not null,
fecha_prevista_pago date not null,
fecha_calculada_pago date not null,
fecha_real_de_pago date,
primary key (numero, cuota),
check (check(fecha_prevista_pago <=3D fecha_calculada_pago and
fecha_prevista_pago <=3D fecha_real_de_pago))
)
/
comment on column sal.descuentos_diferidos_detalles.numero is 'N=A3mero'
/
comment on column sal.descuentos_diferidos_detalles.cuota is 'Cuota'
/
comment on column sal.descuentos_diferidos_detalles.monto_amortizacion =
is 'Monto Amortizaci=A2n'
/
comment on column sal.descuentos_diferidos_detalles.monto_interes is =
'Monto Inter=82s'
/
comment on column sal.descuentos_diferidos_detalles.fecha_prevista_pago =
is 'Fecha Prevista Pago'
/
comment on column sal.descuentos_diferidos_detalles.fecha_calculada_pago =
is 'Fecha Calculada Pago'
/
comment on column sal.descuentos_diferidos_detalles.fecha_real_de_pago =
is 'Fecha Real de Pago'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_diferidos_tipos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_diferidos_tipos
(
tipo_descuento integer not null,
descripcion varchar(40),
plazo_maximo smallint,
tasa_de_interes numeric(5,2) not null
check (tasa_de_interes between 0 and 100),
novedad_descuento integer not null
check (novedad_descuento between 1 and 9999),
primary key (tipo_descuento)
)
/
comment on column sal.descuentos_diferidos_tipos.tipo_descuento is 'Tipo =
Descuento'
/
comment on column sal.descuentos_diferidos_tipos.descripcion is =
'Descripci=A2n'
/
comment on column sal.descuentos_diferidos_tipos.plazo_maximo is 'Plazo =
M ximo'
/
comment on column sal.descuentos_diferidos_tipos.tasa_de_interes is =
'Tasa de Inter=82s'
/
comment on column sal.descuentos_diferidos_tipos.novedad_descuento is =
'Novedad Descuento'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : descuentos_fijos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.descuentos_fijos
(
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
novedad_afectada integer not null
check (novedad_afectada between 1 and 9999),
primary key (novedad, planilla, novedad_afectada)
)
/
comment on column sal.descuentos_fijos.novedad is 'Novedad'
/
comment on column sal.descuentos_fijos.planilla is 'Planilla'
/
comment on column sal.descuentos_fijos.novedad_afectada is 'Novedad =
Afectada'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : dias_trabajados */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.dias_trabajados
(
mes tinyint not null,
dias integer not null,
primary key (mes)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : domicilios */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.domicilios
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
calle varchar(40),
telefono varchar(40),
barrio varchar(40),
ciudad integer not null
check (ciudad >=3D 1),
pais integer not null
check (pais >=3D 1),
croquis long binary,
tipo_domicilio char not null default =
'O'
check (tipo_domicilio in ('''P''
','''A''
','''F''
','O')),
fecha_referencia date not null,
primary key (numero_interno)
)
/
comment on column sal.domicilios.numero_interno is 'N=A3mero Interno'
/
comment on column sal.domicilios.legajo is 'Legajo'
/
comment on column sal.domicilios.calle is 'Calle'
/
comment on column sal.domicilios.telefono is 'Tel=82fono'
/
comment on column sal.domicilios.barrio is 'Barrio'
/
comment on column sal.domicilios.ciudad is 'Ciudad'
/
comment on column sal.domicilios.pais is 'Pa=A1s'
/
comment on column sal.domicilios.croquis is 'Croquis'
/
comment on column sal.domicilios.tipo_domicilio is 'Tipo Domicilio'
/
comment on column sal.domicilios.fecha_referencia is 'Fecha Referencia'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : empleados */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.empleados
(
legajo integer not null
check (legajo >=3D 1),
primer_nombre varchar(20) not null,
segundo_nombre varchar(20),
apellido_primero varchar(20) not null,
apellido_segundo varchar(20),
apellido_casada varchar(20),
profesion integer not null
check (profesion >=3D 1),
telefono_celular varchar(40),
busca_persona varchar(40),
fecha_nacimiento date,
lugar_nacimiento integer
check (lugar_nacimiento is null or (lugar_nacimiento >=3D 1 =
)),
estado_civil char default 'S'
check (estado_civil is null or ( estado_civil in ('''S''
','''C''
','''D''
','''V''
','O') )),
fecha_casamiento date,
nacionalidad integer
check (nacionalidad is null or (nacionalidad >=3D 1 )),
sexo char
check (sexo is null or (sexo <> '' )),
documento_identidad varchar(20),
numero_social varchar(20),
grupo_sanguineo varchar(3)
check (grupo_sanguineo is null or (@column <> '' )),
religion integer,
observacion long varchar,
usuario_inserto varchar(30) not null default =
current user,
fecha_insercion timestamp not null default =
current timestamp,
numero_patronal smallint,
codigo_alterno char(6),
primary key (legajo)
)
/
comment on column sal.empleados.legajo is 'Legajo'
/
comment on column sal.empleados.primer_nombre is 'Primer Nombre'
/
comment on column sal.empleados.segundo_nombre is 'Segundo Nombre'
/
comment on column sal.empleados.apellido_primero is 'Primer Apellido'
/
comment on column sal.empleados.apellido_segundo is 'Segundo Apellido'
/
comment on column sal.empleados.apellido_casada is 'Apellido Casada'
/
comment on column sal.empleados.profesion is 'Profesi=A2n'
/
comment on column sal.empleados.telefono_celular is 'Tel=82fono Celular'
/
comment on column sal.empleados.busca_persona is 'Tel=82fono del =
Proveedor + C=A2digo'
/
comment on column sal.empleados.fecha_nacimiento is 'Fecha Nacimiento'
/
comment on column sal.empleados.lugar_nacimiento is 'Lugar Nacimiento'
/
comment on column sal.empleados.estado_civil is 'Estado Civil'
/
comment on column sal.empleados.fecha_casamiento is 'Fecha Casamiento'
/
comment on column sal.empleados.nacionalidad is 'Nacionalidad'
/
comment on column sal.empleados.sexo is 'Sexo'
/
comment on column sal.empleados.documento_identidad is 'Documento =
Identidad'
/
comment on column sal.empleados.numero_social is 'N=A3mero Social'
/
comment on column sal.empleados.grupo_sanguineo is 'Grupo Sanguineo'
/
comment on column sal.empleados.religion is 'Religi=A2n'
/
comment on column sal.empleados.observacion is 'Observaci=A2n'
/
comment on column sal.empleados.usuario_inserto is 'Usuario Inserci=A2n'
/
comment on column sal.empleados.fecha_insercion is 'Fecha Inserci=A2n'
/
comment on column sal.empleados.numero_patronal is 'Numero Patronal'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : empleados_por_turno */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.empleados_por_turno
(
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
turno smallint not null
check (turno >=3D 1),
primary key (legajo, fecha, turno)
)
/
comment on column sal.empleados_por_turno.legajo is 'Legajo'
/
comment on column sal.empleados_por_turno.fecha is 'Fecha'
/
comment on column sal.empleados_por_turno.turno is 'Turno'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : experiencia_laboral */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.experiencia_laboral
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
nombre_empresa varchar(50),
direccion varchar(50),
ciudad integer not null
check (ciudad >=3D 1),
pais integer not null
check (pais >=3D 1),
telefono varchar(40),
fecha_ingreso date,
fecha_egreso date,
tarea_desempenada varchar(40),
ultimo_salario numeric(13,2),
motivo_egreso varchar(40),
observacion varchar(80),
primary key (numero_interno)
)
/
comment on column sal.experiencia_laboral.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.experiencia_laboral.legajo is 'Legajo'
/
comment on column sal.experiencia_laboral.nombre_empresa is 'Nombre =
Empresa'
/
comment on column sal.experiencia_laboral.direccion is 'Direcci=A2n'
/
comment on column sal.experiencia_laboral.ciudad is 'Ciudad'
/
comment on column sal.experiencia_laboral.pais is 'Pa=A1s'
/
comment on column sal.experiencia_laboral.telefono is 'Tel=82fono'
/
comment on column sal.experiencia_laboral.fecha_ingreso is 'Fecha =
Ingreso'
/
comment on column sal.experiencia_laboral.fecha_egreso is 'Fecha Egreso'
/
comment on column sal.experiencia_laboral.tarea_desempenada is 'Tarea =
Desempe=A4ada'
/
comment on column sal.experiencia_laboral.ultimo_salario is 'Ultimo =
Salario'
/
comment on column sal.experiencia_laboral.motivo_egreso is 'Motivo =
Egreso'
/
comment on column sal.experiencia_laboral.observacion is 'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : feriados */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.feriados
(
fecha date not null,
motivo varchar(40) not null,
primary key (fecha)
)
/
comment on column sal.feriados.fecha is 'Fecha'
/
comment on column sal.feriados.motivo is 'Motivo'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : formacion_academica */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.formacion_academica
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
tipo_estudio char
check (tipo_estudio is null or ( tipo_estudio in ('''B''
','''S''
','''U''
','''T''
','''P''
','O') )),
fecha_ingreso date,
fecha_egreso date,
institucion varchar(40),
estudio varchar(40),
titulo_obtenido varchar(40),
carga_horaria_total varchar(40),
calificacion_general varchar(40),
pais integer not null
check (pais >=3D 1),
observacion varchar(40),
costo_para_empresa numeric(13,2),
primary key (numero_interno)
)
/
comment on column sal.formacion_academica.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.formacion_academica.legajo is 'Legajo'
/
comment on column sal.formacion_academica.tipo_estudio is 'Tipo Estudio'
/
comment on column sal.formacion_academica.fecha_ingreso is 'Fecha =
Ingreso'
/
comment on column sal.formacion_academica.fecha_egreso is 'Fecha Egreso'
/
comment on column sal.formacion_academica.institucion is 'Instituci=A2n'
/
comment on column sal.formacion_academica.estudio is 'Nombre Estudio'
/
comment on column sal.formacion_academica.titulo_obtenido is 'T=A1tulo =
Obtenido'
/
comment on column sal.formacion_academica.carga_horaria_total is 'Carga =
Horaria Total'
/
comment on column sal.formacion_academica.calificacion_general is =
'Calificaci=A2n General'
/
comment on column sal.formacion_academica.pais is 'Pa=A1s'
/
comment on column sal.formacion_academica.observacion is 'Observaci=A2n'
/
comment on column sal.formacion_academica.costo_para_empresa is 'Costo =
para Empresa'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : funciones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.funciones
(
funcion integer not null
check (funcion >=3D 1),
descripcion varchar(40) not null,
tipo_funcion char not null default =
'N'
check (tipo_funcion in ('''J''
','N')),
primary key (funcion)
)
/
comment on column sal.funciones.funcion is 'Funci=A2n'
/
comment on column sal.funciones.descripcion is 'Descripci=A2n'
/
comment on column sal.funciones.tipo_funcion is 'Tipo Funci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horarios_por_turno */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horarios_por_turno
(
turno smallint not null
check (turno >=3D 1),
dia char not null
check (dia in ('''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','1')),
hora_entrada_1 time not null,
hora_salida_1 time,
hora_entrada_2 time,
hora_salida_2 time not null,
total_horas_a_trabajar numeric(6,2) not null,
total_horas_a_considerar numeric(6,2) not null,
llegada_tardia_desde time not null,
primary key (turno, dia)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horarios_por_turno_historico */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horarios_por_turno_historico
(
fecha date not null,
turno smallint not null
check (turno >=3D 1),
dia char not null
check (dia in ('''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','1')),
hora_entrada_1 time not null,
hora_salida_1 time,
hora_entrada_2 time,
hora_salida_2 time not null,
total_horas_a_trabajar numeric(6,2) not null,
total_horas_a_considerar numeric(6,2) not null,
llegada_tardia_desde time not null,
primary key (fecha, turno, dia)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : horas_extras_autorizadas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.horas_extras_autorizadas
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
desde timestamp not null,
hasta timestamp not null,
novedad integer not null
check (novedad between 1 and 9999),
autorizo integer not null
check (autorizo >=3D 1),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
observacion varchar(256),
primary key (numero_interno)
)
/
comment on column sal.horas_extras_autorizadas.numero_interno is =
'N=A3mero Interno'
/
comment on column sal.horas_extras_autorizadas.legajo is 'Legajo'
/
comment on column sal.horas_extras_autorizadas.desde is 'Desde'
/
comment on column sal.horas_extras_autorizadas.hasta is 'Hasta'
/
comment on column sal.horas_extras_autorizadas.novedad is 'Novedad'
/
comment on column sal.horas_extras_autorizadas.autorizo is 'Autoriz=A2'
/
comment on column sal.horas_extras_autorizadas.fecha_insercion is 'Fecha =
Inserci=A2n'
/
comment on column sal.horas_extras_autorizadas.usuario_insercion is =
'Usuario Inserci=A2n'
/
comment on column sal.horas_extras_autorizadas.observacion is =
'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : idiomas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.idiomas
(
idioma smallint not null
check (idioma >=3D 1),
nombre varchar(40) not null,
primary key (idioma)
)
/
comment on column sal.idiomas.idioma is 'Idioma'
/
comment on column sal.idiomas.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : idiomas_empleado */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.idiomas_empleado
(
legajo integer not null
check (legajo >=3D 1),
idioma smallint not null
check (idioma >=3D 1),
habla char not null
check (habla in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
lee char not null
check (lee in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
escribe char not null
check (escribe in ('''N''
','''R''
','''B''
','''M''
','''E''
','S')),
observacion varchar(50),
primary key (legajo, idioma)
)
/
comment on column sal.idiomas_empleado.legajo is 'Legajo'
/
comment on column sal.idiomas_empleado.idioma is 'Idioma'
/
comment on column sal.idiomas_empleado.habla is 'Habla'
/
comment on column sal.idiomas_empleado.lee is 'Lee'
/
comment on column sal.idiomas_empleado.escribe is 'Escribe'
/
comment on column sal.idiomas_empleado.observacion is 'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : imagenes */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.imagenes
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
tipo_imagen char not null
check (tipo_imagen in ('''1''
','''2''
','''3''
','9')),
imagen long binary,
observacion varchar(256),
fecha date not null default =
'today()',
primary key (numero_interno)
)
/
comment on column sal.imagenes.numero_interno is 'N=A3mero Interno'
/
comment on column sal.imagenes.legajo is 'Legajo'
/
comment on column sal.imagenes.tipo_imagen is 'Tipo Imagen'
/
comment on column sal.imagenes.imagen is 'Imagen'
/
comment on column sal.imagenes.observacion is 'Observaci=A2n'
/
comment on column sal.imagenes.fecha is 'Fecha'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : inasistencias */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.inasistencias
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
tipo_inasistencia smallint not null
check (tipo_inasistencia >=3D 1),
observacion varchar(256) not null,
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.inasistencias.numero_interno is 'N=A3mero Interno'
/
comment on column sal.inasistencias.legajo is 'Legajo'
/
comment on column sal.inasistencias.fecha is 'Fecha'
/
comment on column sal.inasistencias.tipo_inasistencia is 'Tipo =
Inasistencia'
/
comment on column sal.inasistencias.observacion is 'Observaci=A2n'
/
comment on column sal.inasistencias.fecha_insercion is 'Fecha =
Inserci=A2n'
/
comment on column sal.inasistencias.usuario_insercion is 'Usuario =
Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : liquidacion */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.liquidacion
(
legajo integer not null
check (legajo >=3D 1),
primary key (legajo)
)
/
comment on column sal.liquidacion.legajo is 'Legajo'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : lugares_de_trabajo */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.lugares_de_trabajo
(
lugar_de_trabajo smallint not null
check (lugar_de_trabajo >=3D 1),
nombre varchar(40) not null,
cuenta char(20),
sucursal char(2),
empresa char(2),
numero_patronal_mjt varchar(40) not null,
direccion varchar(40) not null,
sector_de_trabajo varchar(60) not null,
logotipo_etiqueta varchar(20) not null,
primary key (lugar_de_trabajo)
)
/
comment on column sal.lugares_de_trabajo.lugar_de_trabajo is 'Lugar de =
Trabajo'
/
comment on column sal.lugares_de_trabajo.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : marcacion_asistencia */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.marcacion_asistencia
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha timestamp not null,
tipo_marcacion char not null
check (tipo_marcacion in ('''E''
','S')),
observacion varchar(40),
forma_marcacion char not null
check (forma_marcacion in ('''A''
','M')),
primary key (numero_interno)
)
/
comment on column sal.marcacion_asistencia.numero_interno is 'N=FAmero =
Interno'
/
comment on column sal.marcacion_asistencia.legajo is 'Legajo'
/
comment on column sal.marcacion_asistencia.fecha is 'Fecha'
/
comment on column sal.marcacion_asistencia.tipo_marcacion is 'Tipo =
Marcaci=F3n'
/
comment on column sal.marcacion_asistencia.observacion is =
'Observaci=F3n'
/
comment on column sal.marcacion_asistencia.forma_marcacion is 'Forma =
Marcaci=F3n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades
(
novedad integer not null
check (novedad between 1 and 9999),
nombre varchar(40) not null,
ingreso char not null default =
'S'
check (ingreso in ('''S''
','N')),
cargar_base char not null default =
'S'
check (cargar_base in ('''S''
','N')),
cargar_cantidad char not null default =
'S'
check (cargar_cantidad in ('''S''
','N')),
incluir_mjt char default 'S'
check (incluir_mjt is null or ( incluir_mjt in ('''S''
','N') )),
incluir_recibo char default 'S'
check (incluir_recibo is null or ( incluir_recibo in ('''S''
','N') )),
ips char default 'S'
check (ips is null or ( ips in ('''S''
','N') )),
primary key (novedad),
check (check((cargar_base =3D 'S' and cargar_cantidad =3D 'N') or
(cargar_base =3D 'N' and cargar_cantidad =3D 'S')))
)
/
comment on column sal.novedades.novedad is 'Novedad'
/
comment on column sal.novedades.nombre is 'Nombre'
/
comment on column sal.novedades.ingreso is 'Ingreso'
/
comment on column sal.novedades.cargar_base is 'Cargar Base'
/
comment on column sal.novedades.cargar_cantidad is 'Cargar Cantidad'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_factores */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_factores
(
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
factor_jornal varchar(50) not null,
factor_mensual varchar(50) not null,
factor_horista varchar(50) not null,
factor_destajo varchar(50) not null,
factor_otros varchar(50) not null,
factor_jornal_numero double,
factor_mensual_numero double,
factor_horista_numero double,
factor_destajo_numero double,
factor_otros_numero double,
aguinable char default 'S'
check (aguinable is null or ( aguinable in ('''S''
','N') )),
primary key (novedad, planilla)
)
/
comment on column sal.novedades_factores.novedad is 'Novedad'
/
comment on column sal.novedades_factores.planilla is 'Planilla'
/
comment on column sal.novedades_factores.factor_jornal is 'Factor =
Jornal'
/
comment on column sal.novedades_factores.factor_mensual is 'Factor =
Mensual'
/
comment on column sal.novedades_factores.factor_horista is 'Factor =
Horista'
/
comment on column sal.novedades_factores.factor_destajo is 'Factor =
Destajo'
/
comment on column sal.novedades_factores.factor_otros is 'Factor Otros'
/
comment on column sal.novedades_factores.factor_jornal_numero is 'Factor =
Jornal N=A3mero'
/
comment on column sal.novedades_factores.factor_mensual_numero is =
'Factor Mensual N=A3mero'
/
comment on column sal.novedades_factores.factor_horista_numero is =
'Factor Horista N=A3mero'
/
comment on column sal.novedades_factores.factor_destajo_numero is =
'Factor Destajo N=A3mero'
/
comment on column sal.novedades_factores.factor_otros_numero is 'Factor =
Otro N=A3mero'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_modelos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_modelos
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
cantidad numeric(6,2) not null,
base numeric(13,2)
check (base is null or (base >=3D 0 )),
factor double not null
check (factor <> 0),
primary key (numero_interno),
unique (legajo, novedad, planilla)
)
/
comment on column sal.novedades_modelos.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.novedades_modelos.legajo is 'Legajo'
/
comment on column sal.novedades_modelos.novedad is 'Novedad'
/
comment on column sal.novedades_modelos.planilla is 'Planilla'
/
comment on column sal.novedades_modelos.cantidad is 'Cantidad'
/
comment on column sal.novedades_modelos.base is 'Base'
/
comment on column sal.novedades_modelos.factor is 'Factor'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_modelos_auditoria */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_modelos_auditoria
(
numero_interno integer not null default =
autoincrement,
legajo integer not null,
novedad integer not null,
planilla char not null,
cantidad numeric(6,2) not null,
base numeric(13,2),
factor double not null,
fecha_insercion timestamp default current =
timestamp,
usuario_insercion varchar(60) default current =
user,
primary key (numero_interno)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
cantidad numeric(6,2) not null,
base numeric(13,2)
check (base is null or (base >=3D 0 )),
factor double not null
check (factor <> 0),
numero_proceso integer,
primary key (numero_interno)
)
/
comment on column sal.novedades_proceso.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.novedades_proceso.legajo is 'Legajo'
/
comment on column sal.novedades_proceso.novedad is 'Novedad'
/
comment on column sal.novedades_proceso.planilla is 'Planilla'
/
comment on column sal.novedades_proceso.cantidad is 'Cantidad'
/
comment on column sal.novedades_proceso.base is 'Base'
/
comment on column sal.novedades_proceso.factor is 'Factor'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_audit */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_audit
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
cantidad decimal(10,4) not null,
base numeric(13,2)
check (base is null or (base >=3D 0 )),
factor double not null
check (factor <> 0),
numero_proceso integer,
fecha timestamp default current =
timestamp,
usuario varchar(60) default current =
user,
primary key (numero_interno)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_copy */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_copy
(
numero_interno integer not null,
legajo integer not null,
novedad integer not null,
planilla char not null,
cantidad numeric(6,2) not null,
base numeric(13,2),
factor double not null,
numero_proceso integer,
primary key (legajo, novedad, planilla, numero_proceso)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_historico */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_historico
(
numero_interno integer not null default =
autoincrement,
fecha_proceso date not null,
legajo integer not null
check (legajo >=3D 1),
novedad integer not null
check (novedad between 1 and 9999),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
cantidad numeric(6,2) not null,
base numeric(13,2)
check (base is null or (base >=3D 0 )),
anio smallint
check (anio is null or (anio between 1900 and 2500 )),
mes tinyint
check (mes is null or (mes between 1 and 12 )),
factor double not null
check (factor <> 0),
numero_proceso integer,
primary key (numero_interno)
)
/
comment on column sal.novedades_proceso_historico.numero_interno is =
'N=FAmero Interno'
/
comment on column sal.novedades_proceso_historico.fecha_proceso is =
'Fecha Proceso'
/
comment on column sal.novedades_proceso_historico.legajo is 'Legajo'
/
comment on column sal.novedades_proceso_historico.novedad is 'Novedad'
/
comment on column sal.novedades_proceso_historico.planilla is 'Planilla'
/
comment on column sal.novedades_proceso_historico.cantidad is 'Cantidad'
/
comment on column sal.novedades_proceso_historico.base is 'Base'
/
comment on column sal.novedades_proceso_historico.anio is 'A=F1o'
/
comment on column sal.novedades_proceso_historico.mes is 'Mes'
/
comment on column sal.novedades_proceso_historico.factor is 'Factor'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : novedades_proceso_historico_copy */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.novedades_proceso_historico_copy
(
numero_interno integer not null,
fecha_proceso date not null,
legajo integer not null,
novedad integer not null,
planilla char not null,
cantidad numeric(6,2) not null,
base numeric(13,2),
anio smallint,
mes tinyint,
factor double not null,
numero_proceso integer,
primary key (numero_interno)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : numeros_patronales */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.numeros_patronales
(
numero_patronal char(10),
aclaracion char(20) not null,
numero smallint not null,
primary key (numero)
)
/
comment on column sal.numeros_patronales.numero_patronal is 'Numero =
Patronal'
/
comment on column sal.numeros_patronales.aclaracion is 'Aclaraci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : numeros_patronales_mjt */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.numeros_patronales_mjt
(
codigo integer not null,
descripcion varchar(40) not null,
numero_mjt varchar(40) not null,
direccion varchar(60),
localidad varchar(30),
departamento varchar(30),
primary key (codigo)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otras_informaciones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otras_informaciones
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
tipo_informacion char
check (tipo_informacion is null or ( tipo_informacion in =
('''D''
','''P''
','''E''
','O') )),
aclaracion varchar(256) not null,
primary key (numero_interno)
)
/
comment on column sal.otras_informaciones.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.otras_informaciones.legajo is 'Legajo'
/
comment on column sal.otras_informaciones.tipo_informacion is 'Tipo =
Informaci=A2n'
/
comment on column sal.otras_informaciones.aclaracion is 'Aclaraci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otros_conocimientos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otros_conocimientos
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
conocimiento varchar(40),
observacion varchar(50),
primary key (numero_interno)
)
/
comment on column sal.otros_conocimientos.numero_interno is 'N=A3mero =
Interno'
/
comment on column sal.otros_conocimientos.legajo is 'Legajo'
/
comment on column sal.otros_conocimientos.conocimiento is 'Conocimiento'
/
comment on column sal.otros_conocimientos.observacion is 'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : otros_documentos_empleado */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.otros_documentos_empleado
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
tipo integer not null,
identificador varchar(20),
observacion varchar(50),
primary key (numero_interno)
)
/
comment on column sal.otros_documentos_empleado.numero_interno is =
'N=A3mero Interno'
/
comment on column sal.otros_documentos_empleado.legajo is 'Legajo'
/
comment on column sal.otros_documentos_empleado.tipo is 'Tipo'
/
comment on column sal.otros_documentos_empleado.identificador is =
'Identificador'
/
comment on column sal.otros_documentos_empleado.observacion is =
'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : paises */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.paises
(
pais integer not null
check (pais >=3D 1),
nombre varchar(40) not null,
nacionalidad varchar(40) not null,
primary key (pais)
)
/
comment on column sal.paises.pais is 'Pa=A1s'
/
comment on column sal.paises.nombre is 'Nombre'
/
comment on column sal.paises.nacionalidad is 'Nacionalidad'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parametros_asistencia */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parametros_asistencia
(
solo_clave smallint not null
check (solo_clave between 1 and 1),
lapso_entre_marcaciones numeric(2) not null,
imprimir_auditoria char not null default =
'S'
check (imprimir_auditoria in ('''S''
','N')),
tiempo_conexion smallint,
monto_multa numeric(19,4),
primary key (solo_clave)
)
/
comment on column sal.parametros_asistencia.solo_clave is 'Solo Clave'
/
comment on column sal.parametros_asistencia.lapso_entre_marcaciones is =
'Lapso Entre Marcaciones'
/
comment on column sal.parametros_asistencia.imprimir_auditoria is =
'Imprimir Auditor=EDa'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parametros_codigos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parametros_codigos
(
solo_clave smallint not null
check (solo_clave between 1 and 1),
salario_minimo numeric(13,2),
codigo_novedad_ips integer
check (codigo_novedad_ips is null or (codigo_novedad_ips =
between 1 and 9999 )),
codigo_novedad_bf integer
check (codigo_novedad_bf is null or (codigo_novedad_bf between =
1 and 9999 )),
maxima_edad_bf tinyint
check (maxima_edad_bf is null or (maxima_edad_bf between 1 and =
150 )),
maximo_salario_bf numeric(13,2),
codigo_novedad_hn integer
check (codigo_novedad_hn is null or (codigo_novedad_hn between =
1 and 9999 )),
codigo_novedad_he30 integer
check (codigo_novedad_he30 is null or (codigo_novedad_he30 =
between 1 and 9999 )),
codigo_novedad_he50 integer
check (codigo_novedad_he50 is null or (codigo_novedad_he50 =
between 1 and 9999 )),
codigo_novedad_he100 integer
check (codigo_novedad_he100 is null or (codigo_novedad_he100 =
between 1 and 9999 )),
codigo_novedad_vacaciones integer
check (codigo_novedad_vacaciones is null or =
(codigo_novedad_vacaciones between 1 and 9999 )),
codigo_novedad_dt integer
check (codigo_novedad_dt is null or (codigo_novedad_dt between =
1 and 9999 )),
porcentaje_patronal_ips numeric(6,2),
porcentaje_obrero_ips numeric(6,2),
codigo_novedad_ap integer
check (codigo_novedad_ap is null or (codigo_novedad_ap between =
1 and 9999 )),
redondeo numeric(2),
mayor_de_edad tinyint
check (mayor_de_edad is null or (mayor_de_edad between 1 and =
150 )),
adelanto_aguinaldo integer
check (adelanto_aguinaldo is null or (adelanto_aguinaldo =
between 1 and 9999 )),
codigo_novedad_indemnizacion integer
check (codigo_novedad_indemnizacion is null or =
(codigo_novedad_indemnizacion between 1 and 9999 )),
codigo_novedad_reposo integer
check (codigo_novedad_reposo is null or (codigo_novedad_reposo =
between 1 and 9999 )),
nro_de_cuenta varchar(11),
cod_de_empresa varchar(2),
supervisor varchar(40),
gerente varchar(40),
cargo varchar(30),
primary key (solo_clave)
)
/
comment on column sal.parametros_codigos.solo_clave is 'Solo Clave'
/
comment on column sal.parametros_codigos.salario_minimo is 'Salario =
Minimo'
/
comment on column sal.parametros_codigos.codigo_novedad_ips is 'IPS'
/
comment on column sal.parametros_codigos.codigo_novedad_bf is =
'Bonificaci=A2n Familiar'
/
comment on column sal.parametros_codigos.maxima_edad_bf is 'Maxima edad =
BF'
/
comment on column sal.parametros_codigos.maximo_salario_bf is 'Maximo =
Salario BF'
/
comment on column sal.parametros_codigos.codigo_novedad_hn is 'Horas =
Normales'
/
comment on column sal.parametros_codigos.codigo_novedad_he30 is 'Horas =
Extras 30 %'
/
comment on column sal.parametros_codigos.codigo_novedad_he50 is 'Horas =
Extras 50 %'
/
comment on column sal.parametros_codigos.codigo_novedad_he100 is 'Horas =
Extras 100 %'
/
comment on column sal.parametros_codigos.codigo_novedad_vacaciones is =
'C=A2digo Novedad Vacaciones'
/
comment on column sal.parametros_codigos.codigo_novedad_dt is 'D=A1as =
Trabajados'
/
comment on column sal.parametros_codigos.porcentaje_patronal_ips is =
'Porcentaje Patronal IPS'
/
comment on column sal.parametros_codigos.porcentaje_obrero_ips is =
'Porcentaje Obrero IPS'
/
comment on column sal.parametros_codigos.codigo_novedad_ap is 'Aguinaldo =
Proporcional'
/
comment on column sal.parametros_codigos.redondeo is 'Redondeo'
/
comment on column sal.parametros_codigos.mayor_de_edad is 'Mayor de =
Edad'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : parientes */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.parientes
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
apellido varchar(20) not null,
nombre varchar(20) not null,
fecha_nacimiento date not null,
sexo char not null
check (sexo in ('''M''
','F')),
parentezco char not null default =
'H'
check (parentezco in ('''P''
','''M''
','''C''
','''H''
','O')),
estado_civil char not null default =
'S'
check (estado_civil in ('''S''
','''C''
','''D''
','''V''
','O')),
dependiente char not null default =
'S'
check (dependiente in ('''S''
','N')),
profesion integer not null
check (profesion >=3D 1),
actividad varchar(40),
nacionalidad integer not null
check (nacionalidad >=3D 1),
observacion varchar(50),
primary key (numero_interno)
)
/
comment on column sal.parientes.numero_interno is 'N=A3mero interno'
/
comment on column sal.parientes.legajo is 'Legajo'
/
comment on column sal.parientes.apellido is 'Apellido'
/
comment on column sal.parientes.nombre is 'Nombre'
/
comment on column sal.parientes.fecha_nacimiento is 'Fecha Nacimiento'
/
comment on column sal.parientes.sexo is 'Sexo'
/
comment on column sal.parientes.parentezco is 'Parentezco'
/
comment on column sal.parientes.estado_civil is 'Estado Civil'
/
comment on column sal.parientes.dependiente is 'Dependiente'
/
comment on column sal.parientes.profesion is 'Profesi=A2n'
/
comment on column sal.parientes.actividad is 'Actividad'
/
comment on column sal.parientes.nacionalidad is 'Nacionalidad'
/
comment on column sal.parientes.observacion is 'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatcol */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatcol
(
pbc_tnam char(129) not null,
pbc_tid integer,
pbc_ownr char(129) not null,
pbc_cnam char(129) not null,
pbc_cid smallint,
pbc_labl char(254),
pbc_lpos smallint,
pbc_hdr char(254),
pbc_hpos smallint,
pbc_jtfy smallint,
pbc_mask char(31),
pbc_case smallint,
pbc_hght smallint,
pbc_wdth smallint,
pbc_ptrn char(31),
pbc_bmap char,
pbc_init char(254),
pbc_cmnt char(254),
pbc_edit char(31),
pbc_tag char(254),
primary key (pbc_tnam, pbc_ownr, pbc_cnam)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatedt */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatedt
(
pbe_name char(30) not null,
pbe_edit char(254),
pbe_type smallint,
pbe_cntr integer,
pbe_seqn smallint not null,
pbe_flag integer,
pbe_work char(32),
primary key (pbe_name, pbe_seqn)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatfmt */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatfmt
(
pbf_name char(30) not null,
pbf_frmt char(254),
pbf_type smallint,
pbf_cntr integer,
primary key (pbf_name)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcattbl */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcattbl
(
pbt_tnam char(129) not null,
pbt_tid integer,
pbt_ownr char(129) not null,
pbd_fhgt smallint,
pbd_fwgt smallint,
pbd_fitl char,
pbd_funl char,
pbd_fchr smallint,
pbd_fptc smallint,
pbd_ffce char(18),
pbh_fhgt smallint,
pbh_fwgt smallint,
pbh_fitl char,
pbh_funl char,
pbh_fchr smallint,
pbh_fptc smallint,
pbh_ffce char(18),
pbl_fhgt smallint,
pbl_fwgt smallint,
pbl_fitl char,
pbl_funl char,
pbl_fchr smallint,
pbl_fptc smallint,
pbl_ffce char(18),
pbt_cmnt char(254),
primary key (pbt_tnam, pbt_ownr)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : pbcatvld */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.pbcatvld
(
pbv_name char(30) not null,
pbv_vald char(254),
pbv_type smallint,
pbv_cntr integer,
pbv_msg char(254),
primary key (pbv_name)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : permisos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.permisos
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
desde timestamp not null,
hasta timestamp not null,
observacion varchar(40),
autorizo integer not null
check (autorizo >=3D 1),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.permisos.numero_interno is 'N=A3mero Interno'
/
comment on column sal.permisos.legajo is 'Legajo'
/
comment on column sal.permisos.desde is 'Desde'
/
comment on column sal.permisos.hasta is 'Hasta'
/
comment on column sal.permisos.observacion is 'Observaci=A2n'
/
comment on column sal.permisos.autorizo is 'Autoriz=A2'
/
comment on column sal.permisos.fecha_insercion is 'Fecha Inserci=A2n'
/
comment on column sal.permisos.usuario_insercion is 'Usuario =
Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politica_vacacional_empleado */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politica_vacacional_empleado
(
legajo integer not null
check (legajo >=3D 1),
politica smallint not null
check (politica >=3D 1),
desde_fecha date not null,
observacion varchar(256),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (legajo, politica)
)
/
comment on column sal.politica_vacacional_empleado.legajo is 'Legajo'
/
comment on column sal.politica_vacacional_empleado.politica is =
'Pol=A1tica'
/
comment on column sal.politica_vacacional_empleado.desde_fecha is 'Desde =
Fecha'
/
comment on column sal.politica_vacacional_empleado.observacion is =
'Observaci=A2n'
/
comment on column sal.politica_vacacional_empleado.fecha_insercion is =
'Fecha Inserci=A2n'
/
comment on column sal.politica_vacacional_empleado.usuario_insercion is =
'Usuario Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politicas_vacacionales */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politicas_vacacionales
(
politica smallint not null
check (politica >=3D 1),
nombre varchar(40),
primary key (politica)
)
/
comment on column sal.politicas_vacacionales.politica is 'Pol=A1tica'
/
comment on column sal.politicas_vacacionales.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : politicas_vacionales_detalles */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.politicas_vacionales_detalles
(
politica smallint not null
check (politica >=3D 1),
anos numeric(2) not null
check (anos between 1 and 99),
dias_de_vacaciones tinyint,
primary key (politica, anos)
)
/
comment on column sal.politicas_vacionales_detalles.politica is =
'Pol=EDtica'
/
comment on column sal.politicas_vacionales_detalles.anos is 'A=F1os'
/
comment on column sal.politicas_vacionales_detalles.dias_de_vacaciones =
is 'D=EDas de Vacaciones'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : problemas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.problemas
(
empleado integer,
nombre varchar(40),
apellido varchar(40)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : proceso_fechas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.proceso_fechas
(
solo_clave smallint not null
check (solo_clave between 1 and 9),
fecha_proceso date,
anio smallint
check (anio is null or (anio between 1900 and 2500 )),
mes tinyint
check (mes is null or (mes between 1 and 12 )),
descripcion varchar(40),
primary key (solo_clave)
)
/
comment on column sal.proceso_fechas.solo_clave is 'Solo Clave'
/
comment on column sal.proceso_fechas.fecha_proceso is 'Fecha Proceso'
/
comment on column sal.proceso_fechas.anio is 'A=A4o'
/
comment on column sal.proceso_fechas.mes is 'Mes'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : profesiones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.profesiones
(
profesion integer not null
check (profesion >=3D 1),
nombre varchar(40),
primary key (profesion)
)
/
comment on column sal.profesiones.profesion is 'Profesi=A2n'
/
comment on column sal.profesiones.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : reconocimientos_y_premios */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.reconocimientos_y_premios
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
motivo varchar(40),
otorgado_por varchar(40),
premio varchar(40),
observacion varchar(256),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.reconocimientos_y_premios.numero_interno is =
'N=A3mero Interno'
/
comment on column sal.reconocimientos_y_premios.legajo is 'Legajo'
/
comment on column sal.reconocimientos_y_premios.fecha is 'Fecha'
/
comment on column sal.reconocimientos_y_premios.motivo is 'Motivo'
/
comment on column sal.reconocimientos_y_premios.otorgado_por is =
'Otorgado Por'
/
comment on column sal.reconocimientos_y_premios.premio is 'Premio'
/
comment on column sal.reconocimientos_y_premios.observacion is =
'Observaci=A2n'
/
comment on column sal.reconocimientos_y_premios.fecha_insercion is =
'Fecha Inserci=A2n'
/
comment on column sal.reconocimientos_y_premios.usuario_insercion is =
'Usuario Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : referencias */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.referencias
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
referenciante varchar(40),
nombre_referencia char not null default =
'H'
check (nombre_referencia in ('''P''
','''M''
','''C''
','''H''
','O')),
direccion varchar(50),
telefono varchar(40),
resultado varchar(80),
primary key (numero_interno)
)
/
comment on column sal.referencias.numero_interno is 'N=A3mero Interno'
/
comment on column sal.referencias.legajo is 'Legajo'
/
comment on column sal.referencias.referenciante is 'Referenciante'
/
comment on column sal.referencias.nombre_referencia is 'Parentezco'
/
comment on column sal.referencias.direccion is 'Direcci=A2n'
/
comment on column sal.referencias.telefono is 'Tel=82fono'
/
comment on column sal.referencias.resultado is 'Resultado'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : relaciones_otros_empleados */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.relaciones_otros_empleados
(
legajo integer not null
check (legajo >=3D 1),
legajo_referencia integer not null
check (legajo_referencia >=3D 1),
observacion varchar(50),
primary key (legajo, legajo_referencia)
)
/
comment on column sal.relaciones_otros_empleados.legajo is 'Legajo'
/
comment on column sal.relaciones_otros_empleados.legajo_referencia is =
'Legajo Relaci=A2n'
/
comment on column sal.relaciones_otros_empleados.observacion is =
'Observaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : religiones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.religiones
(
religion integer not null,
nombre varchar(40) not null,
primary key (religion)
)
/
comment on column sal.religiones.religion is 'Religi=A2n'
/
comment on column sal.religiones.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sanciones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sanciones
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
motivo varchar(40),
suspencion_desde timestamp,
suspencion_hasta timestamp,
observacion varchar(256),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.sanciones.numero_interno is 'N=A3mero Interno'
/
comment on column sal.sanciones.legajo is 'Legajo'
/
comment on column sal.sanciones.fecha is 'Fecha'
/
comment on column sal.sanciones.motivo is 'Motivo'
/
comment on column sal.sanciones.suspencion_desde is 'Suspenci=A2n Desde'
/
comment on column sal.sanciones.suspencion_hasta is 'Suspenci=A2n Hasta'
/
comment on column sal.sanciones.observacion is 'Observaci=A2n'
/
comment on column sal.sanciones.fecha_insercion is 'Fecha Inserci=A2n'
/
comment on column sal.sanciones.usuario_insercion is 'Usuario =
Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sueldos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sueldos
(
legajo integer not null
check (legajo >=3D 1),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
fecha_vigencia date not null,
tipo_sueldo char not null
check (tipo_sueldo in ('''M''
','''J''
','''H''
','''D''
','O')),
salario numeric(13,2) not null,
monto_adelanto numeric(13,2),
usuario_insercion varchar(30) not null default =
current user,
fecha_insercion timestamp,
usuario_modificacion varchar(30) default current =
user,
fecha_modificacion timestamp,
primary key (legajo, planilla)
)
/
comment on column sal.sueldos.legajo is 'Legajo'
/
comment on column sal.sueldos.planilla is 'Planilla'
/
comment on column sal.sueldos.fecha_vigencia is 'Fecha Vigencia'
/
comment on column sal.sueldos.tipo_sueldo is 'Tipo Sueldo'
/
comment on column sal.sueldos.salario is 'Monto'
/
comment on column sal.sueldos.monto_adelanto is 'Monto Adelanto'
/
comment on column sal.sueldos.usuario_insercion is 'Usuario Inserci=A2n'
/
comment on column sal.sueldos.fecha_insercion is 'Fecha Inserci=A2n'
/
comment on column sal.sueldos.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/
comment on column sal.sueldos.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : sueldos_auditoria */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.sueldos_auditoria
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
planilla char not null
check (planilla in ('''1''
','''2''
','''3''
','''4''
','''5''
','''6''
','''7''
','''8''
','9')),
fecha_vigencia date not null,
tipo_sueldo char not null
check (tipo_sueldo in ('''M''
','''J''
','''H''
','''D''
','O')),
salario numeric(13,2),
monto_adelanto numeric(13,2),
usuario_insercion varchar(30) not null,
fecha_insercion timestamp,
usuario_modificacion varchar(30),
fecha_modificacion timestamp,
fecha_registro timestamp default current =
timestamp,
usuario_registro varchar(30),
primary key (numero_interno)
)
/
comment on column sal.sueldos_auditoria.numero_interno is =
'numero_interno'
/
comment on column sal.sueldos_auditoria.legajo is 'Legajo'
/
comment on column sal.sueldos_auditoria.planilla is 'Planilla'
/
comment on column sal.sueldos_auditoria.fecha_vigencia is 'Fecha =
Vigencia'
/
comment on column sal.sueldos_auditoria.tipo_sueldo is 'Tipo Sueldo'
/
comment on column sal.sueldos_auditoria.salario is 'Monto'
/
comment on column sal.sueldos_auditoria.monto_adelanto is 'Monto =
Adelanto'
/
comment on column sal.sueldos_auditoria.usuario_insercion is 'Usuario =
Inserci=A2n'
/
comment on column sal.sueldos_auditoria.fecha_insercion is 'Fecha =
Inserci=A2n'
/
comment on column sal.sueldos_auditoria.usuario_modificacion is 'Usuario =
Modificaci=A2n'
/
comment on column sal.sueldos_auditoria.fecha_modificacion is 'Fecha =
Modificaci=A2n'
/
comment on column sal.sueldos_auditoria.fecha_registro is 'Fecha =
Registro'
/
comment on column sal.sueldos_auditoria.usuario_registro is 'Usuario =
Registro'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tareas_realizadas_empresa */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tareas_realizadas_empresa
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
fecha date not null,
observacion varchar(256) not null,
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
primary key (numero_interno)
)
/
comment on column sal.tareas_realizadas_empresa.numero_interno is =
'N=A3mero Interno'
/
comment on column sal.tareas_realizadas_empresa.legajo is 'Legajo'
/
comment on column sal.tareas_realizadas_empresa.fecha is 'Fecha'
/
comment on column sal.tareas_realizadas_empresa.observacion is =
'Observaci=A2n'
/
comment on column sal.tareas_realizadas_empresa.fecha_insercion is =
'Fecha Inserci=A2n'
/
comment on column sal.tareas_realizadas_empresa.usuario_insercion is =
'Usuario Inserci=A2n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_accidentes */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_accidentes
(
tipo_accidente smallint not null
check (tipo_accidente >=3D 1),
nombre varchar(40) not null,
primary key (tipo_accidente)
)
/
comment on column sal.tipos_accidentes.tipo_accidente is 'Tipo =
Accidente'
/
comment on column sal.tipos_accidentes.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_de_documentos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_de_documentos
(
tipo integer not null,
nombre varchar(40) not null,
primary key (tipo)
)
/
comment on column sal.tipos_de_documentos.tipo is 'Tipo'
/
comment on column sal.tipos_de_documentos.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : tipos_inasistencias */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.tipos_inasistencias
(
tipo smallint not null
check (tipo >=3D 1),
nombre varchar(40) not null,
primary key (tipo)
)
/
comment on column sal.tipos_inasistencias.tipo is 'Tipo'
/
comment on column sal.tipos_inasistencias.nombre is 'Nombre'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : turnos */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.turnos
(
turno smallint not null
check (turno >=3D 1),
nombre varchar(40),
siguiente_turno smallint
check (siguiente_turno is null or (siguiente_turno >=3D 1 )),
observacion varchar(256),
primary key (turno)
)
/
comment on column sal.turnos.turno is 'Turno'
/
comment on column sal.turnos.nombre is 'Nombre'
/
comment on column sal.turnos.siguiente_turno is 'Siguiente Turno'
/
comment on column sal.turnos.observacion is 'Observaci=F3n'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : ubicaciones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.ubicaciones
(
ubicacion integer not null,
descripcion varchar(40) not null,
primary key (ubicacion)
)
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : unidades_organicas */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.unidades_organicas
(
unidad_organica integer not null
check (unidad_organica >=3D 1),
nombre varchar(40),
centro_de_costo integer not null
check (centro_de_costo >=3D 1),
primary key (unidad_organica)
)
/
comment on column sal.unidades_organicas.unidad_organica is 'Unidad Org =
nica'
/
comment on column sal.unidades_organicas.nombre is 'Nombre'
/
comment on column sal.unidades_organicas.centro_de_costo is 'Centro de =
Costo'
/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* Table : vacaciones */
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
create table sal.vacaciones
(
numero_interno integer not null default =
autoincrement,
legajo integer not null
check (legajo >=3D 1),
periodo_adquisitivo_desde date not null,
periodo_adquisitivo_hasta date not null,
vacacion_desde date not null,
vacacion_hasta date not null,
dias_tomados numeric(6,2) not null,
observacion varchar(256),
fecha_insercion timestamp not null default =
current timestamp,
usuario_insercion varchar(30) not null default =
current user,
fecha_reintegracion date,
primary key (numero_interno)
)
/
comment on column sal.vacaciones.numero_interno is 'N=A3mero Interno'
/
comment on column sal.vacaciones.legajo is 'Legajo'
/
comment on column sal.vacaciones.periodo_adquisitivo_desde is 'Per=A1odo =
Adquisitivo Desde'
/
comment on column sal.vacaciones.periodo_adquisitivo_hasta is 'Per=A1odo =
Adquisitivo Hasta'
/
comment on column sal.vacaciones.vacacion_desde is 'Vacaci=A2n Desde'
/
comment on column sal.vacaciones.vacacion_hasta is 'Vacaci=A2n Hasta'
/
comment on column sal.vacaciones.dias_tomados is 'Dias Tomados'
/
comment on column sal.vacaciones.observacion is 'Observaci=A2n'
/
comment on column sal.vacaciones.fecha_insercion is 'Fecha Inserci=A2n'
/
comment on column sal.vacaciones.usuario_insercion is 'Usuario =
Inserci=A2n'
/
alter table sal.accidentes_laborales
add primary key (numero_interno)
/
alter table sal.actividades_ips
add primary key (anio, mes, legajo, empresa)
/
alter table sal.bancos
add primary key (banco)
/
alter table sal.cargos_unidades
add primary key (legajo)
/
alter table sal.cargos_unidades_auditoria
add primary key (numero_interno)
/
alter table sal.centros_de_costos
add primary key (centro_de_costo)
/
alter table sal.ciudades
add primary key (ciudad)
/
alter table sal.costo_turno
add primary key (turno, desde, hasta)
/
alter table sal.cursos_y_seminarios
add primary key (numero_interno)
/
alter table sal.datos_de_la_empresa
add primary key (solo_clave)
/
alter table sal.descuentos_diferidos
add primary key (numero)
/
alter table sal.descuentos_diferidos_detalles
add primary key (numero, cuota)
/
alter table sal.descuentos_diferidos_tipos
add primary key (tipo_descuento)
/
alter table sal.descuentos_fijos
add primary key (novedad, planilla, novedad_afectada)
/
alter table sal.dias_trabajados
add primary key (mes)
/
alter table sal.domicilios
add primary key (numero_interno)
/
alter table sal.empleados
add primary key (legajo)
/
alter table sal.empleados_por_turno
add primary key (legajo, fecha, turno)
/
alter table sal.experiencia_laboral
add primary key (numero_interno)
/
alter table sal.feriados
add primary key (fecha)
/
alter table sal.formacion_academica
add primary key (numero_interno)
/
alter table sal.funciones
add primary key (funcion)
/
alter table sal.horarios_por_turno
add primary key (turno, dia)
/
alter table sal.horarios_por_turno_historico
add primary key (fecha, turno, dia)
/
alter table sal.horas_extras_autorizadas
add primary key (numero_interno)
/
alter table sal.idiomas
add primary key (idioma)
/
alter table sal.idiomas_empleado
add primary key (legajo, idioma)
/
alter table sal.imagenes
add primary key (numero_interno)
/
alter table sal.inasistencias
add primary key (numero_interno)
/
alter table sal.liquidacion
add primary key (legajo)
/
alter table sal.lugares_de_trabajo
add primary key (lugar_de_trabajo)
/
alter table sal.marcacion_asistencia
add primary key (numero_interno)
/
alter table sal.novedades
add primary key (novedad)
/
alter table sal.novedades_factores
add primary key (novedad, planilla)
/
alter table sal.novedades_modelos
add primary key (numero_interno)
/
alter table sal.novedades_modelos_auditoria
add primary key (numero_interno)
/
alter table sal.novedades_proceso
add primary key (numero_interno)
/
alter table sal.novedades_proceso_audit
add primary key (numero_interno)
/
alter table sal.novedades_proceso_copy
add primary key (legajo, novedad, planilla, numero_proceso)
/
alter table sal.novedades_proceso_historico
add primary key (numero_interno)
/
alter table sal.novedades_proceso_historico_copy
add primary key (numero_interno)
/
alter table sal.numeros_patronales
add primary key (numero)
/
alter table sal.numeros_patronales_mjt
add primary key (codigo)
/
alter table sal.otras_informaciones
add primary key (numero_interno)
/
alter table sal.otros_conocimientos
add primary key (numero_interno)
/
alter table sal.otros_documentos_empleado
add primary key (numero_interno)
/
alter table sal.paises
add primary key (pais)
/
alter table sal.parametros_asistencia
add primary key (solo_clave)
/
alter table sal.parametros_codigos
add primary key (solo_clave)
/
alter table sal.parientes
add primary key (numero_interno)
/
alter table sal.pbcatcol
add primary key (pbc_tnam, pbc_ownr, pbc_cnam)
/
alter table sal.pbcatedt
add primary key (pbe_name, pbe_seqn)
/
alter table sal.pbcatfmt
add primary key (pbf_name)
/
alter table sal.pbcattbl
add primary key (pbt_tnam, pbt_ownr)
/
alter table sal.pbcatvld
add primary key (pbv_name)
/
alter table sal.permisos
add primary key (numero_interno)
/
alter table sal.politica_vacacional_empleado
add primary key (legajo, politica)
/
alter table sal.politicas_vacacionales
add primary key (politica)
/
alter table sal.politicas_vacionales_detalles
add primary key (politica, anos)
/
alter table sal.proceso_fechas
add primary key (solo_clave)
/
alter table sal.profesiones
add primary key (profesion)
/
alter table sal.reconocimientos_y_premios
add primary key (numero_interno)
/
alter table sal.referencias
add primary key (numero_interno)
/
alter table sal.relaciones_otros_empleados
add primary key (legajo, legajo_referencia)
/
alter table sal.religiones
add primary key (religion)
/
alter table sal.sanciones
add primary key (numero_interno)
/
alter table sal.sueldos
add primary key (legajo, planilla)
/
alter table sal.sueldos_auditoria
add primary key (numero_interno)
/
alter table sal.tareas_realizadas_empresa
add primary key (numero_interno)
/
alter table sal.tipos_accidentes
add primary key (tipo_accidente)
/
alter table sal.tipos_de_documentos
add primary key (tipo)
/
alter table sal.tipos_inasistencias
add primary key (tipo)
/
alter table sal.turnos
add primary key (turno)
/
alter table sal.ubicaciones
add primary key (ubicacion)
/
alter table sal.unidades_organicas
add primary key (unidad_organica)
/
alter table sal.vacaciones
add primary key (numero_interno)
/
alter table sal.accidentes_laborales
add foreign key fk_accident_ref_7223_tipos_ac (tipo_accidente)
references sal.tipos_accidentes (tipo_accidente)
on update restrict
on delete restrict
/
alter table sal.accidentes_laborales
add foreign key fk_accident_ref_7230_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.actividades_ips
add foreign key fk_activida_ref_18360_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key fk_cargos_u_bancos_su_bancos (banco)
references sal.bancos (banco)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key fk_cargos_u_empleados_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete cascade
/
alter table sal.cargos_unidades
add foreign key fk_cargos_u_funciones_funcione (funcion)
references sal.funciones (funcion)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key fk_cargos_u_ref_6109_lugares_ (lugar_de_trabajo)
references sal.lugares_de_trabajo (lugar_de_trabajo)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key fk_cargos_u_unidades__unidades (unidad_organica)
references sal.unidades_organicas (unidad_organica)
on update restrict
on delete restrict
/
alter table sal.costo_turno
add foreign key fk_costo_tu_ref_8012_novedade (novedad)
references sal.novedades (novedad)
on update restrict
on delete restrict
/
alter table sal.cursos_y_seminarios
add foreign key fk_cursos_y_ref_7139_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.descuentos_diferidos_detalles
add foreign key fk_descuent_descuento_descuent (numero)
references sal.descuentos_diferidos (numero)
on update restrict
on delete restrict
/
alter table sal.descuentos_diferidos
add foreign key fk_descuent_descuento_descuent (tipo_descuento)
references sal.descuentos_diferidos_tipos (tipo_descuento)
on update restrict
on delete restrict
/
alter table sal.descuentos_diferidos
add foreign key fk_descuent_empleados_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.descuentos_diferidos_tipos
add foreign key fk_descuent_ref_6492_novedade (novedad_descuento)
references sal.novedades (novedad)
on update restrict
on delete restrict
/
alter table sal.descuentos_fijos
add foreign key fk_descuent_ref_6506_novedade (novedad)
references sal.novedades_factores (novedad)
on update restrict
on delete restrict
/
alter table sal.descuentos_fijos
add foreign key fk_descuent_ref_6511_novedade (novedad_afectada, =
planilla)
references sal.novedades_factores (novedad, planilla)
on update restrict
on delete restrict
/
alter table sal.domicilios
add foreign key fk_domicili_ref_6104_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.domicilios
add foreign key fk_domicili_ref_7036_ciudades (ciudad)
references sal.ciudades (ciudad)
on update restrict
on delete restrict
/
alter table sal.domicilios
add foreign key fk_domicili_ref_7039_paises (pais)
references sal.paises (pais)
on update restrict
on delete restrict
/
alter table sal.empleados
add foreign key fk_empleado_ciudades__ciudades (lugar_nacimiento)
references sal.ciudades (ciudad)
on update restrict
on delete restrict
/
alter table sal.empleados
add foreign key fk_empleado_paises_em_paises (nacionalidad)
references sal.paises (pais)
on update restrict
on delete restrict
/
alter table sal.empleados
add foreign key fk_empleado_profesion_profesio (profesion)
references sal.profesiones (profesion)
on update restrict
on delete restrict
/
alter table sal.empleados
add foreign key fk_empleado_ref_7113_religion (religion)
references sal.religiones (religion)
on update restrict
on delete restrict
/
alter table sal.empleados_por_turno
add foreign key fk_empleado_ref_7949_turnos (turno)
references sal.turnos (turno)
on update restrict
on delete restrict
/
alter table sal.empleados_por_turno
add foreign key fk_empleado_ref_7952_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.experiencia_laboral
add foreign key fk_experien_ref_7031_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.experiencia_laboral
add foreign key fk_experien_ref_7042_paises (pais)
references sal.paises (pais)
on update restrict
on delete restrict
/
alter table sal.experiencia_laboral
add foreign key fk_experien_ref_7046_ciudades (ciudad)
references sal.ciudades (ciudad)
on update restrict
on delete restrict
/
alter table sal.formacion_academica
add foreign key fk_formacio_ref_7052_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.formacion_academica
add foreign key fk_formacio_ref_7055_paises (pais)
references sal.paises (pais)
on update restrict
on delete restrict
/
alter table sal.horarios_por_turno
add foreign key fk_horarios_ref_23335_turnos (turno)
references sal.turnos (turno)
on update restrict
on delete restrict
/
alter table sal.horas_extras_autorizadas
add foreign key fk_horas_ex_ref_7965_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.horas_extras_autorizadas
add foreign key fk_horas_ex_ref_7968_empleado (autorizo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.horas_extras_autorizadas
add foreign key fk_horas_ex_ref_8000_novedade (novedad)
references sal.novedades (novedad)
on update restrict
on delete restrict
/
alter table sal.idiomas_empleado
add foreign key fk_idiomas__ref_6098_idiomas (idioma)
references sal.idiomas (idioma)
on update restrict
on delete restrict
/
alter table sal.idiomas_empleado
add foreign key fk_idiomas__ref_6101_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.imagenes
add foreign key fk_imagenes_ref_10494_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.inasistencias
add foreign key fk_inasiste_ref_7183_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.inasistencias
add foreign key fk_inasiste_ref_7227_tipos_in (tipo_inasistencia)
references sal.tipos_inasistencias (tipo)
on update restrict
on delete restrict
/
alter table sal.novedades_proceso
add foreign key fk_novedade_ref_6066_sueldos (legajo)
references sal.sueldos (legajo)
on update restrict
on delete restrict
/
alter table sal.novedades_modelos
add foreign key fk_novedade_ref_6071_sueldos (legajo)
references sal.sueldos (legajo)
on update restrict
on delete restrict
/
alter table sal.novedades_modelos
add foreign key fk_novedade_ref_6473_novedade (novedad, planilla, =
planilla)
references sal.novedades_factores (novedad, planilla, planilla)
on update restrict
on delete restrict
/
alter table sal.novedades_proceso
add foreign key fk_novedade_ref_6478_novedade (novedad, planilla, =
planilla)
references sal.novedades_factores (novedad, planilla, planilla)
on update restrict
on delete restrict
/
alter table sal.novedades_factores
add foreign key fk_novedade_ref_7997_novedade (novedad)
references sal.novedades (novedad)
on update restrict
on delete cascade
/
alter table sal.otras_informaciones
add foreign key fk_otras_in_ref_7128_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.otros_conocimientos
add foreign key fk_otros_co_ref_7063_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.otros_documentos_empleado
add foreign key fk_otros_do_ref_6534_tipos_de (tipo)
references sal.tipos_de_documentos (tipo)
on update restrict
on delete restrict
/
alter table sal.otros_documentos_empleado
add foreign key fk_otros_do_ref_6540_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.parientes
add foreign key fk_pariente_empleados_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete cascade
/
alter table sal.parientes
add foreign key fk_pariente_paises_pa_paises (nacionalidad)
references sal.paises (pais)
on update restrict
on delete restrict
/
alter table sal.parientes
add foreign key fk_pariente_ref_7117_profesio (profesion)
references sal.profesiones (profesion)
on update restrict
on delete restrict
/
alter table sal.permisos
add foreign key fk_permisos_ref_7898_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.permisos
add foreign key fk_permisos_ref_7901_empleado (autorizo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.politicas_vacionales_detalles
add foreign key fk_politica_ref_5595_politica (politica)
references sal.politicas_vacacionales (politica)
on update restrict
on delete restrict
/
alter table sal.politica_vacacional_empleado
add foreign key fk_politica_ref_7197_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.politica_vacacional_empleado
add foreign key fk_politica_ref_7200_politica (politica)
references sal.politicas_vacacionales (politica)
on update restrict
on delete restrict
/
alter table sal.reconocimientos_y_premios
add foreign key fk_reconoci_ref_7155_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.referencias
add foreign key fk_referenc_ref_7076_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.relaciones_otros_empleados
add foreign key fk_relacion_ref_7096_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete cascade
/
alter table sal.relaciones_otros_empleados
add foreign key fk_relacion_ref_7099_empleado (legajo_referencia)
references sal.empleados (legajo)
on update restrict
on delete cascade
/
alter table sal.sanciones
add foreign key fk_sancione_ref_7165_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.sueldos
add foreign key fk_sueldos_ref_6032_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.tareas_realizadas_empresa
add foreign key fk_tareas_r_ref_7241_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.turnos
add foreign key fk_turnos_ref_7939_turnos (siguiente_turno)
references sal.turnos (turno)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key fk_ubicaciones (ubicacion)
references sal.ubicaciones (ubicacion)
on update restrict
on delete restrict
/
alter table sal.unidades_organicas
add foreign key fk_unidades_centros_d_centros_ (centro_de_costo)
references sal.centros_de_costos (centro_de_costo)
on update restrict
on delete restrict
/
alter table sal.vacaciones
add foreign key fk_vacacion_ref_7211_empleado (legajo)
references sal.empleados (legajo)
on update restrict
on delete restrict
/
alter table sal.cargos_unidades
add foreign key numeros_patronales_mjt (codigo_numero_mjt)
references sal.numeros_patronales_mjt (codigo)
on update restrict
on delete restrict
/
____________________________________________________
Sandrigo Lezcano Jara Asunci=F3n, Paraguay
usando______: Ret Hat 7.2 (Enigma) - Kernel 2.4.7-10=20
PostgreSQL 7.1.3 - psqlODBC 7.02.00.01
migrando____: Sybase 6.5 al PostgreSQL=20
front end___: PowerBuilder 6.5 =20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
____________________________________________________
------=_NextPart_000_0048_01C32137.96D70E20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DCourier size=3D2>usando <FONT size=3D1>Reverse =
Engineering Database=20
... del </FONT></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><FONT size=3D1>PowerDisigner 7.0 al =
ODBC del=20
PostgreSQL</FONT></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2>creo que los tipos de datos tienen =
que ser=20
modificados manualmente</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2>me da un =
archivo: =20
crebas.sql</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Database name: =20
MODL_1 &=
nbsp; &n=
bsp; &nb=
sp; =20
*/<BR>/* DBMS name: Sybase AS Anywhere=20
7 =
=
*/<BR>/* Created on: 23/05/03 02:09:21=20
PM  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
accidentes_laborales  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.accidentes_laborales<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
tipo_accidente =20
smallint  =
; =20
not null<BR> check =
(tipo_accidente >=3D 1),<BR> =20
descripcion =20
varchar(256),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.tipo_accidente is 'Tipo =
Accidente'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.descripcion is =
'Descripci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.accidentes_laborales.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
actividades_ips &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.actividades_ips<BR>(<BR> =20
anio &nb=
sp; =20
smallint  =
; =20
not null<BR> check =
(anio=20
between 1900 and 2500),<BR> =20
mes &nbs=
p; =20
tinyint =
=
not null<BR> check =
(mes=20
between 1 and 12),<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
actividad &nbs=
p;=20
char(2) =
=
not null,<BR> =20
empresa =
=20
integer =
=
not null,<BR> primary key (anio, mes, legajo,=20
empresa)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.anio is=20
'A=A4o'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.mes is=20
'Mes'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.actividades_ips.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.actividades_ips.actividad is 'Actividad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
bancos &=
nbsp; &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.bancos<BR>(<BR> =20
banco &n=
bsp; =20
integer =
=
not null<BR> check =
(banco=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(banco)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.bancos.banco is=20
'Banco'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.bancos.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cargos &=
nbsp; &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cargos<BR>(<BR> =20
codigo &=
nbsp; =20
double,<BR> =20
descri &=
nbsp; =20
char(15)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cargos_unidades &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cargos_unidades<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =
lugar_de_trabajo =20
smallint  =
; =20
not null<BR> check =
(lugar_de_trabajo >=3D 1),<BR> =20
funcion =
=20
integer =
=
not null<BR> check =
(funcion >=3D 1),<BR> =20
unidad_organica =20
integer =
=
not null<BR> check =
(unidad_organica >=3D 1),<BR> =20
estadia =
=20
char &nb=
sp; &nbs=
p; =20
not null default =
'F'<BR> =20
check (estadia in ('''F''<BR>','V')),<BR> =20
tipo_empleado =20
char &nb=
sp; &nbs=
p; =20
not null default =
'E'<BR> =20
check (tipo_empleado in ('''E''<BR>','O')),<BR> =20
banco &n=
bsp; =20
integer =
=
not null<BR> check =
(banco=20
>=3D 1),<BR> =
cuenta_bancaria =20
varchar(40),<BR> =20
observacion =20
varchar(40),<BR> =
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> =20
fecha_modificacion timestamp,<BR> =20
usuario_modificacion varchar(30),<BR> =20
fecha_ips &nbs=
p;=20
date,<BR> =20
fecha_ingreso =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
fecha_egreso =20
date,<BR> =20
ubicacion &nbs=
p;=20
integer,<BR> =20
sucursal  =
; =20
char(2),<BR> =20
tipo_cuenta =20
char(2),<BR> codigo_numero_mjt =20
integer,<BR> =20
turno &n=
bsp; =20
integer,<BR> primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.lugar_de_trabajo is 'Lugar de =
Trabajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.funcion=20
is 'Funci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.unidad_organica is 'Unidad =
Org nica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.estadia=20
is 'Estad=A1a'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.tipo_empleado is 'Tipo Empleado'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.cargos_unidades.banco=20
is 'Banco'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.cuenta_bancaria is 'Cuenta Bancaria en la que se =
debe pagar=20
el sueldo del empleado'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.fecha_insercion is 'Fecha =
inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.fecha_modificacion is 'Fecha =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cargos_unidades_auditoria =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cargos_unidades_auditoria<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =
lugar_de_trabajo =20
smallint  =
; =20
not null<BR> check =
(lugar_de_trabajo >=3D 1),<BR> =20
funcion =
=20
integer =
=
not null<BR> check =
(funcion >=3D 1),<BR> =20
unidad_organica =20
integer =
=
not null<BR> check =
(unidad_organica >=3D 1),<BR> =20
estadia =
=20
char &nb=
sp; &nbs=
p; =20
not null default =
'F'<BR> =20
check (estadia in ('''F''<BR>','V')),<BR> =20
tipo_empleado =20
char &nb=
sp; &nbs=
p; =20
not null default =
'E'<BR> =20
check (tipo_empleado in ('''E''<BR>','O')),<BR> =20
banco &n=
bsp; =20
integer<BR> check =
(banco=20
is null or (banco >=3D 1 )),<BR> =20
cuenta_bancaria =
varchar(40),<BR> =20
observacion =20
varchar(40),<BR> =
fecha_insercion =20
timestamp,<BR> usuario_insercion =20
varchar(30) &n=
bsp; =20
not null,<BR> fecha_modificacion =20
timestamp,<BR> usuario_modificacion=20
varchar(30),<BR> =20
fecha_registro =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_registro =20
varchar(30) &n=
bsp; =20
not null,<BR> =20
fecha_ips &nbs=
p;=20
date,<BR> =20
fecha_ingreso =20
date,<BR> =20
fecha_egreso =20
date,<BR> =20
tipo &nb=
sp; =20
char &nb=
sp; &nbs=
p; =20
not null,<BR> =20
ubicacion &nbs=
p;=20
integer,<BR> codigo_numero_mjt =20
integer,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.lugar_de_trabajo is 'Lugar de=20
Trabajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.funcion is 'Funci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.unidad_organica is 'Unidad=20
Org nica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.estadia is 'Estad=A1a'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.tipo_empleado is 'Tipo =
Empleado'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.banco is 'Banco'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.cuenta_bancaria is 'Cuenta Bancaria en la =
que se=20
debe pagar el sueldo del empleado'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_insercion is 'Fecha=20
inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_modificacion is 'Fecha=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.fecha_registro is 'Fecha=20
Registro'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cargos_unidades_auditoria.usuario_registro is 'Usuario=20
Registro'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
centros_de_costos &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.centros_de_costos<BR>(<BR> =20
centro_de_costo =20
integer =
=
not null<BR> check =
(centro_de_costo >=3D 1),<BR> =20
aclaracion =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key=20
(centro_de_costo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.centros_de_costos.centro_de_costo is =
'centro_de_costo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.centros_de_costos.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
ciudades  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.ciudades<BR>(<BR> =20
ciudad &=
nbsp; =20
integer =
=
not null<BR> check =
(ciudad=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(ciudad)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.ciudades.ciudad is=20
'Ciudad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.ciudades.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
costo_turno &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.costo_turno<BR>(<BR> =20
turno &n=
bsp; =20
smallint  =
; =20
not null<BR> check =
(turno=20
>=3D 1),<BR> =20
desde &n=
bsp; =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> =20
hasta &n=
bsp; =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> =20
cantidad_horas =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> primary key (turno, =
desde,=20
hasta)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.turno is=20
'Turno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.desde is=20
'Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.hasta is=20
'Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.costo_turno.cantidad_horas is 'Cantidad Horas'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.costo_turno.novedad is=20
'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cuentas =
&=
nbsp; &n=
bsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cuentas<BR>(<BR> =20
codemp_060 =20
varchar(4),<BR> =20
cuenta &=
nbsp; =20
varchar(6)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
cursos_y_seminarios =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.cursos_y_seminarios<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> =20
institucion =20
varchar(40),<BR> =20
carga_horaria =20
numeric(6,2),<BR> =20
costo_empresa =20
numeric(13,2),<BR> =20
descripcion =20
varchar(256),<BR> =20
curso_interno =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (curso_interno in ('''S''<BR>','N')),<BR> =
primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.institucion is 'Instituci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.carga_horaria is 'Carga =
Horaria'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.costo_empresa is 'Costo =
Empresa'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.descripcion is 'Descripci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.cursos_y_seminarios.curso_interno is 'Curso =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
datos_de_la_empresa =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.datos_de_la_empresa<BR>(<BR> =20
solo_clave =20
integer =
=
not null default =
1<BR> =20
check (solo_clave between 1 and 1),<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> =20
direccion &nbs=
p;=20
varchar(40),<BR> =20
telefono  =
; =20
varchar(40),<BR> numero_patronal_ips =20
varchar(40),<BR> numero_patronal_mjt =20
varchar(40),<BR> sector_de_trabajo =20
varchar(40),<BR> logotipo_etiqueta =20
varchar(20),<BR> =
logotipo_grafico long=20
binary,<BR> fecha_de_proceso =20
date,<BR> ano_mes_de_proceso =20
char(6)<BR> check=20
(ano_mes_de_proceso is null or (ano_mes_de_proceso between '199001' and =
'999912'=20
)),<BR> =20
ruc &nbs=
p; =20
char(15),<BR> primary key =
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.solo_clave is 'Solo_Clave'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.direccion is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.telefono is 'Tel=82fono'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.numero_patronal_ips is 'N=A3mero Patronal=20
IPS'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.numero_patronal_mjt is 'N=A3mero Patronal=20
BNT'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.sector_de_trabajo is 'Sector de=20
Trabajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.logotipo_etiqueta is 'Logotipo=20
Etiqueta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.logotipo_grafico is 'Logotipo=20
Gr fico'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.fecha_de_proceso is 'Fecha de =
Proceso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.datos_de_la_empresa.ano_mes_de_proceso is 'A=A4o Mes de=20
Proceso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos<BR>(<BR> =20
numero &=
nbsp; =20
integer =
=
not null,<BR> =20
tipo_descuento =20
integer =
=
not null,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date,<BR> =20
monto &n=
bsp; =20
numeric(13,2) =
=20
not null,<BR> =20
tasa_interes =20
numeric(5,2) &=
nbsp; =20
not null,<BR> =20
plazo &n=
bsp; =20
smallint,<BR> =20
tipo_planilla =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(tipo_planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
fecha_inicio_descuento date,<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null,<BR> usuario_insercion =20
varchar(30) &n=
bsp; =20
not null,<BR> primary key =
(numero)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.numero is 'N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tipo_descuento is 'Tipo =
Descuento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.monto is 'Monto'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tasa_interes is 'Tasa =
Inter=82s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.plazo is 'Plazo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.tipo_planilla is 'Tipo =
Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha_inicio_descuento is 'Fecha Inicio=20
Descuento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos_detalles &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos_detalles<BR>(<BR> =20
numero &=
nbsp; =20
integer =
=
not null,<BR> =20
cuota &n=
bsp; =20
smallint  =
; =20
not null,<BR> monto_amortizacion =20
numeric(13,2) =
=20
not null,<BR> =20
monto_interes =20
numeric(13,2) =
=20
not null,<BR> fecha_prevista_pago =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> fecha_calculada_pago=20
date &nb=
sp; &nbs=
p; =20
not null,<BR> fecha_real_de_pago =20
date,<BR> primary key (numero, =
cuota),<BR> =20
check (check(fecha_prevista_pago <=3D fecha_calculada_pago=20
and<BR> fecha_prevista_pago <=3D=20
fecha_real_de_pago))<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.numero is 'N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.cuota is 'Cuota'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.monto_amortizacion is 'Monto=20
Amortizaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.monto_interes is 'Monto=20
Inter=82s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_prevista_pago is 'Fecha Prevista =
Pago'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_calculada_pago is 'Fecha =
Calculada=20
Pago'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_detalles.fecha_real_de_pago is 'Fecha Real de=20
Pago'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_diferidos_tipos  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_diferidos_tipos<BR>(<BR> =20
tipo_descuento =20
integer =
=
not null,<BR> =20
descripcion =20
varchar(40),<BR> =20
plazo_maximo =20
smallint,<BR> =
tasa_de_interes =20
numeric(5,2) &=
nbsp; =20
not null<BR> check =
(tasa_de_interes between 0 and 100),<BR> =20
novedad_descuento =20
integer =
=
not null<BR> check =
(novedad_descuento between 1 and 9999),<BR> primary =
key=20
(tipo_descuento)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.tipo_descuento is 'Tipo=20
Descuento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.descripcion is =
'Descripci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.plazo_maximo is 'Plazo=20
M ximo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.tasa_de_interes is 'Tasa de=20
Inter=82s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_diferidos_tipos.novedad_descuento is 'Novedad=20
Descuento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
descuentos_fijos &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.descuentos_fijos<BR>(<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
novedad_afectada =20
integer =
=
not null<BR> check =
(novedad_afectada between 1 and 9999),<BR> primary key =
(novedad, planilla, novedad_afectada)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_fijos.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_fijos.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.descuentos_fijos.novedad_afectada is 'Novedad =
Afectada'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
dias_trabajados &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.dias_trabajados<BR>(<BR> =20
mes &nbs=
p; =20
tinyint =
=
not null,<BR> =20
dias &nb=
sp; =20
integer =
=
not null,<BR> primary key (mes)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
domicilios &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.domicilios<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
calle &n=
bsp; =20
varchar(40),<BR> =20
telefono  =
; =20
varchar(40),<BR> =20
barrio &=
nbsp; =20
varchar(40),<BR> =20
ciudad &=
nbsp; =20
integer =
=
not null<BR> check =
(ciudad=20
>=3D 1),<BR> =20
pais &nb=
sp; =20
integer =
=
not null<BR> check =
(pais=20
>=3D 1),<BR> =20
croquis =
=20
long binary,<BR> =20
tipo_domicilio =20
char &nb=
sp; &nbs=
p; =20
not null default =
'O'<BR> =20
check (tipo_domicilio in=20
('''P''<BR>','''A''<BR>','''F''<BR>','O')),<BR> =20
fecha_referencia =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.calle is=20
'Calle'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.telefono is=20
'Tel=82fono'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.barrio is=20
'Barrio'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.ciudad is=20
'Ciudad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.pais is=20
'Pa=A1s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.domicilios.croquis is=20
'Croquis'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.tipo_domicilio is 'Tipo Domicilio'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.domicilios.fecha_referencia is 'Fecha Referencia'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
empleados &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.empleados<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
primer_nombre =20
varchar(20) &n=
bsp; =20
not null,<BR> =20
segundo_nombre =20
varchar(20),<BR> =
apellido_primero =20
varchar(20) &n=
bsp; =20
not null,<BR> apellido_segundo =
varchar(20),<BR> =
apellido_casada =20
varchar(20),<BR> =20
profesion &nbs=
p;=20
integer =
=
not null<BR> check =
(profesion >=3D 1),<BR> =20
telefono_celular =
varchar(40),<BR> =20
busca_persona =20
varchar(40),<BR> =
fecha_nacimiento =20
date,<BR> lugar_nacimiento =20
integer<BR> check=20
(lugar_nacimiento is null or (lugar_nacimiento >=3D 1 =
)),<BR> =20
estado_civil =20
char &nb=
sp; &nbs=
p; =20
default 'S'<BR> =
check=20
(estado_civil is null or ( estado_civil in=20
('''S''<BR>','''C''<BR>','''D''<BR>','''V''<BR>','O') =
)),<BR> =20
fecha_casamiento date,<BR> =20
nacionalidad =20
integer<BR> check=20
(nacionalidad is null or (nacionalidad >=3D 1 =
)),<BR> =20
sexo &nb=
sp; =20
char<BR> check =
(sexo is=20
null or (sexo <> '' )),<BR> =
documento_identidad =20
varchar(20),<BR> =20
numero_social =20
varchar(20),<BR> =
grupo_sanguineo =20
varchar(3)<BR> =
check=20
(grupo_sanguineo is null or (@column <> '' =
)),<BR> =20
religion  =
; =20
integer,<BR> =20
observacion long=20
varchar,<BR> =
usuario_inserto =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
numero_patronal =
smallint,<BR> =20
codigo_alterno =20
char(6),<BR> primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.primer_nombre=20
is 'Primer Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.segundo_nombre is 'Segundo Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_primero is 'Primer Apellido'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_segundo is 'Segundo Apellido'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.apellido_casada is 'Apellido Casada'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.profesion is=20
'Profesi=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.telefono_celular is 'Tel=82fono Celular'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.busca_persona=20
is 'Tel=82fono del Proveedor + C=A2digo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_nacimiento is 'Fecha Nacimiento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.lugar_nacimiento is 'Lugar Nacimiento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.estado_civil=20
is 'Estado Civil'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_casamiento is 'Fecha Casamiento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.nacionalidad=20
is 'Nacionalidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.sexo is=20
'Sexo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.documento_identidad is 'Documento =
Identidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.numero_social=20
is 'N=A3mero Social'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.grupo_sanguineo is 'Grupo Sanguineo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.religion is=20
'Religi=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.empleados.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.usuario_inserto is 'Usuario Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados.numero_patronal is 'Numero Patronal'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
empleados_por_turno =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.empleados_por_turno<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
turno &n=
bsp; =20
smallint  =
; =20
not null<BR> check =
(turno=20
>=3D 1),<BR> primary key (legajo, fecha,=20
turno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.empleados_por_turno.turno is 'Turno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
experiencia_laboral =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.experiencia_laboral<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
nombre_empresa =20
varchar(50),<BR> =20
direccion &nbs=
p;=20
varchar(50),<BR> =20
ciudad &=
nbsp; =20
integer =
=
not null<BR> check =
(ciudad=20
>=3D 1),<BR> =20
pais &nb=
sp; =20
integer =
=
not null<BR> check =
(pais=20
>=3D 1),<BR> =20
telefono  =
; =20
varchar(40),<BR> =20
fecha_ingreso =20
date,<BR> =20
fecha_egreso =20
date,<BR> tarea_desempenada =20
varchar(40),<BR> =20
ultimo_salario =20
numeric(13,2),<BR> =20
motivo_egreso =20
varchar(40),<BR> =20
observacion =20
varchar(80),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.nombre_empresa is 'Nombre =
Empresa'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.direccion is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.ciudad is 'Ciudad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.pais is 'Pa=A1s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.telefono is 'Tel=82fono'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.fecha_ingreso is 'Fecha =
Ingreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.fecha_egreso is 'Fecha Egreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.tarea_desempenada is 'Tarea=20
Desempe=A4ada'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.ultimo_salario is 'Ultimo =
Salario'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.motivo_egreso is 'Motivo =
Egreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.experiencia_laboral.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
feriados  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.feriados<BR>(<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
motivo &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(fecha)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.feriados.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.feriados.motivo is=20
'Motivo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
formacion_academica =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.formacion_academica<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
tipo_estudio =20
char<BR> check=20
(tipo_estudio is null or ( tipo_estudio in=20
('''B''<BR>','''S''<BR>','''U''<BR>','''T''<BR>','''P''<BR>','O')=20
)),<BR> =20
fecha_ingreso =20
date,<BR> =20
fecha_egreso =20
date,<BR> =20
institucion =20
varchar(40),<BR> =20
estudio =
=20
varchar(40),<BR> =
titulo_obtenido =20
varchar(40),<BR> carga_horaria_total =20
varchar(40),<BR> calificacion_general=20
varchar(40),<BR> =20
pais &nb=
sp; =20
integer =
=
not null<BR> check =
(pais=20
>=3D 1),<BR> =20
observacion =20
varchar(40),<BR> costo_para_empresa =20
numeric(13,2),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.tipo_estudio is 'Tipo Estudio'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.fecha_ingreso is 'Fecha =
Ingreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.fecha_egreso is 'Fecha Egreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.institucion is 'Instituci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.estudio is 'Nombre Estudio'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.titulo_obtenido is 'T=A1tulo =
Obtenido'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.carga_horaria_total is 'Carga Horaria=20
Total'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.calificacion_general is 'Calificaci=A2n=20
General'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.pais is 'Pa=A1s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.formacion_academica.costo_para_empresa is 'Costo para=20
Empresa'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
funciones &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.funciones<BR>(<BR> =20
funcion =
=20
integer =
=
not null<BR> check =
(funcion >=3D 1),<BR> =20
descripcion =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
tipo_funcion =20
char &nb=
sp; &nbs=
p; =20
not null default =
'N'<BR> =20
check (tipo_funcion in ('''J''<BR>','N')),<BR> primary =
key=20
(funcion)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.funcion is=20
'Funci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.descripcion=20
is 'Descripci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.funciones.tipo_funcion=20
is 'Tipo Funci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
horarios_por_turno &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.horarios_por_turno<BR>(<BR> =20
turno &n=
bsp; =20
smallint  =
; =20
not null<BR> check =
(turno=20
>=3D 1),<BR> =20
dia &nbs=
p; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(dia in=20
('''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>','''7''<BR>',=
'1')),<BR> =20
hora_entrada_1 =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> =20
hora_salida_1 =20
time,<BR> =
hora_entrada_2 =20
time,<BR> =20
hora_salida_2 =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> total_horas_a_trabajar=20
numeric(6,2) &=
nbsp; =20
not null,<BR> total_horas_a_considerar=20
numeric(6,2) &=
nbsp; =20
not null,<BR> llegada_tardia_desde=20
time &nb=
sp; &nbs=
p; =20
not null,<BR> primary key (turno, =
dia)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
horarios_por_turno_historico &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.horarios_por_turno_historico<BR>(<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
turno &n=
bsp; =20
smallint  =
; =20
not null<BR> check =
(turno=20
>=3D 1),<BR> =20
dia &nbs=
p; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(dia in=20
('''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>','''7''<BR>',=
'1')),<BR> =20
hora_entrada_1 =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> =20
hora_salida_1 =20
time,<BR> =
hora_entrada_2 =20
time,<BR> =20
hora_salida_2 =20
time &nb=
sp; &nbs=
p; =20
not null,<BR> total_horas_a_trabajar=20
numeric(6,2) &=
nbsp; =20
not null,<BR> total_horas_a_considerar=20
numeric(6,2) &=
nbsp; =20
not null,<BR> llegada_tardia_desde=20
time &nb=
sp; &nbs=
p; =20
not null,<BR> primary key (fecha, turno,=20
dia)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
horas_extras_autorizadas &=
nbsp; &n=
bsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.horas_extras_autorizadas<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
desde &n=
bsp; =20
timestamp &nbs=
p; =20
not null,<BR> =20
hasta &n=
bsp; =20
timestamp &nbs=
p; =20
not null,<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
autorizo  =
; =20
integer =
=
not null<BR> check =
(autorizo >=3D 1),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> =20
observacion =20
varchar(256),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.desde is 'Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.hasta is 'Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.autorizo is 'Autoriz=A2'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.horas_extras_autorizadas.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
idiomas =
&=
nbsp; &n=
bsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.idiomas<BR>(<BR> =20
idioma &=
nbsp; =20
smallint  =
; =20
not null<BR> check =
(idioma=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(idioma)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas.idioma is=20
'Idioma'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
idiomas_empleado &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.idiomas_empleado<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
idioma &=
nbsp; =20
smallint  =
; =20
not null<BR> check =
(idioma=20
>=3D 1),<BR> =20
habla &n=
bsp; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(habla=20
in=20
('''N''<BR>','''R''<BR>','''B''<BR>','''M''<BR>','''E''<BR>','S')),<BR>&n=
bsp; =20
lee &nbs=
p; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(lee in=20
('''N''<BR>','''R''<BR>','''B''<BR>','''M''<BR>','''E''<BR>','S')),<BR>&n=
bsp; =20
escribe =
=20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(escribe in=20
('''N''<BR>','''R''<BR>','''B''<BR>','''M''<BR>','''E''<BR>','S')),<BR>&n=
bsp; =20
observacion =20
varchar(50),<BR> primary key (legajo,=20
idioma)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.legajo=20
is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.idioma=20
is 'Idioma'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.habla=20
is 'Habla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.idiomas_empleado.lee is=20
'Lee'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.idiomas_empleado.escribe is 'Escribe'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.idiomas_empleado.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
imagenes  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.imagenes<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
tipo_imagen =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(tipo_imagen in=20
('''1''<BR>','''2''<BR>','''3''<BR>','9')),<BR> =20
imagen &=
nbsp; =20
long binary,<BR> =20
observacion =20
varchar(256),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null default 'today()',<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.numero_interno=20
is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.tipo_imagen is=20
'Tipo Imagen'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.imagen is=20
'Imagen'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.observacion is=20
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.imagenes.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
inasistencias =
&=
nbsp; &n=
bsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.inasistencias<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> tipo_inasistencia =20
smallint  =
; =20
not null<BR> check =
(tipo_inasistencia >=3D 1),<BR> =20
observacion =20
varchar(256) &=
nbsp; =20
not null,<BR> =
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.inasistencias.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.inasistencias.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.tipo_inasistencia is 'Tipo =
Inasistencia'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.inasistencias.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
liquidacion &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.liquidacion<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> primary key =
(legajo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.liquidacion.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
lugares_de_trabajo &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.lugares_de_trabajo<BR>(<BR> =20
lugar_de_trabajo =20
smallint  =
; =20
not null<BR> check =
(lugar_de_trabajo >=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
cuenta &=
nbsp; =20
char(20),<BR> =20
sucursal  =
; =20
char(2),<BR> =20
empresa =
=20
char(2),<BR> numero_patronal_mjt =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
direccion &nbs=
p;=20
varchar(40) &n=
bsp; =20
not null,<BR> sector_de_trabajo =20
varchar(60) &n=
bsp; =20
not null,<BR> logotipo_etiqueta =20
varchar(20) &n=
bsp; =20
not null,<BR> primary key=20
(lugar_de_trabajo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.lugares_de_trabajo.lugar_de_trabajo is 'Lugar de =
Trabajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.lugares_de_trabajo.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
marcacion_asistencia  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.marcacion_asistencia<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
timestamp &nbs=
p; =20
not null,<BR> =20
tipo_marcacion =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(tipo_marcacion in ('''E''<BR>','S')),<BR> =20
observacion =20
varchar(40),<BR> =
forma_marcacion =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(forma_marcacion in ('''A''<BR>','M')),<BR> primary =
key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.numero_interno is 'N=FAmero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.tipo_marcacion is 'Tipo =
Marcaci=F3n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.observacion is =
'Observaci=F3n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.marcacion_asistencia.forma_marcacion is 'Forma =
Marcaci=F3n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades<BR>(<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
ingreso =
=20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (ingreso in ('''S''<BR>','N')),<BR> =20
cargar_base =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (cargar_base in ('''S''<BR>','N')),<BR> =20
cargar_cantidad =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (cargar_cantidad in ('''S''<BR>','N')),<BR> =20
incluir_mjt =20
char &nb=
sp; &nbs=
p; =20
default 'S'<BR> =
check=20
(incluir_mjt is null or ( incluir_mjt in ('''S''<BR>','N')=20
)),<BR> =
incluir_recibo =20
char &nb=
sp; &nbs=
p; =20
default 'S'<BR> =
check=20
(incluir_recibo is null or ( incluir_recibo in ('''S''<BR>','N')=20
)),<BR> =20
ips &nbs=
p; =20
char &nb=
sp; &nbs=
p; =20
default 'S'<BR> =
check (ips=20
is null or ( ips in ('''S''<BR>','N') )),<BR> primary =
key=20
(novedad),<BR> check (check((cargar_base =3D 'S' and=20
cargar_cantidad =3D 'N') or<BR> (cargar_base =3D 'N' =
and=20
cargar_cantidad =3D 'S')))<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.novedad is=20
'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.ingreso is=20
'Ingreso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades.cargar_base=20
is 'Cargar Base'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades.cargar_cantidad is 'Cargar Cantidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_factores &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_factores<BR>(<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
factor_jornal =20
varchar(50) &n=
bsp; =20
not null,<BR> =20
factor_mensual =20
varchar(50) &n=
bsp; =20
not null,<BR> =20
factor_horista =20
varchar(50) &n=
bsp; =20
not null,<BR> =20
factor_destajo =20
varchar(50) &n=
bsp; =20
not null,<BR> =20
factor_otros =20
varchar(50) &n=
bsp; =20
not null,<BR> factor_jornal_numero=20
double,<BR> factor_mensual_numero=20
double,<BR> factor_horista_numero=20
double,<BR> factor_destajo_numero=20
double,<BR> factor_otros_numero =20
double,<BR> =20
aguinable &nbs=
p;=20
char &nb=
sp; &nbs=
p; =20
default 'S'<BR> =
check=20
(aguinable is null or ( aguinable in ('''S''<BR>','N') =
)),<BR> =20
primary key (novedad, planilla)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_jornal is 'Factor =
Jornal'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_mensual is 'Factor =
Mensual'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_horista is 'Factor =
Horista'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_destajo is 'Factor =
Destajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_otros is 'Factor Otros'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_jornal_numero is 'Factor Jornal=20
N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_mensual_numero is 'Factor Mensual=20
N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_horista_numero is 'Factor Horista=20
N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_destajo_numero is 'Factor Destajo=20
N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_factores.factor_otros_numero is 'Factor Otro=20
N=A3mero'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_modelos &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_modelos<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2)<BR> =
check=20
(base is null or (base >=3D 0 )),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null<BR> check =
(factor=20
<> 0),<BR> primary key=20
(numero_interno),<BR> unique (legajo, novedad,=20
planilla)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades_modelos.base=20
is 'Base'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_modelos.factor is 'Factor'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_modelos_auditoria &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_modelos_auditoria<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null,<BR> =20
novedad =
=20
integer =
=
not null,<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null,<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null,<BR> =
fecha_insercion =20
timestamp &nbs=
p; =20
default current timestamp,<BR> =20
usuario_insercion =20
varchar(60) &n=
bsp; =20
default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2)<BR> =
check=20
(base is null or (base >=3D 0 )),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null<BR> check =
(factor=20
<> 0),<BR> =20
numero_proceso =20
integer,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.novedades_proceso.base=20
is 'Base'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso.factor is 'Factor'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_audit &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_audit<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
cantidad  =
; =20
decimal(10,4) =
=20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2)<BR> =
check=20
(base is null or (base >=3D 0 )),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null<BR> check =
(factor=20
<> 0),<BR> =20
numero_proceso =20
integer,<BR> =20
fecha &n=
bsp; =20
timestamp &nbs=
p; =20
default current timestamp,<BR> =20
usuario =
=20
varchar(60) &n=
bsp; =20
default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_copy &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_copy<BR>(<BR> =20
numero_interno =20
integer =
=
not null,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null,<BR> =20
novedad =
=20
integer =
=
not null,<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null,<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null,<BR> =20
numero_proceso =20
integer,<BR> primary key (legajo, novedad, planilla,=20
numero_proceso)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_historico &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_historico<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
fecha_proceso =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
novedad =
=20
integer =
=
not null<BR> check =
(novedad between 1 and 9999),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2)<BR> =
check=20
(base is null or (base >=3D 0 )),<BR> =20
anio &nb=
sp; =20
smallint<BR> check =
(anio=20
is null or (anio between 1900 and 2500 )),<BR> =20
mes &nbs=
p; =20
tinyint<BR> check =
(mes is=20
null or (mes between 1 and 12 )),<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null<BR> check =
(factor=20
<> 0),<BR> =20
numero_proceso =20
integer,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.numero_interno is 'N=FAmero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.fecha_proceso is 'Fecha=20
Proceso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.novedad is 'Novedad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.cantidad is 'Cantidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.base is 'Base'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.anio is 'A=F1o'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.mes is 'Mes'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.novedades_proceso_historico.factor is 'Factor'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
novedades_proceso_historico_copy  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.novedades_proceso_historico_copy<BR>(<BR> =20
numero_interno =20
integer =
=
not null,<BR> =20
fecha_proceso =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null,<BR> =20
novedad =
=20
integer =
=
not null,<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null,<BR> =20
cantidad  =
; =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
base &nb=
sp; =20
numeric(13,2),<BR> =20
anio &nb=
sp; =20
smallint,<BR> =20
mes &nbs=
p; =20
tinyint,<BR> =20
factor &=
nbsp; =20
double &=
nbsp; &n=
bsp;=20
not null,<BR> =20
numero_proceso =20
integer,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
numeros_patronales &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.numeros_patronales<BR>(<BR> =20
numero_patronal =
char(10),<BR> =20
aclaracion =20
char(20)  =
; =20
not null,<BR> =20
numero &=
nbsp; =20
smallint  =
; =20
not null,<BR> primary key =
(numero)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.numeros_patronales.numero_patronal is 'Numero =
Patronal'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.numeros_patronales.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
numeros_patronales_mjt &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.numeros_patronales_mjt<BR>(<BR> =20
codigo &=
nbsp; =20
integer =
=
not null,<BR> =20
descripcion =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
numero_mjt =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
direccion &nbs=
p;=20
varchar(60),<BR> =20
localidad &nbs=
p;=20
varchar(30),<BR> =20
departamento =20
varchar(30),<BR> primary key =
(codigo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otras_informaciones =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otras_informaciones<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =
tipo_informacion =20
char<BR> check=20
(tipo_informacion is null or ( tipo_informacion in=20
('''D''<BR>','''P''<BR>','''E''<BR>','O') )),<BR> =20
aclaracion =20
varchar(256) &=
nbsp; =20
not null,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.tipo_informacion is 'Tipo =
Informaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otras_informaciones.aclaracion is 'Aclaraci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otros_conocimientos =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otros_conocimientos<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
conocimiento =20
varchar(40),<BR> =20
observacion =20
varchar(50),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.numero_interno is 'N=A3mero =
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.conocimiento is 'Conocimiento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_conocimientos.observacion is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
otros_documentos_empleado =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.otros_documentos_empleado<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
tipo &nb=
sp; =20
integer =
=
not null,<BR> =20
identificador =20
varchar(20),<BR> =20
observacion =20
varchar(50),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.identificador is =
'Identificador'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.otros_documentos_empleado.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
paises &=
nbsp; &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.paises<BR>(<BR> =20
pais &nb=
sp; =20
integer =
=
not null<BR> check =
(pais=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> =20
nacionalidad =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(pais)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column sal.paises.pais =
is=20
'Pa=A1s'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.paises.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.paises.nacionalidad is=20
'Nacionalidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parametros_asistencia &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parametros_asistencia<BR>(<BR> =20
solo_clave =20
smallint  =
; =20
not null<BR> check =
(solo_clave between 1 and 1),<BR> =
lapso_entre_marcaciones=20
numeric(2) &nb=
sp; =20
not null,<BR> imprimir_auditoria =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (imprimir_auditoria in ('''S''<BR>','N')),<BR> =20
tiempo_conexion =
smallint,<BR> =20
monto_multa =20
numeric(19,4),<BR> primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.lapso_entre_marcaciones is 'Lapso Entre=20
Marcaciones'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_asistencia.imprimir_auditoria is 'Imprimir=20
Auditor=EDa'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parametros_codigos &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parametros_codigos<BR>(<BR> =20
solo_clave =20
smallint  =
; =20
not null<BR> check =
(solo_clave between 1 and 1),<BR> =20
salario_minimo =20
numeric(13,2),<BR> codigo_novedad_ips =20
integer<BR> check=20
(codigo_novedad_ips is null or (codigo_novedad_ips between 1 and 9999=20
)),<BR> codigo_novedad_bf =20
integer<BR> check=20
(codigo_novedad_bf is null or (codigo_novedad_bf between 1 and 9999=20
)),<BR> =
maxima_edad_bf =20
tinyint<BR> check=20
(maxima_edad_bf is null or (maxima_edad_bf between 1 and 150=20
)),<BR> maximo_salario_bf =20
numeric(13,2),<BR> codigo_novedad_hn =
integer<BR> check=20
(codigo_novedad_hn is null or (codigo_novedad_hn between 1 and 9999=20
)),<BR> codigo_novedad_he30 =20
integer<BR> check=20
(codigo_novedad_he30 is null or (codigo_novedad_he30 between 1 and 9999=20
)),<BR> codigo_novedad_he50 =20
integer<BR> check=20
(codigo_novedad_he50 is null or (codigo_novedad_he50 between 1 and 9999=20
)),<BR> codigo_novedad_he100=20
integer<BR> check=20
(codigo_novedad_he100 is null or (codigo_novedad_he100 between 1 and =
9999=20
)),<BR> codigo_novedad_vacaciones=20
integer<BR> check=20
(codigo_novedad_vacaciones is null or (codigo_novedad_vacaciones between =
1 and=20
9999 )),<BR> codigo_novedad_dt =20
integer<BR> check=20
(codigo_novedad_dt is null or (codigo_novedad_dt between 1 and 9999=20
)),<BR> porcentaje_patronal_ips=20
numeric(6,2),<BR> porcentaje_obrero_ips=20
numeric(6,2),<BR> codigo_novedad_ap =20
integer<BR> check=20
(codigo_novedad_ap is null or (codigo_novedad_ap between 1 and 9999=20
)),<BR> =20
redondeo  =
; =20
numeric(2),<BR> =20
mayor_de_edad =20
tinyint<BR> check=20
(mayor_de_edad is null or (mayor_de_edad between 1 and 150=20
)),<BR> adelanto_aguinaldo =20
integer<BR> check=20
(adelanto_aguinaldo is null or (adelanto_aguinaldo between 1 and 9999=20
)),<BR> codigo_novedad_indemnizacion=20
integer<BR> check=20
(codigo_novedad_indemnizacion is null or (codigo_novedad_indemnizacion =
between 1=20
and 9999 )),<BR> codigo_novedad_reposo=20
integer<BR> check=20
(codigo_novedad_reposo is null or (codigo_novedad_reposo between 1 and =
9999=20
)),<BR> =20
nro_de_cuenta =20
varchar(11),<BR> =20
cod_de_empresa =20
varchar(2),<BR> =20
supervisor =20
varchar(40),<BR> =20
gerente =
=20
varchar(40),<BR> =20
cargo &n=
bsp; =20
varchar(30),<BR> primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.salario_minimo is 'Salario =
Minimo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_ips is 'IPS'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_bf is 'Bonificaci=A2n=20
Familiar'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.maxima_edad_bf is 'Maxima edad =
BF'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.maximo_salario_bf is 'Maximo Salario=20
BF'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_hn is 'Horas =
Normales'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he30 is 'Horas Extras 30=20
%'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he50 is 'Horas Extras 50=20
%'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_he100 is 'Horas Extras 100=20
%'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_vacaciones is 'C=A2digo Novedad=20
Vacaciones'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_dt is 'D=A1as =
Trabajados'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.porcentaje_patronal_ips is 'Porcentaje Patronal=20
IPS'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.porcentaje_obrero_ips is 'Porcentaje Obrero=20
IPS'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.codigo_novedad_ap is 'Aguinaldo=20
Proporcional'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.redondeo is 'Redondeo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parametros_codigos.mayor_de_edad is 'Mayor de =
Edad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
parientes &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.parientes<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
apellido  =
; =20
varchar(20) &n=
bsp; =20
not null,<BR> =20
nombre &=
nbsp; =20
varchar(20) &n=
bsp; =20
not null,<BR> fecha_nacimiento =
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
sexo &nb=
sp; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(sexo=20
in ('''M''<BR>','F')),<BR> =20
parentezco =20
char &nb=
sp; &nbs=
p; =20
not null default =
'H'<BR> =20
check (parentezco in=20
('''P''<BR>','''M''<BR>','''C''<BR>','''H''<BR>','O')),<BR> &n=
bsp;=20
estado_civil =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (estado_civil in=20
('''S''<BR>','''C''<BR>','''D''<BR>','''V''<BR>','O')),<BR> &n=
bsp;=20
dependiente =20
char &nb=
sp; &nbs=
p; =20
not null default =
'S'<BR> =20
check (dependiente in ('''S''<BR>','N')),<BR> =20
profesion &nbs=
p;=20
integer =
=
not null<BR> check =
(profesion >=3D 1),<BR> =20
actividad &nbs=
p;=20
varchar(40),<BR> =20
nacionalidad =20
integer =
=
not null<BR> check =
(nacionalidad >=3D 1),<BR> =20
observacion =20
varchar(50),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parientes.numero_interno is 'N=A3mero interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.apellido is=20
'Apellido'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.parientes.fecha_nacimiento is 'Fecha Nacimiento'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.sexo is=20
'Sexo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.parentezco is=20
'Parentezco'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.estado_civil=20
is 'Estado Civil'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.dependiente=20
is 'Dependiente'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.profesion is=20
'Profesi=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.actividad is=20
'Actividad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.nacionalidad=20
is 'Nacionalidad'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.parientes.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcatcol  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.pbcatcol<BR>(<BR> =20
pbc_tnam  =
; =20
char(129) &nbs=
p; =20
not null,<BR> =20
pbc_tid =
=20
integer,<BR> =20
pbc_ownr  =
; =20
char(129) &nbs=
p; =20
not null,<BR> =20
pbc_cnam  =
; =20
char(129) &nbs=
p; =20
not null,<BR> =20
pbc_cid =
=20
smallint,<BR> =20
pbc_labl  =
; =20
char(254),<BR> =20
pbc_lpos  =
; =20
smallint,<BR> =20
pbc_hdr =
=20
char(254),<BR> =20
pbc_hpos  =
; =20
smallint,<BR> =20
pbc_jtfy  =
; =20
smallint,<BR> =20
pbc_mask  =
; =20
char(31),<BR> =20
pbc_case  =
; =20
smallint,<BR> =20
pbc_hght  =
; =20
smallint,<BR> =20
pbc_wdth  =
; =20
smallint,<BR> =20
pbc_ptrn  =
; =20
char(31),<BR> =20
pbc_bmap  =
; =20
char,<BR> =20
pbc_init  =
; =20
char(254),<BR> =20
pbc_cmnt  =
; =20
char(254),<BR> =20
pbc_edit  =
; =20
char(31),<BR> =20
pbc_tag =
=20
char(254),<BR> primary key (pbc_tnam, pbc_ownr,=20
pbc_cnam)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcatedt  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.pbcatedt<BR>(<BR> =20
pbe_name  =
; =20
char(30)  =
; =20
not null,<BR> =20
pbe_edit  =
; =20
char(254),<BR> =20
pbe_type  =
; =20
smallint,<BR> =20
pbe_cntr  =
; =20
integer,<BR> =20
pbe_seqn  =
; =20
smallint  =
; =20
not null,<BR> =20
pbe_flag  =
; =20
integer,<BR> =20
pbe_work  =
; =20
char(32),<BR> primary key (pbe_name,=20
pbe_seqn)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcatfmt  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.pbcatfmt<BR>(<BR> =20
pbf_name  =
; =20
char(30)  =
; =20
not null,<BR> =20
pbf_frmt  =
; =20
char(254),<BR> =20
pbf_type  =
; =20
smallint,<BR> =20
pbf_cntr  =
; =20
integer,<BR> primary key =
(pbf_name)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcattbl  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.pbcattbl<BR>(<BR> =20
pbt_tnam  =
; =20
char(129) &nbs=
p; =20
not null,<BR> =20
pbt_tid =
=20
integer,<BR> =20
pbt_ownr  =
; =20
char(129) &nbs=
p; =20
not null,<BR> =20
pbd_fhgt  =
; =20
smallint,<BR> =20
pbd_fwgt  =
; =20
smallint,<BR> =20
pbd_fitl  =
; =20
char,<BR> =20
pbd_funl  =
; =20
char,<BR> =20
pbd_fchr  =
; =20
smallint,<BR> =20
pbd_fptc  =
; =20
smallint,<BR> =20
pbd_ffce  =
; =20
char(18),<BR> =20
pbh_fhgt  =
; =20
smallint,<BR> =20
pbh_fwgt  =
; =20
smallint,<BR> =20
pbh_fitl  =
; =20
char,<BR> =20
pbh_funl  =
; =20
char,<BR> =20
pbh_fchr  =
; =20
smallint,<BR> =20
pbh_fptc  =
; =20
smallint,<BR> =20
pbh_ffce  =
; =20
char(18),<BR> =20
pbl_fhgt  =
; =20
smallint,<BR> =20
pbl_fwgt  =
; =20
smallint,<BR> =20
pbl_fitl  =
; =20
char,<BR> =20
pbl_funl  =
; =20
char,<BR> =20
pbl_fchr  =
; =20
smallint,<BR> =20
pbl_fptc  =
; =20
smallint,<BR> =20
pbl_ffce  =
; =20
char(18),<BR> =20
pbt_cmnt  =
; =20
char(254),<BR> primary key (pbt_tnam,=20
pbt_ownr)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
pbcatvld  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.pbcatvld<BR>(<BR> =20
pbv_name  =
; =20
char(30)  =
; =20
not null,<BR> =20
pbv_vald  =
; =20
char(254),<BR> =20
pbv_type  =
; =20
smallint,<BR> =20
pbv_cntr  =
; =20
integer,<BR> =20
pbv_msg =
=20
char(254),<BR> primary key =
(pbv_name)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
permisos  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.permisos<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
desde &n=
bsp; =20
timestamp &nbs=
p; =20
not null,<BR> =20
hasta &n=
bsp; =20
timestamp &nbs=
p; =20
not null,<BR> =20
observacion =20
varchar(40),<BR> =20
autorizo  =
; =20
integer =
=
not null<BR> check =
(autorizo >=3D 1),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.numero_interno=20
is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.desde is=20
'Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.hasta is=20
'Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.observacion is=20
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.permisos.autorizo is=20
'Autoriz=A2'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.permisos.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.permisos.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
politica_vacacional_empleado &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.politica_vacacional_empleado<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
politica  =
; =20
smallint  =
; =20
not null<BR> check =
(politica >=3D 1),<BR> =20
desde_fecha =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
observacion =20
varchar(256),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key =
(legajo,=20
politica)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.politica is =
'Pol=A1tica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.desde_fecha is 'Desde =
Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politica_vacacional_empleado.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
politicas_vacacionales &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.politicas_vacacionales<BR>(<BR> =20
politica  =
; =20
smallint  =
; =20
not null<BR> check =
(politica >=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> primary key =
(politica)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacacionales.politica is 'Pol=A1tica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacacionales.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
politicas_vacionales_detalles &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.politicas_vacionales_detalles<BR>(<BR> =20
politica  =
; =20
smallint  =
; =20
not null<BR> check =
(politica >=3D 1),<BR> =20
anos &nb=
sp; =20
numeric(2) &nb=
sp; =20
not null<BR> check =
(anos=20
between 1 and 99),<BR> dias_de_vacaciones =20
tinyint,<BR> primary key (politica,=20
anos)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.politica is =
'Pol=EDtica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.anos is 'A=F1os'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.politicas_vacionales_detalles.dias_de_vacaciones is 'D=EDas de=20
Vacaciones'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
problemas &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.problemas<BR>(<BR> =20
empleado  =
; =20
integer,<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> =20
apellido  =
; =20
varchar(40)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
proceso_fechas  =
; =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.proceso_fechas<BR>(<BR> =20
solo_clave =20
smallint  =
; =20
not null<BR> check =
(solo_clave between 1 and 9),<BR> =20
fecha_proceso =20
date,<BR> =20
anio &nb=
sp; =20
smallint<BR> check =
(anio=20
is null or (anio between 1900 and 2500 )),<BR> =20
mes &nbs=
p; =20
tinyint<BR> check =
(mes is=20
null or (mes between 1 and 12 )),<BR> =20
descripcion =20
varchar(40),<BR> primary key=20
(solo_clave)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.proceso_fechas.solo_clave is 'Solo Clave'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.proceso_fechas.fecha_proceso is 'Fecha Proceso'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.proceso_fechas.anio is=20
'A=A4o'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.proceso_fechas.mes is=20
'Mes'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
profesiones &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.profesiones<BR>(<BR> =20
profesion &nbs=
p;=20
integer =
=
not null<BR> check =
(profesion >=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> primary key=20
(profesion)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.profesiones.profesion=20
is 'Profesi=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.profesiones.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
reconocimientos_y_premios =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.reconocimientos_y_premios<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
motivo &=
nbsp; =20
varchar(40),<BR> =20
otorgado_por =20
varchar(40),<BR> =20
premio &=
nbsp; =20
varchar(40),<BR> =20
observacion =20
varchar(256),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.motivo is 'Motivo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.otorgado_por is 'Otorgado =
Por'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.premio is 'Premio'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.reconocimientos_y_premios.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
referencias &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.referencias<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
referenciante =20
varchar(40),<BR> nombre_referencia =20
char &nb=
sp; &nbs=
p; =20
not null default =
'H'<BR> =20
check (nombre_referencia in=20
('''P''<BR>','''M''<BR>','''C''<BR>','''H''<BR>','O')),<BR> &n=
bsp;=20
direccion &nbs=
p;=20
varchar(50),<BR> =20
telefono  =
; =20
varchar(40),<BR> =20
resultado &nbs=
p;=20
varchar(80),<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.referenciante is 'Referenciante'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.referencias.nombre_referencia is 'Parentezco'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.direccion=20
is 'Direcci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.telefono is=20
'Tel=82fono'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.referencias.resultado=20
is 'Resultado'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
relaciones_otros_empleados  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.relaciones_otros_empleados<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> legajo_referencia =20
integer =
=
not null<BR> check =
(legajo_referencia >=3D 1),<BR> =20
observacion =20
varchar(50),<BR> primary key (legajo,=20
legajo_referencia)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.legajo_referencia is 'Legajo=20
Relaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.relaciones_otros_empleados.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
religiones &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.religiones<BR>(<BR> =20
religion  =
; =20
integer =
=
not null,<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(religion)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.religiones.religion is=20
'Religi=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.religiones.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
sanciones &nbs=
p;  =
; =
=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.sanciones<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
motivo &=
nbsp; =20
varchar(40),<BR> =
suspencion_desde =20
timestamp,<BR> =
suspencion_hasta =20
timestamp,<BR> =20
observacion =20
varchar(256),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.fecha is=20
'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.motivo is=20
'Motivo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.suspencion_desde is 'Suspenci=A2n Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.suspencion_hasta is 'Suspenci=A2n Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sanciones.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sanciones.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
sueldos =
&=
nbsp; &n=
bsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.sueldos<BR>(<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
fecha_vigencia =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
tipo_sueldo =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(tipo_sueldo in=20
('''M''<BR>','''J''<BR>','''H''<BR>','''D''<BR>','O')),<BR> &n=
bsp;=20
salario =
=20
numeric(13,2) =
=20
not null,<BR> =20
monto_adelanto =20
numeric(13,2),<BR> usuario_insercion =
varchar(30) &n=
bsp; =20
not null default current user,<BR> =20
fecha_insercion =
timestamp,<BR> =20
usuario_modificacion=20
varchar(30) &n=
bsp; =20
default current user,<BR> =
fecha_modificacion =20
timestamp,<BR> primary key (legajo,=20
planilla)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.planilla is=20
'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.fecha_vigencia=20
is 'Fecha Vigencia'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.tipo_sueldo is=20
'Tipo Sueldo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.salario is=20
'Monto'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.monto_adelanto=20
is 'Monto Adelanto'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.usuario_insercion is 'Usuario Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.sueldos.fecha_insercion=20
is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.usuario_modificacion is 'Usuario =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos.fecha_modificacion is 'Fecha =
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
sueldos_auditoria &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.sueldos_auditoria<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
planilla  =
; =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(planilla in=20
('''1''<BR>','''2''<BR>','''3''<BR>','''4''<BR>','''5''<BR>','''6''<BR>',=
'''7''<BR>','''8''<BR>','9')),<BR> =20
fecha_vigencia =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
tipo_sueldo =20
char &nb=
sp; &nbs=
p; =20
not null<BR> check =
(tipo_sueldo in=20
('''M''<BR>','''J''<BR>','''H''<BR>','''D''<BR>','O')),<BR> &n=
bsp;=20
salario =
=20
numeric(13,2),<BR> =20
monto_adelanto =20
numeric(13,2),<BR> usuario_insercion =
varchar(30) &n=
bsp; =20
not null,<BR> =
fecha_insercion =20
timestamp,<BR> usuario_modificacion=20
varchar(30),<BR> fecha_modificacion =20
timestamp,<BR> =20
fecha_registro =20
timestamp &nbs=
p; =20
default current timestamp,<BR> =20
usuario_registro =
varchar(30),<BR> =20
primary key (numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.numero_interno is =
'numero_interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.planilla is 'Planilla'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_vigencia is 'Fecha =
Vigencia'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.tipo_sueldo is 'Tipo Sueldo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.salario is 'Monto'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.monto_adelanto is 'Monto =
Adelanto'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_insercion is 'Fecha =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_modificacion is 'Usuario=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_modificacion is 'Fecha=20
Modificaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.fecha_registro is 'Fecha =
Registro'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.sueldos_auditoria.usuario_registro is 'Usuario =
Registro'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tareas_realizadas_empresa =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tareas_realizadas_empresa<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> =20
fecha &n=
bsp; =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
observacion =20
varchar(256) &=
nbsp; =20
not null,<BR> =
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> primary key=20
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.numero_interno is 'N=A3mero=20
Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.legajo is 'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.fecha is 'Fecha'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.observacion is =
'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.fecha_insercion is 'Fecha=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tareas_realizadas_empresa.usuario_insercion is 'Usuario=20
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_accidentes &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_accidentes<BR>(<BR> =20
tipo_accidente =20
smallint  =
; =20
not null<BR> check =
(tipo_accidente >=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key=20
(tipo_accidente)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_accidentes.tipo_accidente is 'Tipo =
Accidente'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.tipos_accidentes.nombre=20
is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_de_documentos =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_de_documentos<BR>(<BR> =20
tipo &nb=
sp; =20
integer =
=
not null,<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(tipo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_de_documentos.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_de_documentos.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
tipos_inasistencias =
&=
nbsp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.tipos_inasistencias<BR>(<BR> =20
tipo &nb=
sp; =20
smallint  =
; =20
not null<BR> check =
(tipo=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(tipo)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_inasistencias.tipo is 'Tipo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.tipos_inasistencias.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
turnos &=
nbsp; &n=
bsp; &nb=
sp; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.turnos<BR>(<BR> =20
turno &n=
bsp; =20
smallint  =
; =20
not null<BR> check =
(turno=20
>=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> =
siguiente_turno =20
smallint<BR> check =
(siguiente_turno is null or (siguiente_turno >=3D 1 =
)),<BR> =20
observacion =20
varchar(256),<BR> primary key =
(turno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.turno is=20
'Turno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.nombre is=20
'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.siguiente_turno=20
is 'Siguiente Turno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.turnos.observacion is=20
'Observaci=F3n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
ubicaciones &n=
bsp; &nb=
sp; &nbs=
p; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.ubicaciones<BR>(<BR> =20
ubicacion &nbs=
p;=20
integer =
=
not null,<BR> =20
descripcion =20
varchar(40) &n=
bsp; =20
not null,<BR> primary key =
(ubicacion)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
unidades_organicas &=
nbsp; &n=
bsp; &nb=
sp;=20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.unidades_organicas<BR>(<BR> =20
unidad_organica =20
integer =
=
not null<BR> check =
(unidad_organica >=3D 1),<BR> =20
nombre &=
nbsp; =20
varchar(40),<BR> =
centro_de_costo =20
integer =
=
not null<BR> check =
(centro_de_costo >=3D 1),<BR> primary key=20
(unidad_organica)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.unidad_organica is 'Unidad=20
Org nica'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.nombre is 'Nombre'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.unidades_organicas.centro_de_costo is 'Centro de =
Costo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2><BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>/*=20
Table :=20
vacaciones &nb=
sp; &nbs=
p;  =
; =20
*/<BR>/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/<BR>create=20
table sal.vacaciones<BR>(<BR> =20
numero_interno =20
integer =
=
not null default autoincrement,<BR> =20
legajo &=
nbsp; =20
integer =
=
not null<BR> check =
(legajo=20
>=3D 1),<BR> periodo_adquisitivo_desde=20
date &nb=
sp; &nbs=
p; =20
not null,<BR> periodo_adquisitivo_hasta=20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
vacacion_desde =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
vacacion_hasta =20
date &nb=
sp; &nbs=
p; =20
not null,<BR> =20
dias_tomados =20
numeric(6,2) &=
nbsp; =20
not null,<BR> =20
observacion =20
varchar(256),<BR> =20
fecha_insercion =20
timestamp &nbs=
p; =20
not null default current timestamp,<BR> =20
usuario_insercion =20
varchar(30) &n=
bsp; =20
not null default current user,<BR> =
fecha_reintegracion =20
date,<BR> primary key =
(numero_interno)<BR>)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.numero_interno is 'N=A3mero Interno'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.legajo is=20
'Legajo'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.periodo_adquisitivo_desde is 'Per=A1odo Adquisitivo=20
Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.periodo_adquisitivo_hasta is 'Per=A1odo Adquisitivo=20
Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.vacacion_desde is 'Vacaci=A2n Desde'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.vacacion_hasta is 'Vacaci=A2n Hasta'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.dias_tomados=20
is 'Dias Tomados'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column =
sal.vacaciones.observacion=20
is 'Observaci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.fecha_insercion is 'Fecha Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>comment on column=20
sal.vacaciones.usuario_insercion is 'Usuario =
Inserci=A2n'<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.actividades_ips<BR> add primary key (anio, mes, legajo,=20
empresa)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.bancos<BR> add=20
primary key (banco)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add primary key =
(legajo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades_auditoria<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.centros_de_costos<BR> add primary key=20
(centro_de_costo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.ciudades<BR> add=20
primary key (ciudad)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.costo_turno<BR> =20
add primary key (turno, desde, hasta)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cursos_y_seminarios<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.datos_de_la_empresa<BR> add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR> add primary key=20
(numero)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_detalles<BR> add primary key =
(numero,=20
cuota)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_tipos<BR> add primary key=20
(tipo_descuento)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR> add primary key (novedad, planilla, =
novedad_afectada)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.dias_trabajados<BR> add primary key =
(mes)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR> =20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR> add=20
primary key (legajo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR> add primary key (legajo, fecha,=20
turno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.feriados<BR> add=20
primary key (fecha)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.funciones<BR> add=20
primary key (funcion)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno<BR> add primary key (turno,=20
dia)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno_historico<BR> add primary key (fecha, =
turno,=20
dia)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.idiomas<BR> add=20
primary key (idioma)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR> add primary key (legajo,=20
idioma)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.imagenes<BR> add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR> =20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.liquidacion<BR> =20
add primary key (legajo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.lugares_de_trabajo<BR> add primary key=20
(lugar_de_trabajo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.marcacion_asistencia<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.novedades<BR> add=20
primary key (novedad)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_factores<BR> add primary key (novedad,=20
planilla)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos_auditoria<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_audit<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_copy<BR> add primary key (legajo, =
novedad,=20
planilla, numero_proceso)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_historico<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso_historico_copy<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.numeros_patronales<BR> add primary key=20
(numero)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.numeros_patronales_mjt<BR> add primary key=20
(codigo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otras_informaciones<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_conocimientos<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.paises<BR> add=20
primary key (pais)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.parametros_asistencia<BR> add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.parametros_codigos<BR> add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR> add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatcol<BR> add=20
primary key (pbc_tnam, pbc_ownr, pbc_cnam)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatedt<BR> add=20
primary key (pbe_name, pbe_seqn)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatfmt<BR> add=20
primary key (pbf_name)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcattbl<BR> add=20
primary key (pbt_tnam, pbt_ownr)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.pbcatvld<BR> add=20
primary key (pbv_name)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR> add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR> add primary key =
(legajo,=20
politica)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacacionales<BR> add primary key=20
(politica)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacionales_detalles<BR> add primary key =
(politica,=20
anos)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.proceso_fechas<BR> add primary key=20
(solo_clave)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.profesiones<BR> =20
add primary key (profesion)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.reconocimientos_y_premios<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.referencias<BR> =20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR> add primary key (legajo,=20
legajo_referencia)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.religiones<BR> =20
add primary key (religion)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sanciones<BR> add=20
primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sueldos<BR> add=20
primary key (legajo, planilla)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.sueldos_auditoria<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tareas_realizadas_empresa<BR> add primary key=20
(numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_accidentes<BR> add primary key=20
(tipo_accidente)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_de_documentos<BR> add primary key =
(tipo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tipos_inasistencias<BR> add primary key =
(tipo)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.turnos<BR> add=20
primary key (turno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.ubicaciones<BR> =20
add primary key (ubicacion)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.unidades_organicas<BR> add primary key=20
(unidad_organica)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.vacaciones<BR> =20
add primary key (numero_interno)<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR> add foreign key=20
fk_accident_ref_7223_tipos_ac =
(tipo_accidente)<BR> =20
references sal.tipos_accidentes=20
(tipo_accidente)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.accidentes_laborales<BR> add foreign key=20
fk_accident_ref_7230_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.actividades_ips<BR> add foreign key=20
fk_activida_ref_18360_empleado =
(legajo)<BR> =20
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key =
fk_cargos_u_bancos_su_bancos=20
(banco)<BR> references sal.bancos=20
(banco)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key=20
fk_cargos_u_empleados_empleado =
(legajo)<BR> =20
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
cascade<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key=20
fk_cargos_u_funciones_funcione =
(funcion)<BR> =20
references sal.funciones (funcion)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key=20
fk_cargos_u_ref_6109_lugares_=20
(lugar_de_trabajo)<BR> references=20
sal.lugares_de_trabajo =
(lugar_de_trabajo)<BR> on=20
update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key=20
fk_cargos_u_unidades__unidades=20
(unidad_organica)<BR> references=20
sal.unidades_organicas =
(unidad_organica)<BR> on=20
update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.costo_turno<BR> =20
add foreign key fk_costo_tu_ref_8012_novedade=20
(novedad)<BR> references sal.novedades=20
(novedad)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cursos_y_seminarios<BR> add foreign key=20
fk_cursos_y_ref_7139_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_detalles<BR> add foreign key=20
fk_descuent_descuento_descuent =
(numero)<BR> =20
references sal.descuentos_diferidos =
(numero)<BR> =20
on update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR> add foreign key=20
fk_descuent_descuento_descuent=20
(tipo_descuento)<BR> references=20
sal.descuentos_diferidos_tipos=20
(tipo_descuento)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos<BR> add foreign key=20
fk_descuent_empleados_empleado =
(legajo)<BR> =20
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_diferidos_tipos<BR> add foreign key=20
fk_descuent_ref_6492_novedade=20
(novedad_descuento)<BR> references =
sal.novedades=20
(novedad)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR> add foreign key=20
fk_descuent_ref_6506_novedade =
(novedad)<BR> =20
references sal.novedades_factores =
(novedad)<BR> on=20
update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.descuentos_fijos<BR> add foreign key=20
fk_descuent_ref_6511_novedade (novedad_afectada,=20
planilla)<BR> references =
sal.novedades_factores=20
(novedad, planilla)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR> =20
add foreign key fk_domicili_ref_6104_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR> =20
add foreign key fk_domicili_ref_7036_ciudades=20
(ciudad)<BR> references sal.ciudades=20
(ciudad)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.domicilios<BR> =20
add foreign key fk_domicili_ref_7039_paises=20
(pais)<BR> references sal.paises=20
(pais)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR> add=20
foreign key fk_empleado_ciudades__ciudades=20
(lugar_nacimiento)<BR> references =
sal.ciudades=20
(ciudad)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR> add=20
foreign key fk_empleado_paises_em_paises=20
(nacionalidad)<BR> references sal.paises=20
(pais)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR> add=20
foreign key fk_empleado_profesion_profesio=20
(profesion)<BR> references sal.profesiones =
(profesion)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.empleados<BR> add=20
foreign key fk_empleado_ref_7113_religion=20
(religion)<BR> references sal.religiones=20
(religion)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR> add foreign key=20
fk_empleado_ref_7949_turnos (turno)<BR> =
references=20
sal.turnos (turno)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.empleados_por_turno<BR> add foreign key=20
fk_empleado_ref_7952_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR> add foreign key=20
fk_experien_ref_7031_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR> add foreign key=20
fk_experien_ref_7042_paises (pais)<BR> =
references=20
sal.paises (pais)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.experiencia_laboral<BR> add foreign key=20
fk_experien_ref_7046_ciudades (ciudad)<BR> =
references sal.ciudades (ciudad)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR> add foreign key=20
fk_formacio_ref_7052_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.formacion_academica<BR> add foreign key=20
fk_formacio_ref_7055_paises (pais)<BR> =
references=20
sal.paises (pais)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horarios_por_turno<BR> add foreign key=20
fk_horarios_ref_23335_turnos (turno)<BR> =20
references sal.turnos (turno)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR> add foreign key=20
fk_horas_ex_ref_7965_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR> add foreign key=20
fk_horas_ex_ref_7968_empleado =
(autorizo)<BR> =20
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.horas_extras_autorizadas<BR> add foreign key=20
fk_horas_ex_ref_8000_novedade =
(novedad)<BR> =20
references sal.novedades (novedad)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR> add foreign key=20
fk_idiomas__ref_6098_idiomas (idioma)<BR> =20
references sal.idiomas (idioma)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.idiomas_empleado<BR> add foreign key=20
fk_idiomas__ref_6101_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.imagenes<BR> add=20
foreign key fk_imagenes_ref_10494_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR> =20
add foreign key fk_inasiste_ref_7183_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.inasistencias<BR> =20
add foreign key fk_inasiste_ref_7227_tipos_in=20
(tipo_inasistencia)<BR> references=20
sal.tipos_inasistencias (tipo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR> add foreign key=20
fk_novedade_ref_6066_sueldos (legajo)<BR> =20
references sal.sueldos (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR> add foreign key=20
fk_novedade_ref_6071_sueldos (legajo)<BR> =20
references sal.sueldos (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_modelos<BR> add foreign key=20
fk_novedade_ref_6473_novedade (novedad, planilla,=20
planilla)<BR> references =
sal.novedades_factores=20
(novedad, planilla, planilla)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_proceso<BR> add foreign key=20
fk_novedade_ref_6478_novedade (novedad, planilla,=20
planilla)<BR> references =
sal.novedades_factores=20
(novedad, planilla, planilla)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.novedades_factores<BR> add foreign key=20
fk_novedade_ref_7997_novedade =
(novedad)<BR> =20
references sal.novedades (novedad)<BR> on =
update=20
restrict<BR> on delete =
cascade<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otras_informaciones<BR> add foreign key=20
fk_otras_in_ref_7128_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_conocimientos<BR> add foreign key=20
fk_otros_co_ref_7063_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR> add foreign key=20
fk_otros_do_ref_6534_tipos_de (tipo)<BR> =20
references sal.tipos_de_documentos =
(tipo)<BR> on=20
update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.otros_documentos_empleado<BR> add foreign key=20
fk_otros_do_ref_6540_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR> add=20
foreign key fk_pariente_empleados_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
cascade<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR> add=20
foreign key fk_pariente_paises_pa_paises=20
(nacionalidad)<BR> references sal.paises=20
(pais)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.parientes<BR> add=20
foreign key fk_pariente_ref_7117_profesio=20
(profesion)<BR> references sal.profesiones =
(profesion)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR> add=20
foreign key fk_permisos_ref_7898_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.permisos<BR> add=20
foreign key fk_permisos_ref_7901_empleado=20
(autorizo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politicas_vacionales_detalles<BR> add foreign key=20
fk_politica_ref_5595_politica =
(politica)<BR> =20
references sal.politicas_vacacionales=20
(politica)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR> add foreign key=20
fk_politica_ref_7197_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.politica_vacacional_empleado<BR> add foreign key=20
fk_politica_ref_7200_politica =
(politica)<BR> =20
references sal.politicas_vacacionales=20
(politica)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.reconocimientos_y_premios<BR> add foreign key=20
fk_reconoci_ref_7155_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.referencias<BR> =20
add foreign key fk_referenc_ref_7076_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR> add foreign key=20
fk_relacion_ref_7096_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
cascade<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.relaciones_otros_empleados<BR> add foreign key=20
fk_relacion_ref_7099_empleado=20
(legajo_referencia)<BR> references =
sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
cascade<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sanciones<BR> add=20
foreign key fk_sancione_ref_7165_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.sueldos<BR> add=20
foreign key fk_sueldos_ref_6032_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.tareas_realizadas_empresa<BR> add foreign key=20
fk_tareas_r_ref_7241_empleado (legajo)<BR> =
references sal.empleados (legajo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.turnos<BR> add=20
foreign key fk_turnos_ref_7939_turnos=20
(siguiente_turno)<BR> references =
sal.turnos=20
(turno)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key fk_ubicaciones=20
(ubicacion)<BR> references sal.ubicaciones =
(ubicacion)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.unidades_organicas<BR> add foreign key=20
fk_unidades_centros_d_centros_=20
(centro_de_costo)<BR> references=20
sal.centros_de_costos =
(centro_de_costo)<BR> on=20
update restrict<BR> on delete=20
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table =
sal.vacaciones<BR> =20
add foreign key fk_vacacion_ref_7211_empleado=20
(legajo)<BR> references sal.empleados=20
(legajo)<BR> on update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2><BR>alter table=20
sal.cargos_unidades<BR> add foreign key =
numeros_patronales_mjt=20
(codigo_numero_mjt)<BR> references=20
sal.numeros_patronales_mjt (codigo)<BR> on =
update=20
restrict<BR> on delete =
restrict<BR>/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DCourier=20
size=3D2>____________________________________________________<BR>Sandrigo=
Lezcano=20
Jara &nb=
sp;=20
Asunci=F3n, Paraguay<BR>usando______: Ret Hat 7.2 (Enigma) - Kernel =
2.4.7-10=20
<BR> &nb=
sp; =20
PostgreSQL 7.1.3 - psqlODBC 7.02.00.01<BR>migrando____: Sybase =
6.5 =20
al PostgreSQL <BR>front end___: PowerBuilder=20
6.5 =20
<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DICQ:143590717=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>_________=
___________________________________________</FONT></DIV></BODY></HTML>
------=_NextPart_000_0048_01C32137.96D70E20--