Overview
The Product model represents the different types of dairy products that can be manufactured at establishments. Products are categorized into cheeses and milk products.TypeScript Definition
Fields
Unique identifier for the product. Auto-generated UUID.Database: Primary key, UUID format
Name of the dairy product.Examples:
- Cheeses: “Queso Mozzarella”, “Queso Parmesano”, “Queso Crema”
- Milk: “Leche Pasteurizada”, “Leche Descremada”, “Crema de Leche”
Category classification of the product.Enum Values:
quesos- Cheese productsleches- Milk and milk-based liquid products
Relationships
Example Response
Example: Minimal Response
Example: Product List by Category
Cheese Products
Milk Products
Usage Notes
Product Categories
Quesos (Cheeses)- Hard cheeses: Parmesano, Reggianito
- Semi-hard cheeses: Gouda, Cheddar
- Soft cheeses: Mozzarella, Ricotta, Crema
- Typically measured in kilograms (kg)
- Pasteurized milk (whole, semi-skimmed, skimmed)
- Cream products
- Yogurt and liquid dairy products
- Typically measured in liters (litros)
Product Catalog Management
- Products are global across all establishments
- Each establishment can produce any product from the catalog
- Product names should be descriptive and unique
- Categories enable filtered views and reports
Production Analytics
loteProduccionesrelationship enables product-specific analytics- Track total production volume per product
- Analyze cost trends over time for specific products
- Compare performance across different products
Typical Workflow
- System administrator or user creates product definitions
- Products become available for production batch creation
- Establishments create batches linked to specific products
- Production history accumulates in
loteProducciones
