Buena tarde, soy nuevo en el tema de programacion y estoy buscando ayuda en cuanto a mi base de datos que es para mi proyecto final y la idea es simular un banco que cuenta con sus administradores, sus supervisores y sus empleados ademas de sus clientes.
esta es mi base de datos, me pueden dar una opinion en cuanto a su estructura
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 06-09-2015 a las 18:37:24
-- Versión del servidor: 5.5.24-log
-- Versión de PHP: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de datos: `creditos`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `administrativo`
--
CREATE TABLE IF NOT EXISTS `administrativo` (
`nombre_empleado` varchar(20) NOT NULL,
`privilegio` varchar(20) NOT NULL,
`usuario` varchar(15) NOT NULL,
`contraseña` varchar(15) NOT NULL,
PRIMARY KEY (`nombre_empleado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `capital`
--
CREATE TABLE IF NOT EXISTS `capital` (
`nombre_empleado` varchar(20) NOT NULL,
`fecha` date NOT NULL,
`inversion` smallint(10) NOT NULL,
`prestado` smallint(10) NOT NULL,
`recaudado` smallint(10) NOT NULL,
`gastos` smallint(10) NOT NULL,
`ajuste_a_favor` smallint(10) NOT NULL,
`ajuste_en_contra` smallint(10) NOT NULL,
`caja` smallint(10) NOT NULL,
PRIMARY KEY (`nombre_empleado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `cliente`
--
CREATE TABLE IF NOT EXISTS `cliente` (
`nombre_cliente` varchar(20) NOT NULL,
`apellido_cliente` varchar(20) NOT NULL,
`direccion_cliente` varchar(50) NOT NULL,
`telefono_cliente` smallint(20) NOT NULL,
`creacion_cliente` date NOT NULL,
PRIMARY KEY (`nombre_cliente`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `cobrador`
--
CREATE TABLE IF NOT EXISTS `cobrador` (
`nombre_empleado` varchar(20) NOT NULL,
`ubicacion` varchar(20) NOT NULL,
PRIMARY KEY (`nombre_empleado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `gastos`
--
CREATE TABLE IF NOT EXISTS `gastos` (
`nombre_empleado` varchar(20) NOT NULL,
`tipo_gasto` varchar(20) NOT NULL,
`valor_gasto` smallint(10) NOT NULL,
`descripcion` text NOT NULL,
PRIMARY KEY (`nombre_empleado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `prestamos`
--
CREATE TABLE IF NOT EXISTS `prestamos` (
`nombre_empleado` varchar(20) NOT NULL,
`nombre_cliente` varchar(20) NOT NULL,
`fecha_inicial` date NOT NULL,
`fecha_final` date NOT NULL,
`frecuencia_de_pago` varchar(15) NOT NULL,
`valor_prestamo` smallint(10) NOT NULL,
`numero_cuotas` int(2) NOT NULL,
`porcentaje` int(2) NOT NULL,
`valor_cuota` smallint(10) NOT NULL,
`valor_total_a_pagar` smallint(6) NOT NULL,
PRIMARY KEY (`nombre_empleado`,`nombre_cliente`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `recuados`
--
CREATE TABLE IF NOT EXISTS `recuados` (
`nombre_cliente` varchar(20) NOT NULL,
`valor_total_pagado` smallint(10) NOT NULL,
`saldo_total` smallint(10) NOT NULL,
`valor_pendiente_pago` smallint(10) NOT NULL,
`numero_cuotas_pagadas` int(2) NOT NULL,
`valor_recaudo` smallint(10) NOT NULL,
`total_abonado` smallint(10) NOT NULL,
`cuotas_pendientes_pago` int(2) NOT NULL,
PRIMARY KEY (`nombre_cliente`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `supervisor`
--
CREATE TABLE IF NOT EXISTS `supervisor` (
`nombre_empleado` varchar(20) NOT NULL,
`personas_a_cargo` varchar(20) NOT NULL,
PRIMARY KEY (`nombre_empleado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;