┌──────────────────────┐ │CuentaPagos │ ├──────────────────────┤ │Integer IdCuentaPago │ │Integer IdTarifa │ │Integer IdPlazaUso │ │Integer IdUsuario │ │DateTime FechaRegistra│ │Numeric Monto │ │SmallInt Estado │ └──────────────────────┘ | | | ┌───────────────────────────┐ | │Tarifas │ ┌──────────────────────┐ ├───────────────────────────┤ │PlazasUso │ │Integer IdTarifa │ ├──────────────────────┤ │Integer PorHoras │ │Integer IdPlazaUso │ │Integer PorVecesUso │ │DateTime FechaRegistra│ │Integer PorTipoVehiculo │ │Integer IdPlaza │ │Integer PorTipoCliente │ │Integer IdUsuario │ │Integer PorIdCliente │ │Integer IdCliente │ │Integer PorPlaza │ │Integer IdEmpleado │ │Integer PorZona │ │Integer IdAuto │ │DateTime FechaIni │ │Datetime InicioUso │ │DateTime FechaFin │ │Datetime FinUso │ │Numeric Monto │ │SmallInt Estado │ │Numeric DescuentoPorcentaje│ └──────────────────────┘ │Numeric DescuentoMonto │ │SmallInt Estado │ └───────────────────────────┘ ┌───────────────────────────────────┐ ┌───────────────────────┐ │Usuarios │ │Autos │ ├───────────────────────────────────┤ ├───────────────────────┤ ┌───────────────┐ │IdUsuario : Integer «PK» «Identity»│ │Integer IdAuto │ │Plazas │ │-- │ │Integer IdCliente │ ├───────────────┤ │IdCliente : Integer «FK» │ │SmallInt IdTipoVehiculo│ │Integer IdPlaza│ │IdTipoUsuario : SmallInt │ │String Marca │ │Integer IdPlaya│ │Usuario : Varchar(30) │ │String Modelo │ │String Zona │ │Password : Varchar(30) │ │SmallInt AñoModelo │ │String Codigo │ │NombreCompleto : Varchar(100) │ │DateTime FechaIngreso │ │SmallInt Estado│ │Estado : SmallInt │ │String Observacion │ └───────────────┘ └───────────────────────────────────┘ └───────────────────────┘ ┌───────────────────────┐ ┌──────────────────────┐ │Empleados │ │Clientes │ ┌────────────────┐ ├───────────────────────┤ ├──────────────────────┤ ┌───────────────────────┐ │Playas │ │Integer IdEmpleado │ │Integer IdCliente │ │TipoVehiculos │ ├────────────────┤ │SmallInt IdTipoEmpleado│ │SmallInt IdTipoCliente│ ├───────────────────────┤ │Integer IdPlaya │ │String Nombre │ │String Nombre │ │SmallInt IdTipoVehiculo│ │String Ubigeo │ │String ApellidoPaterno │ │smallInt TipoDocumento│ │String Nombre │ │String Nombre │ │String ApellidoMaterno │ │String Documento │ └───────────────────────┘ │String Direccion│ │SmallInt TipoDocumento │ │Smallint Estado │ └────────────────┘ │String Documento │ └──────────────────────┘ └───────────────────────┘ | | | ┌───────────────────────┐ ┌──────────────────────┐ │TipoEmpleados │ │TipoClientes │ ├───────────────────────┤ ├──────────────────────┤ │SmallInt IdTipoEmpleado│ │SmallInt IdTipoCliente│ │String Nombre │ │String Nombre │ └───────────────────────┘ └──────────────────────┘