1
cliente codigo_cliente: serial N O T N U LL apellidos: charactervarying(40)N O T N U LL nom bres: charactervarying(20)N O T N U LL direccion: charactervarying(50)N O T N U LL telefono: charactervarying(20)N O T N U LL linea_credito: num eric(14,2)N O T N U LL prestamo num ero_prestam o: integerN O T N U LL codigo_cliente: integerN O T N U LL (FK) codigo_credito: integerN O T N U LL (FK) codigo_tipo_credito: integerN O T N U LL (FK) fecha: date N O T N U LL im porte: num eric(10,2)N O T N U LL num ero_cuotas: integerN O T N U LL codigo_usuario: integerN O T N U LL (FK) fecha_registro: date N O T N U LL hora_registro: tim e w ith tim e zone N O T N U LL estado: char(1)N O T N U LL usuario codigo_usuario: integerN O T N U LL nom bre: charactervarying(70)N O T N U LL correo: charactervarying(50)N O T N U LL clave: char(32)N O T N U LL estado: char(1)N O T N U LL cuota_prestamo num ero_prestam o: integerN O T N U LL (FK) num ero_cuota: integerN O T N U LL fecha_vencim iento_cuota: date N O T N U LL im porte_cuota: num eric(7,2)N O T N U LL credito codigo_credito: serial N O T N U LL codigo_tipo_credito: integerN O T N U LL (FK) nom bre: charactervarying(100)N O T N U LL tipo_credito codigo_tipo_credito: serial N O T N U LL nom bre: charactervarying(20)N O T N U LL

Modelo en tablas - base de datos

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