proyectos:mini_proyecto_control_estacionamiento
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
| proyectos:mini_proyecto_control_estacionamiento [2025/09/08 05:29] – [Base de datos] admin | proyectos:mini_proyecto_control_estacionamiento [2026/04/30 05:48] (actual) – [PostgresSQL] admin | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| - | ====== Mini Proyecto Control Estacionamiento ====== | + | ====== Mini Proyecto Control |
| - | Esta es la resolución de la prueba sobre hacer un mini sistema de estacionamiento con SQL SERVER y WINAPI con C Sharp, yo he querido usar VUE.js y bootstrap, además tenga una versión PHP y PostgreSQL | + | Este es un mini sistema de estacionamiento con SQL SERVER y WINAPI con C Sharp, yo he querido usar VUE.js y bootstrap, además tenga una versión |
| Funciones: | Funciones: | ||
| Línea 24: | Línea 24: | ||
| Usuarios <|-- Clientes | Usuarios <|-- Clientes | ||
| Autos o-- Clientes | Autos o-- Clientes | ||
| + | |||
| + | Autos <|-- TipoVehiculos | ||
| + | Clientes< | ||
| + | Empleados <|-- TipoEmpleados | ||
| + | |||
| Plazas o-- Playas | Plazas o-- Playas | ||
| Línea 36: | Línea 41: | ||
| Usuarios <|-- Empleados | Usuarios <|-- Empleados | ||
| + | |||
| + | |||
| + | CuentaPagos <|-- Tarifas | ||
| class Clientes{ | class Clientes{ | ||
| Integer IdCliente | Integer IdCliente | ||
| + | SmallInt IdTipoCliente | ||
| String Nombre | String Nombre | ||
| smallInt TipoDocumento | smallInt TipoDocumento | ||
| Línea 49: | Línea 58: | ||
| | | ||
| | | ||
| + | | ||
| | | ||
| | | ||
| Línea 57: | Línea 67: | ||
| Class Usuarios{ | Class Usuarios{ | ||
| - | | + | IdUsuario |
| - | | + | -- |
| - | | + | IdCliente |
| - | | + | IdEmpleado |
| - | | + | IdTipoUsuario |
| - | | + | Usuario |
| - | | + | Password |
| + | NombreCompleto | ||
| + | Estado | ||
| } | } | ||
| Línea 106: | Línea 118: | ||
| Class CuentaPagos{ | Class CuentaPagos{ | ||
| Integer IdCuentaPago | Integer IdCuentaPago | ||
| + | Integer IdTarifa | ||
| Integer IdPlazaUso | Integer IdPlazaUso | ||
| Integer IdUsuario | Integer IdUsuario | ||
| Línea 111: | Línea 124: | ||
| Numeric Monto | Numeric Monto | ||
| SmallInt Estado | SmallInt Estado | ||
| + | } | ||
| + | |||
| + | Class Tarifas{ | ||
| + | Integer IdTarifa | ||
| + | Integer PorHoras | ||
| + | Integer PorVecesUso | ||
| + | Integer PorTipoVehiculo | ||
| + | Integer PorTipoCliente | ||
| + | Integer PorIdCliente | ||
| + | Integer PorPlaza | ||
| + | Integer PorZona | ||
| + | DateTime FechaIni | ||
| + | DateTime FechaFin | ||
| + | Numeric Monto | ||
| + | Numeric DescuentoPorcentaje | ||
| + | Numeric DescuentoMonto | ||
| + | SmallInt Estado | ||
| + | } | ||
| + | |||
| + | Class TipoEmpleados{ | ||
| + | SmallInt IdTipoEmpleado | ||
| + | String Nombre | ||
| + | } | ||
| + | |||
| + | |||
| + | Class TipoClientes{ | ||
| + | SmallInt IdTipoCliente | ||
| + | String Nombre | ||
| + | } | ||
| + | |||
| + | Class TipoVehiculos{ | ||
| + | SmallInt IdTipoVehiculo | ||
| + | String Nombre | ||
| } | } | ||
| Línea 116: | Línea 162: | ||
| </ | </ | ||
| - | ==== MS SQL Server ==== | ||
| ==== PostgresSQL ==== | ==== PostgresSQL ==== | ||
| + | Crea usuario y la base de datos: | ||
| + | <code postgresql> | ||
| + | |||
| + | CREATE USER userestaciona WITH PASSWORD '< | ||
| + | |||
| + | CREATE DATABASE estaciona_APP; | ||
| + | |||
| + | GRANT ALL PRIVILEGES ON DATABASE estaciona_APP TO userestaciona; | ||
| + | |||
| + | </ | ||
| + | |||
| + | Prepara las tablas y relaciones: | ||
| + | <code postgresql> | ||
| + | |||
| + | --Usuarios | ||
| + | |||
| + | create table usuarios( | ||
| + | IdUsuario Integer generated by default as identity primary key, | ||
| + | IdCliente Integer, | ||
| + | IdEmpleado Integer, | ||
| + | IdTipoUsuario smallint, | ||
| + | Usuario Varchar(30), | ||
| + | password Varchar(30), | ||
| + | NombreCompleto Varchar(100) , | ||
| + | Estado smallint | ||
| + | ) | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== MS SQL Server ==== | ||
proyectos/mini_proyecto_control_estacionamiento.1757309391.txt.gz · Última modificación: 2025/09/08 05:29 por admin
