Files
bakery-ia/shared/demo/fixtures/enterprise/children/valencia.json
2025-12-15 21:14:22 +01:00

322 lines
12 KiB
JSON

{
"location": {
"id": "V0000000-0000-4000-a000-000000000001",
"parent_tenant_id": "80000000-0000-4000-a000-000000000001",
"name": "Valencia Ruzafa",
"location_code": "ENT-VLC-001",
"city": "Valencia",
"zone": "Ruzafa",
"address": "Calle Sueca, 42",
"postal_code": "46006",
"country": "España",
"latitude": 39.4623,
"longitude": -0.3645,
"status": "ACTIVE",
"opening_hours": "07:00-21:00",
"daily_capacity": 1600,
"storage_capacity_kg": 5500,
"created_at": "2025-01-15T06:00:00Z",
"enterprise_location": true,
"location_type": "retail_and_wholesale",
"manager_id": "50000000-0000-0000-0000-000000000013",
"staff_count": 13,
"equipment": [
"30000000-0000-0000-0000-000000000003"
],
"shared_ingredients": [
"10000000-0000-0000-0000-000000000001",
"10000000-0000-0000-0000-000000000002",
"10000000-0000-0000-0000-000000000004",
"20000000-0000-0000-0000-000000000001",
"20000000-0000-0000-0000-000000000003"
],
"shared_recipes": [
"30000000-0000-0000-0000-000000000001",
"30000000-0000-0000-0000-000000000003"
]
},
"local_inventory": [
{
"id": "10000000-0000-0000-0000-000000003001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"ingredient_id": "10000000-0000-0000-0000-000000000001",
"quantity": 165.0,
"location": "Valencia Ruzafa - Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "BASE_TS + 33d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000001",
"batch_number": "VLC-HAR-20250115-001",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia",
"staff_assigned": []
},
{
"id": "10000000-0000-0000-0000-000000003002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"ingredient_id": "10000000-0000-0000-0000-000000000002",
"quantity": 38.0,
"location": "Valencia Ruzafa - Cold Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "BASE_TS + 7d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000002",
"batch_number": "VLC-MAN-20250115-001",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia",
"staff_assigned": []
},
{
"id": "10000000-0000-0000-0000-000000003003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"ingredient_id": "10000000-0000-0000-0000-000000000004",
"quantity": 12.0,
"location": "Valencia Ruzafa - Dry Storage",
"production_stage": "RAW_MATERIAL",
"quality_status": "APPROVED",
"expiration_date": "BASE_TS + 364d 18h",
"supplier_id": "40000000-0000-0000-0000-000000000003",
"batch_number": "VLC-SAL-20250115-001",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Warehouse - Valencia",
"staff_assigned": []
},
{
"id": "20000000-0000-0000-0000-000000003001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"ingredient_id": "20000000-0000-0000-0000-000000000001",
"quantity": 58.0,
"location": "Valencia Ruzafa - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "BASE_TS + 1d",
"supplier_id": null,
"batch_number": "VLC-BAG-20250115-001",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Valencia",
"staff_assigned": []
},
{
"id": "20000000-0000-0000-0000-000000003002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"ingredient_id": "20000000-0000-0000-0000-000000000003",
"quantity": 22.0,
"location": "Valencia Ruzafa - Display",
"production_stage": "FINISHED_PRODUCT",
"quality_status": "APPROVED",
"expiration_date": "BASE_TS + 2d",
"supplier_id": null,
"batch_number": "VLC-PAN-20250115-001",
"created_at": "BASE_TS",
"enterprise_shared": true,
"source_location": "Central Production Facility - Valencia",
"staff_assigned": []
}
],
"local_sales": [
{
"id": "70000000-0000-0000-0000-000000005001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"sale_date": "2025-01-15T08:00:00Z",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 32.0,
"unit_price": 2.7,
"total_revenue": 86.4,
"sales_channel": "RETAIL",
"created_at": "BASE_TS",
"notes": "Venta local en Valencia Ruzafa - mañana",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004001"
},
{
"id": "70000000-0000-0000-0000-000000005002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"sale_date": "2025-01-15T10:00:00Z",
"product_id": "20000000-0000-0000-0000-000000000003",
"quantity_sold": 15.0,
"unit_price": 2.4,
"total_revenue": 36.0,
"sales_channel": "RETAIL",
"created_at": "BASE_TS",
"notes": "Venta de pan de campo en Valencia",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004002"
},
{
"id": "70000000-0000-0000-0000-000000005003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"sale_date": "2025-01-14T18:30:00Z",
"product_id": "20000000-0000-0000-0000-000000000001",
"quantity_sold": 24.0,
"unit_price": 2.7,
"total_revenue": 64.8,
"sales_channel": "RETAIL",
"created_at": "BASE_TS",
"notes": "Venta de tarde en Valencia Ruzafa",
"enterprise_location_sale": true,
"parent_order_id": "60000000-0000-0000-0000-000000004003"
}
],
"local_orders": [
{
"id": "60000000-0000-0000-0000-000000004001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"order_number": "ORD-VLC-RUZ-20250115-001",
"customer_name": "Mercado de Ruzafa - Puesto 12",
"customer_email": "puesto12@mercadoruzafa.es",
"order_date": "BASE_TS + 30m",
"delivery_date": "BASE_TS + 2h",
"status": "DELIVERED",
"total_amount": 86.4,
"created_at": "BASE_TS",
"notes": "Pedido matinal para puesto de mercado",
"enterprise_location_order": true
},
{
"id": "60000000-0000-0000-0000-000000004002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"order_number": "ORD-VLC-RUZ-20250115-002",
"customer_name": "Bar La Pilareta",
"customer_email": "pedidos@lapilareta.es",
"order_date": "BASE_TS + 1h",
"delivery_date": "BASE_TS + 4h",
"status": "DELIVERED",
"total_amount": 36.0,
"created_at": "BASE_TS",
"notes": "Pan de campo para bar tradicional",
"enterprise_location_order": true
},
{
"id": "60000000-0000-0000-0000-000000004003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"order_number": "ORD-VLC-RUZ-20250114-003",
"customer_name": "Restaurante La Riuà",
"customer_email": "compras@lariua.com",
"order_date": "BASE_TS - 1d 10h",
"delivery_date": "BASE_TS - 1d 12h 30m",
"status": "DELIVERED",
"total_amount": 64.8,
"created_at": "BASE_TS",
"notes": "Pedido de tarde para restaurante",
"enterprise_location_order": true
},
{
"id": "60000000-0000-0000-0000-000000004004",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"order_number": "ORD-VLC-RUZ-20250116-004",
"customer_name": "Hotel Sorolla Palace",
"customer_email": "aprovisionamiento@sorollapalace.com",
"order_date": "BASE_TS + 5h",
"delivery_date": "BASE_TS + 1d 1h",
"status": "CONFIRMED",
"total_amount": 125.5,
"created_at": "BASE_TS",
"notes": "Pedido para desayuno buffet del hotel - entrega mañana",
"enterprise_location_order": true
}
],
"local_production_batches": [
{
"id": "40000000-0000-0000-0000-000000003001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"batch_number": "VLC-BATCH-20250115-001",
"recipe_id": "30000000-0000-0000-0000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"planned_quantity": 90.0,
"actual_quantity": 88.0,
"status": "COMPLETED",
"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": "BASE_TS",
"notes": "Producción matinal de baguettes en Valencia",
"enterprise_location_production": true,
"staff_assigned": []
},
{
"id": "40000000-0000-0000-0000-000000003002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"batch_number": "VLC-BATCH-20250115-002",
"recipe_id": "30000000-0000-0000-0000-000000000003",
"product_id": "20000000-0000-0000-0000-000000000003",
"planned_quantity": 40.0,
"actual_quantity": 40.0,
"status": "COMPLETED",
"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": "BASE_TS",
"notes": "Producción de pan de campo completada",
"enterprise_location_production": true,
"staff_assigned": []
},
{
"id": "40000000-0000-0000-0000-000000003003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"batch_number": "VLC-BATCH-20250116-003",
"recipe_id": "30000000-0000-0000-0000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"planned_quantity": 120.0,
"actual_quantity": null,
"status": "SCHEDULED",
"planned_start_time": "BASE_TS + 21h 30m",
"actual_start_time": null,
"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": "BASE_TS",
"notes": "Lote programado para mañana - pedido de hotel",
"enterprise_location_production": true,
"staff_assigned": []
}
],
"local_forecasts": [
{
"id": "80000000-0000-0000-0000-000000003001",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 78.0,
"confidence_score": 0.9,
"forecast_horizon_days": 1,
"created_at": "BASE_TS",
"notes": "Previsión de demanda diaria para Valencia Ruzafa",
"enterprise_location_forecast": true
},
{
"id": "80000000-0000-0000-0000-000000003002",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000003",
"forecast_date": "BASE_TS + 18h",
"predicted_quantity": 35.0,
"confidence_score": 0.87,
"forecast_horizon_days": 1,
"created_at": "BASE_TS",
"notes": "Previsión de pan de campo para mañana",
"enterprise_location_forecast": true
},
{
"id": "80000000-0000-0000-0000-000000003003",
"tenant_id": "V0000000-0000-4000-a000-000000000001",
"product_id": "20000000-0000-0000-0000-000000000001",
"forecast_date": "BASE_TS + 1d 18h",
"predicted_quantity": 95.0,
"confidence_score": 0.93,
"forecast_horizon_days": 2,
"created_at": "BASE_TS",
"notes": "Previsión fin de semana - aumento de demanda esperado",
"enterprise_location_forecast": true
}
]
}