Upload
milagros-chancafe
View
10
Download
6
Embed Size (px)
DESCRIPTION
ejemplos para la elaboración en los SGBD (postgreSQL, MySQL, SQL Server, etc.)
Citation preview
cliente
codigo_cliente: serial NOT NULL
apellidos: character varying(40) NOT NULL
nombres: character varying(20) NOT NULL
direccion: character varying(50) NOT NULL
telefono: character varying(20) NOT NULL
linea_credito: numeric(14,2) NOT NULL
prestamo
numero_prestamo: integer NOT NULL
codigo_cliente: integer NOT NULL (FK)
codigo_credito: integer NOT NULL (FK)
codigo_tipo_credito: integer NOT NULL (FK)
fecha: date NOT NULL
importe: numeric(10,2) NOT NULL
numero_cuotas: integer NOT NULL
codigo_usuario: integer NOT NULL (FK)
fecha_registro: date NOT NULL
hora_registro: time with time zone NOT NULL
estado: char(1) NOT NULL
usuario
codigo_usuario: integer NOT NULL
nombre: character varying(70) NOT NULL
correo: character varying(50) NOT NULL
clave: char(32) NOT NULL
estado: char(1) NOT NULL
cuota_prestamo
numero_prestamo: integer NOT NULL (FK)
numero_cuota: integer NOT NULL
fecha_vencimiento_cuota: date NOT NULL
importe_cuota: numeric(7,2) NOT NULL
credito
codigo_credito: serial NOT NULL
codigo_tipo_credito: integer NOT NULL (FK)
nombre: character varying(100) NOT NULL
tipo_credito
codigo_tipo_credito: serial NOT NULL
nombre: character varying(20) NOT NULL