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

@@ -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",