demo seed change 2

This commit is contained in:
Urtzi Alfaro
2025-12-14 11:58:14 +01:00
parent ff830a3415
commit a030bd14c8
44 changed files with 3093 additions and 977 deletions

View File

@@ -44,10 +44,10 @@
"location": "Barcelona Gràcia - Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-02-20T00:00:00Z",
"expiration_date": "BASE_TS + 35d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"batch_number": "BCN-HAR-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Barcelona"
},
@@ -59,10 +59,10 @@
"location": "Barcelona Gràcia - Cold Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-01-25T00:00:00Z",
"expiration_date": "BASE_TS + 9d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"batch_number": "BCN-MAN-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Barcelona"
},
@@ -74,10 +74,10 @@
"location": "Barcelona Gràcia - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-16T06:00:00Z",
"expiration_date": "BASE_TS + 1d",
"supplier_id": null,
"batch_number": "BCN-BAG-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Barcelona"
},
@@ -89,10 +89,10 @@
"location": "Barcelona Gràcia - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-16T08:00:00Z",
"expiration_date": "BASE_TS + 1d 2h",
"supplier_id": null,
"batch_number": "BCN-CRO-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Barcelona"
}
@@ -107,7 +107,7 @@
"unit_price": 2.85,
"total_revenue": 99.75,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venda local a Barcelona Gràcia - matí",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000003001"
@@ -119,9 +119,9 @@
"product_id": "20000000-0000-0000-0000-000000000002",
"quantity_sold": 18.0,
"unit_price": 3.95,
"total_revenue": 71.10,
"total_revenue": 71.1,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venda de croissants a Barcelona Gràcia",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000003002"
@@ -133,9 +133,9 @@
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 28.0,
"unit_price": 2.85,
"total_revenue": 79.80,
"total_revenue": 79.8,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venda de tarda a Barcelona Gràcia",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000003003"
@@ -148,11 +148,11 @@
"order_number": "ORD-BCN-GRA-20250115-001",
"customer_name": "Restaurant El Vaixell",
"customer_email": "comandes@elvaixell.cat",
"order_date": "2025-01-15T07:00:00Z",
"delivery_date": "2025-01-15T08:30:00Z",
"order_date": "BASE_TS + 1h",
"delivery_date": "BASE_TS + 2h 30m",
"status": "DELIVERED",
"total_amount": 99.75,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Comanda matinal per restaurant local",
"enterprise_location_order": true
},
@@ -162,11 +162,11 @@
"order_number": "ORD-BCN-GRA-20250115-002",
"customer_name": "Cafeteria La Perla",
"customer_email": "info@laperla.cat",
"order_date": "2025-01-15T06:30:00Z",
"delivery_date": "2025-01-15T09:00:00Z",
"order_date": "BASE_TS + 30m",
"delivery_date": "BASE_TS + 3h",
"status": "DELIVERED",
"total_amount": 71.10,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 71.1,
"created_at": "BASE_TS",
"notes": "Croissants per cafeteria",
"enterprise_location_order": true
},
@@ -176,11 +176,11 @@
"order_number": "ORD-BCN-GRA-20250114-003",
"customer_name": "Hotel Casa Fuster",
"customer_email": "compras@casafuster.com",
"order_date": "2025-01-14T14:00:00Z",
"delivery_date": "2025-01-14T17:00:00Z",
"order_date": "BASE_TS - 1d 8h",
"delivery_date": "BASE_TS - 1d 11h",
"status": "DELIVERED",
"total_amount": 79.80,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 79.8,
"created_at": "BASE_TS",
"notes": "Comanda de tarda per hotel",
"enterprise_location_order": true
}
@@ -195,13 +195,13 @@
"planned_quantity": 100.0,
"actual_quantity": 98.0,
"status": "COMPLETED",
"planned_start_time": "2025-01-15T04:00:00Z",
"actual_start_time": "2025-01-15T04:05:00Z",
"planned_end_time": "2025-01-15T06:00:00Z",
"actual_end_time": "2025-01-15T06:10:00Z",
"planned_start_time": "BASE_TS - 1d 22h",
"actual_start_time": "BASE_TS - 1d 22h 5m",
"planned_end_time": "BASE_TS",
"actual_end_time": "BASE_TS + 10m",
"equipment_id": "30000000-0000-0000-0000-000000000002",
"operator_id": "50000000-0000-0000-0000-000000000012",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Producció matinal de baguettes a Barcelona",
"enterprise_location_production": true
},
@@ -214,13 +214,13 @@
"planned_quantity": 50.0,
"actual_quantity": null,
"status": "IN_PROGRESS",
"planned_start_time": "2025-01-15T05:00:00Z",
"actual_start_time": "2025-01-15T05:00:00Z",
"planned_end_time": "2025-01-15T07:30:00Z",
"planned_start_time": "BASE_TS - 1d 23h",
"actual_start_time": "BASE_TS - 1d 23h",
"planned_end_time": "BASE_TS + 1h 30m",
"actual_end_time": null,
"equipment_id": "30000000-0000-0000-0000-000000000002",
"operator_id": "50000000-0000-0000-0000-000000000013",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Producció de croissants en curs a Barcelona",
"enterprise_location_production": true
}
@@ -230,11 +230,11 @@
"id": "80000000-0000-0000-0000-000000002001",
"tenant_id": "B0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 85.0,
"confidence_score": 0.91,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Previsió de demanda diària per Barcelona Gràcia",
"enterprise_location_forecast": true
},
@@ -242,13 +242,13 @@
"id": "80000000-0000-0000-0000-000000002002",
"tenant_id": "B0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000002",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 45.0,
"confidence_score": 0.89,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Previsió de croissants per demà a Barcelona",
"enterprise_location_forecast": true
}
]
}
}

View File

@@ -41,10 +41,10 @@
"location": "Madrid Centro - Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-02-15T00:00:00Z",
"expiration_date": "BASE_TS + 30d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"batch_number": "MAD-HAR-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Madrid"
},
@@ -56,10 +56,10 @@
"location": "Madrid Centro - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-16T06:00:00Z",
"expiration_date": "BASE_TS + 1d",
"supplier_id": null,
"batch_number": "MAD-BAG-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Madrid"
}
@@ -74,7 +74,7 @@
"unit_price": 2.75,
"total_revenue": 68.75,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta local en Madrid Centro",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000002001"

View File

@@ -44,10 +44,10 @@
"location": "Valencia Ruzafa - Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-02-18T00:00:00Z",
"expiration_date": "BASE_TS + 33d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"batch_number": "VLC-HAR-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia"
},
@@ -59,10 +59,10 @@
"location": "Valencia Ruzafa - Cold Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-01-23T00:00:00Z",
"expiration_date": "BASE_TS + 7d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"batch_number": "VLC-MAN-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia"
},
@@ -74,10 +74,10 @@
"location": "Valencia Ruzafa - Dry Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2026-01-15T00:00:00Z",
"expiration_date": "BASE_TS + 364d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000003",
"batch_number": "VLC-SAL-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia"
},
@@ -89,10 +89,10 @@
"location": "Valencia Ruzafa - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-16T06:00:00Z",
"expiration_date": "BASE_TS + 1d",
"supplier_id": null,
"batch_number": "VLC-BAG-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Valencia"
},
@@ -104,10 +104,10 @@
"location": "Valencia Ruzafa - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-17T06:00:00Z",
"expiration_date": "BASE_TS + 2d",
"supplier_id": null,
"batch_number": "VLC-PAN-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Valencia"
}
@@ -119,10 +119,10 @@
"sale_date": "2025-01-15T08:00:00Z",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 32.0,
"unit_price": 2.70,
"total_revenue": 86.40,
"unit_price": 2.7,
"total_revenue": 86.4,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta local en Valencia Ruzafa - mañana",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004001"
@@ -133,10 +133,10 @@
"sale_date": "2025-01-15T10:00:00Z",
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity_sold": 15.0,
"unit_price": 2.40,
"total_revenue": 36.00,
"unit_price": 2.4,
"total_revenue": 36.0,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta de pan de campo en Valencia",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004002"
@@ -147,10 +147,10 @@
"sale_date": "2025-01-14T18:30:00Z",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 24.0,
"unit_price": 2.70,
"total_revenue": 64.80,
"unit_price": 2.7,
"total_revenue": 64.8,
"sales_channel": "RETAIL",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta de tarde en Valencia Ruzafa",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004003"
@@ -163,11 +163,11 @@
"order_number": "ORD-VLC-RUZ-20250115-001",
"customer_name": "Mercado de Ruzafa - Puesto 12",
"customer_email": "puesto12@mercadoruzafa.es",
"order_date": "2025-01-15T06:30:00Z",
"delivery_date": "2025-01-15T08:00:00Z",
"order_date": "BASE_TS + 30m",
"delivery_date": "BASE_TS + 2h",
"status": "DELIVERED",
"total_amount": 86.40,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 86.4,
"created_at": "BASE_TS",
"notes": "Pedido matinal para puesto de mercado",
"enterprise_location_order": true
},
@@ -177,11 +177,11 @@
"order_number": "ORD-VLC-RUZ-20250115-002",
"customer_name": "Bar La Pilareta",
"customer_email": "pedidos@lapilareta.es",
"order_date": "2025-01-15T07:00:00Z",
"delivery_date": "2025-01-15T10:00:00Z",
"order_date": "BASE_TS + 1h",
"delivery_date": "BASE_TS + 4h",
"status": "DELIVERED",
"total_amount": 36.00,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 36.0,
"created_at": "BASE_TS",
"notes": "Pan de campo para bar tradicional",
"enterprise_location_order": true
},
@@ -191,11 +191,11 @@
"order_number": "ORD-VLC-RUZ-20250114-003",
"customer_name": "Restaurante La Riuà",
"customer_email": "compras@lariua.com",
"order_date": "2025-01-14T16:00:00Z",
"delivery_date": "2025-01-14T18:30:00Z",
"order_date": "BASE_TS - 1d 10h",
"delivery_date": "BASE_TS - 1d 12h 30m",
"status": "DELIVERED",
"total_amount": 64.80,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 64.8,
"created_at": "BASE_TS",
"notes": "Pedido de tarde para restaurante",
"enterprise_location_order": true
},
@@ -205,11 +205,11 @@
"order_number": "ORD-VLC-RUZ-20250116-004",
"customer_name": "Hotel Sorolla Palace",
"customer_email": "aprovisionamiento@sorollapalace.com",
"order_date": "2025-01-15T11:00:00Z",
"delivery_date": "2025-01-16T07:00:00Z",
"order_date": "BASE_TS + 5h",
"delivery_date": "BASE_TS + 1d 1h",
"status": "CONFIRMED",
"total_amount": 125.50,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 125.5,
"created_at": "BASE_TS",
"notes": "Pedido para desayuno buffet del hotel - entrega mañana",
"enterprise_location_order": true
}
@@ -224,13 +224,13 @@
"planned_quantity": 90.0,
"actual_quantity": 88.0,
"status": "COMPLETED",
"planned_start_time": "2025-01-15T03:30:00Z",
"actual_start_time": "2025-01-15T03:35:00Z",
"planned_end_time": "2025-01-15T05:30:00Z",
"actual_end_time": "2025-01-15T05:40:00Z",
"planned_start_time": "BASE_TS - 1d 21h 30m",
"actual_start_time": "BASE_TS - 1d 21h 35m",
"planned_end_time": "BASE_TS - 1d 23h 30m",
"actual_end_time": "BASE_TS - 1d 23h 40m",
"equipment_id": "30000000-0000-0000-0000-000000000003",
"operator_id": "50000000-0000-0000-0000-000000000013",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Producción matinal de baguettes en Valencia",
"enterprise_location_production": true
},
@@ -243,13 +243,13 @@
"planned_quantity": 40.0,
"actual_quantity": 40.0,
"status": "COMPLETED",
"planned_start_time": "2025-01-15T04:00:00Z",
"actual_start_time": "2025-01-15T04:00:00Z",
"planned_end_time": "2025-01-15T06:30:00Z",
"actual_end_time": "2025-01-15T06:25:00Z",
"planned_start_time": "BASE_TS - 1d 22h",
"actual_start_time": "BASE_TS - 1d 22h",
"planned_end_time": "BASE_TS + 30m",
"actual_end_time": "BASE_TS + 25m",
"equipment_id": "30000000-0000-0000-0000-000000000003",
"operator_id": "50000000-0000-0000-0000-000000000014",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Producción de pan de campo completada",
"enterprise_location_production": true
},
@@ -262,13 +262,13 @@
"planned_quantity": 120.0,
"actual_quantity": null,
"status": "SCHEDULED",
"planned_start_time": "2025-01-16T03:30:00Z",
"planned_start_time": "BASE_TS + 21h 30m",
"actual_start_time": null,
"planned_end_time": "2025-01-16T05:30:00Z",
"planned_end_time": "BASE_TS + 23h 30m",
"actual_end_time": null,
"equipment_id": "30000000-0000-0000-0000-000000000003",
"operator_id": "50000000-0000-0000-0000-000000000013",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Lote programado para mañana - pedido de hotel",
"enterprise_location_production": true
}
@@ -278,11 +278,11 @@
"id": "80000000-0000-0000-0000-000000003001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 78.0,
"confidence_score": 0.90,
"confidence_score": 0.9,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Previsión de demanda diaria para Valencia Ruzafa",
"enterprise_location_forecast": true
},
@@ -290,11 +290,11 @@
"id": "80000000-0000-0000-0000-000000003002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000003",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 35.0,
"confidence_score": 0.87,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Previsión de pan de campo para mañana",
"enterprise_location_forecast": true
},
@@ -302,13 +302,13 @@
"id": "80000000-0000-0000-0000-000000003003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "2025-01-17T00:00:00Z",
"forecast_date": "BASE_TS + 1d 18h",
"predicted_quantity": 95.0,
"confidence_score": 0.93,
"forecast_horizon_days": 2,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Previsión fin de semana - aumento de demanda esperado",
"enterprise_location_forecast": true
}
]
}
}

View File

@@ -9,7 +9,7 @@
"position": "CEO",
"phone": "+34 912 345 678",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"all_access",
@@ -27,7 +27,7 @@
"position": "Head of Production",
"phone": "+34 913 456 789",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"production_management",
@@ -45,7 +45,7 @@
"position": "Quality Assurance Manager",
"phone": "+34 914 567 890",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"quality_control",
@@ -63,7 +63,7 @@
"position": "Logistics Coordinator",
"phone": "+34 915 678 901",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"logistics_management",
@@ -81,7 +81,7 @@
"position": "Sales Director",
"phone": "+34 916 789 012",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"sales_management",
@@ -100,7 +100,7 @@
"position": "Procurement Manager",
"phone": "+34 917 890 123",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"procurement_management",
@@ -119,7 +119,7 @@
"position": "Maintenance Supervisor",
"phone": "+34 918 901 234",
"status": "ACTIVE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"last_login": "2025-01-15T06:00:00Z",
"permissions": [
"equipment_maintenance",

View File

@@ -14,7 +14,7 @@
"brand": "Molinos San José - Enterprise",
"unit_of_measure": "KILOGRAMS",
"package_size": null,
"average_cost": 0.80,
"average_cost": 0.8,
"last_purchase_price": null,
"standard_cost": null,
"low_stock_threshold": 500.0,
@@ -37,11 +37,15 @@
"nutritional_info": null,
"produced_locally": false,
"recipe_id": null,
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"created_by": "d2e3f4a5-b6c7-48d9-e0f1-a2b3c4d5e6f7",
"enterprise_shared": true,
"shared_locations": ["Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa"]
"shared_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa"
]
},
{
"id": "10000000-0000-0000-0000-000000000002",
@@ -57,7 +61,7 @@
"brand": "Lescure - Enterprise",
"unit_of_measure": "KILOGRAMS",
"package_size": null,
"average_cost": 4.20,
"average_cost": 4.2,
"last_purchase_price": null,
"standard_cost": null,
"low_stock_threshold": 200.0,
@@ -80,11 +84,15 @@
"nutritional_info": null,
"produced_locally": false,
"recipe_id": null,
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"created_by": "d2e3f4a5-b6c7-48d9-e0f1-a2b3c4d5e6f7",
"enterprise_shared": true,
"shared_locations": ["Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa"]
"shared_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa"
]
},
{
"id": "20000000-0000-0000-0000-000000000001",
@@ -100,7 +108,7 @@
"brand": "Panadería Central",
"unit_of_measure": "UNITS",
"package_size": null,
"average_cost": 1.80,
"average_cost": 1.8,
"last_purchase_price": null,
"standard_cost": null,
"low_stock_threshold": 100.0,
@@ -124,11 +132,15 @@
"nutritional_info": null,
"produced_locally": true,
"recipe_id": "30000000-0000-0000-0000-000000000001",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"created_by": "d2e3f4a5-b6c7-48d9-e0f1-a2b3c4d5e6f7",
"enterprise_shared": true,
"shared_locations": ["Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa"]
"shared_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa"
]
}
],
"stock": [
@@ -140,11 +152,11 @@
"location": "Central Warehouse - Madrid",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-07-15T00:00:00Z",
"expiration_date": "BASE_TS + 180d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"batch_number": "ENT-HAR-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"enterprise_shared": true
},
{
@@ -155,11 +167,11 @@
"location": "Central Warehouse - Madrid",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "2025-02-15T00:00:00Z",
"expiration_date": "BASE_TS + 30d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"batch_number": "ENT-MAN-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"enterprise_shared": true
},
{
@@ -170,11 +182,11 @@
"location": "Central Warehouse - Madrid",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "2025-01-16T06:00:00Z",
"expiration_date": "BASE_TS + 1d",
"supplier_id": null,
"batch_number": "ENT-BAG-20250115-001",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"enterprise_shared": true
}
]

View File

@@ -17,7 +17,7 @@
"cook_time_minutes": 25,
"total_time_minutes": 180,
"rest_time_minutes": 120,
"estimated_cost_per_unit": 1.80,
"estimated_cost_per_unit": 1.8,
"last_calculated_cost": 1.75,
"cost_calculation_date": "2025-01-14T00:00:00Z",
"target_margin_percentage": 65.0,
@@ -25,11 +25,15 @@
"status": "APPROVED",
"is_active": true,
"is_standardized": true,
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"created_by": "50000000-0000-0000-0000-000000000011",
"enterprise_standard": true,
"applicable_locations": ["Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa"],
"applicable_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa"
],
"instructions": {
"steps": [
{
@@ -94,7 +98,7 @@
"10000000-0000-0000-0000-000000000002"
],
"is_essential": true,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_standard": true
},
{
@@ -106,7 +110,7 @@
"unit": "kilograms",
"substitution_options": [],
"is_essential": false,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_standard": true,
"notes": "Solo para versión premium"
}

View File

@@ -21,9 +21,18 @@
"lead_time_days": 2,
"contract_start_date": "2024-01-01T00:00:00Z",
"contract_end_date": "2025-12-31T23:59:59Z",
"created_at": "2025-01-15T06:00:00Z",
"specialties": ["flour", "bread_improvers", "enterprise_supply"],
"delivery_areas": ["Madrid", "Barcelona", "Valencia", "Basque Country"],
"created_at": "BASE_TS",
"specialties": [
"flour",
"bread_improvers",
"enterprise_supply"
],
"delivery_areas": [
"Madrid",
"Barcelona",
"Valencia",
"Basque Country"
],
"enterprise_contract": true,
"contract_type": "national_supply_agreement",
"annual_volume_commitment": 50000.0,
@@ -50,9 +59,18 @@
"lead_time_days": 1,
"contract_start_date": "2024-03-15T00:00:00Z",
"contract_end_date": "2025-12-31T23:59:59Z",
"created_at": "2025-01-15T06:00:00Z",
"specialties": ["butter", "cream", "enterprise_dairy"],
"delivery_areas": ["Madrid", "Barcelona", "Valencia", "Basque Country"],
"created_at": "BASE_TS",
"specialties": [
"butter",
"cream",
"enterprise_dairy"
],
"delivery_areas": [
"Madrid",
"Barcelona",
"Valencia",
"Basque Country"
],
"enterprise_contract": true,
"contract_type": "premium_dairy_supply",
"annual_volume_commitment": 12000.0,

View File

@@ -11,9 +11,9 @@
"manufacturer": "Sveba Dahlen",
"firmware_version": "4.2.1",
"status": "OPERATIONAL",
"install_date": "2024-06-15T00:00:00Z",
"last_maintenance_date": "2025-01-10T00:00:00Z",
"next_maintenance_date": "2025-04-10T00:00:00Z",
"install_date": "BASE_TS - 215d 18h",
"last_maintenance_date": "BASE_TS - 6d 18h",
"next_maintenance_date": "BASE_TS + 84d 18h",
"maintenance_interval_days": 90,
"efficiency_percentage": 95.0,
"uptime_percentage": 97.0,
@@ -37,10 +37,14 @@
"supports_remote_control": true,
"is_active": true,
"notes": "Equipo principal para producción masiva",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"enterprise_asset": true,
"shared_locations": ["Madrid Centro", "Barcelona Gràcia", "Valencia Ruzafa"]
"shared_locations": [
"Madrid Centro",
"Barcelona Gràcia",
"Valencia Ruzafa"
]
}
],
"production_batches": [
@@ -52,8 +56,8 @@
"recipe_id": "30000000-0000-0000-0000-000000000001",
"equipment_id": "30000000-0000-0000-0000-000000000001",
"status": "IN_PROGRESS",
"start_time": "2025-01-15T06:30:00Z",
"end_time": "2025-01-15T10:30:00Z",
"start_time": "BASE_TS + 30m",
"end_time": "BASE_TS + 4h 30m",
"planned_quantity": 250.0,
"actual_quantity": 200.0,
"waste_quantity": 5.0,
@@ -61,8 +65,8 @@
"production_line": "Linea 1 - Baguettes",
"shift": "Morning",
"supervisor_id": "50000000-0000-0000-0000-000000000011",
"created_at": "2025-01-15T06:00:00Z",
"updated_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"updated_at": "BASE_TS",
"enterprise_batch": true,
"production_facility": "Central Production Facility - Madrid",
"distribution_plan": [

View File

@@ -7,11 +7,11 @@
"tenant_id": "80000000-0000-4000-a000-000000000001",
"po_number": "ENT-PO-20250115-001",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"order_date": "2025-01-14T10:00:00Z",
"expected_delivery_date": "2025-01-16T10:00:00Z",
"order_date": "BASE_TS - 1d 4h",
"expected_delivery_date": "BASE_TS + 1d 4h",
"status": "pending_approval",
"total_amount": 650.00,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 650.0,
"created_at": "BASE_TS",
"notes": "Pedido semanal de harina para producción central",
"enterprise_order": true,
"contract_reference": "ENT-HARINA-2024-001",
@@ -27,9 +27,9 @@
"po_id": "50000000-0000-0000-0000-000000002001",
"ingredient_id": "10000000-0000-0000-0000-000000000001",
"quantity": 800.0,
"unit_price": 0.80,
"total_price": 640.00,
"created_at": "2025-01-15T06:00:00Z",
"unit_price": 0.8,
"total_price": 640.0,
"created_at": "BASE_TS",
"enterprise_item": true,
"delivery_schedule": [
{
@@ -45,9 +45,9 @@
"po_id": "50000000-0000-0000-0000-000000002001",
"ingredient_id": "10000000-0000-0000-0000-000000000002",
"quantity": 12.5,
"unit_price": 4.00,
"total_price": 50.00,
"created_at": "2025-01-15T06:00:00Z",
"unit_price": 4.0,
"total_price": 50.0,
"created_at": "BASE_TS",
"enterprise_item": true,
"delivery_schedule": [
{

View File

@@ -16,7 +16,7 @@
"status": "ACTIVE",
"total_orders": 125,
"total_spent": 18500.75,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Cadena hotelera con 15 ubicaciones en España",
"contract_type": "national_supply_agreement",
"annual_volume_commitment": 25000.0,
@@ -36,11 +36,11 @@
"tenant_id": "80000000-0000-4000-a000-000000000001",
"customer_id": "60000000-0000-0000-0000-000000002001",
"order_number": "ENT-ORD-20250115-001",
"order_date": "2025-01-14T11:00:00Z",
"delivery_date": "2025-01-15T09:00:00Z",
"order_date": "BASE_TS - 1d 5h",
"delivery_date": "BASE_TS + 3h",
"status": "DELIVERED",
"total_amount": 650.50,
"created_at": "2025-01-15T06:00:00Z",
"total_amount": 650.5,
"created_at": "BASE_TS",
"notes": "Pedido semanal para 5 hoteles",
"enterprise_order": true,
"contract_reference": "ENT-HOTEL-2024-001",
@@ -70,9 +70,9 @@
"order_id": "60000000-0000-0000-0000-000000002001",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity": 100.0,
"unit_price": 2.50,
"total_price": 250.00,
"created_at": "2025-01-15T06:00:00Z",
"unit_price": 2.5,
"total_price": 250.0,
"created_at": "BASE_TS",
"enterprise_item": true
},
{
@@ -83,7 +83,7 @@
"quantity": 25.0,
"unit_price": 3.75,
"total_price": 93.75,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_item": true
},
{
@@ -93,8 +93,8 @@
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity": 20.0,
"unit_price": 2.25,
"total_price": 45.00,
"created_at": "2025-01-15T06:00:00Z",
"total_price": 45.0,
"created_at": "BASE_TS",
"enterprise_item": true
},
{
@@ -105,7 +105,7 @@
"quantity": 15.0,
"unit_price": 1.75,
"total_price": 26.25,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"enterprise_item": true
}
]

View File

@@ -6,10 +6,10 @@
"sale_date": "2025-01-14T10:00:00Z",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 250.0,
"unit_price": 2.50,
"total_revenue": 625.00,
"unit_price": 2.5,
"total_revenue": 625.0,
"sales_channel": "ENTERPRISE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta a Grupo Hotelero Mediterráneo",
"enterprise_sale": true,
"customer_id": "60000000-0000-0000-0000-000000002001",
@@ -27,9 +27,9 @@
"product_id": "20000000-0000-0000-0000-000000000002",
"quantity_sold": 50.0,
"unit_price": 3.75,
"total_revenue": 187.50,
"total_revenue": 187.5,
"sales_channel": "ENTERPRISE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta a Grupo Hotelero Mediterráneo",
"enterprise_sale": true,
"customer_id": "60000000-0000-0000-0000-000000002001",
@@ -42,9 +42,9 @@
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity_sold": 40.0,
"unit_price": 2.25,
"total_revenue": 90.00,
"total_revenue": 90.0,
"sales_channel": "ENTERPRISE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta a Grupo Hotelero Mediterráneo",
"enterprise_sale": true,
"customer_id": "60000000-0000-0000-0000-000000002001",
@@ -57,9 +57,9 @@
"product_id": "20000000-0000-0000-0000-000000000004",
"quantity_sold": 30.0,
"unit_price": 1.75,
"total_revenue": 52.50,
"total_revenue": 52.5,
"sales_channel": "ENTERPRISE",
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Venta a Grupo Hotelero Mediterráneo",
"enterprise_sale": true,
"customer_id": "60000000-0000-0000-0000-000000002001",

View File

@@ -4,11 +4,11 @@
"id": "80000000-0000-0000-0000-000000002001",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 300.0,
"confidence_score": 0.95,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Demanda diaria enterprise para 15 hoteles",
"enterprise_forecast": true,
"forecast_type": "contractual_commitment",
@@ -26,11 +26,11 @@
"id": "80000000-0000-0000-0000-000000002002",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000002",
"forecast_date": "2025-01-16T00:00:00Z",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 60.0,
"confidence_score": 0.92,
"forecast_horizon_days": 1,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Demanda diaria enterprise para desayunos",
"enterprise_forecast": true,
"forecast_type": "contractual_commitment",
@@ -41,11 +41,11 @@
"id": "80000000-0000-0000-0000-000000002099",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "2025-01-17T00:00:00Z",
"forecast_date": "BASE_TS + 1d 18h",
"predicted_quantity": 450.0,
"confidence_score": 0.98,
"forecast_horizon_days": 2,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Demanda de fin de semana - evento especial",
"enterprise_forecast": true,
"forecast_type": "special_event",
@@ -67,10 +67,10 @@
"id": "80000000-0000-0000-0000-000000002101",
"tenant_id": "80000000-0000-4000-a000-000000000001",
"batch_id": "ENT-FCST-20250116-001",
"prediction_date": "2025-01-15T06:00:00Z",
"prediction_date": "BASE_TS",
"status": "COMPLETED",
"total_forecasts": 3,
"created_at": "2025-01-15T06:00:00Z",
"created_at": "BASE_TS",
"notes": "Predicción diaria para contratos enterprise",
"enterprise_batch": true,
"forecast_horizon": "48_hours",