Diagrama de Clases
El diagrama de clases UML muestra la estructura estática de las clases en el backend de TECOCINAMOS, sus atributos y relaciones entre ellas.
Descripción de las Clases
-
Usuario
- id: Integer
- nombre: String
- email: String
- contrasena: String
- telefono: String
- direccion: String
- eliminado: Boolean
- fechaEliminado: LocalDate
- rol: Rol
- pedidos: List<Pedido>
-
Rol
- id: Integer
- nombreRol: String
- usuarios: List<Usuario>
-
Plato
- id: Integer
- nombrePlato: String
- cantidad: String
- precio: BigDecimal
- stock: Integer
- preparacionCasa: String
- recomendaciones: String
- fechaActualizacion: LocalDateTime
- categoria: Categoria
- ingredientes: List<PlatoIngrediente>
- imageBaseName: String
-
Categoria
- id: Integer
- nombre: String
- platos: List<Plato>
-
Ingrediente
- id: Integer
- nombre: String
- categoria: String
- cantidadEnvase: BigDecimal
- unidadEnvase: String
- precioEnvase: BigDecimal
- precioUnitario: BigDecimal
- unidad: String
- proveedor: Proveedor
- platos: List<PlatoIngrediente>
- alergenos: List<IngredienteAlergeno>
-
Proveedor
- id: Integer
- nombre: String
- contacto: String
- telefono: String
- email: String
- ingredientes: List<Ingrediente>
-
Alergeno
- id: Integer
- nombre: String
- ingredientes: List<IngredienteAlergeno>
-
IngredienteAlergeno
- id: Integer
- ingrediente: Ingrediente
- alergeno: Alergeno
-
PlatoIngrediente
- id: Integer
- plato: Plato
- ingrediente: Ingrediente
- cantidadUsada: BigDecimal
- unidad: String
-
Estado
- id: Integer
- nombre: String
- pedidos: List<Pedido>
-
Pedido
- id: Integer
- usuario: Usuario
- estado: Estado
- fechaCreado: LocalDate
- fechaEntrega: LocalDate
- direccionEntrega: String
- fechaActualizacion: LocalDateTime
- detalles: List<DetallesPedido>
-
DetallesPedido
- id: Integer
- pedido: Pedido
- plato: Plato
- cantidadPlato: Integer
- descuento: BigDecimal
-
LogAuditoria
- id: Integer
- entidad: String
- campoModificado: String
- valorAnterior: String
- valorNuevo: String
- fecha: LocalDateTime
- accion: String
- usuarioAdmin: Usuario