2025-12-13 23:57:54 +01:00
|
|
|
{
|
|
|
|
|
"quality_controls": [
|
|
|
|
|
{
|
|
|
|
|
"id": "70000000-0000-0000-0000-000000000001",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"batch_id": "40000000-0000-0000-0000-000000000001",
|
|
|
|
|
"product_id": "20000000-0000-0000-0000-000000000001",
|
|
|
|
|
"product_name": "Baguette Francesa Tradicional",
|
|
|
|
|
"control_type": "visual_inspection",
|
|
|
|
|
"control_date": "2025-01-08T14:30:00Z",
|
|
|
|
|
"status": "COMPLETED",
|
|
|
|
|
"result": "PASSED",
|
|
|
|
|
"quality_score": 95.0,
|
|
|
|
|
"inspected_by": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"notes": "Excelente aspecto y textura, 2 unidades con quemaduras leves (dentro de tolerancia)",
|
|
|
|
|
"defects_found": [
|
|
|
|
|
{
|
|
|
|
|
"defect_type": "burnt",
|
|
|
|
|
"quantity": 2.0,
|
|
|
|
|
"severity": "minor"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"corrective_actions": null,
|
2025-12-14 11:58:14 +01:00
|
|
|
"created_at": "BASE_TS - 7d 8h 30m",
|
|
|
|
|
"updated_at": "BASE_TS - 7d 8h 45m"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "70000000-0000-0000-0000-000000000002",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"batch_id": "40000000-0000-0000-0000-000000000002",
|
|
|
|
|
"product_id": "20000000-0000-0000-0000-000000000002",
|
|
|
|
|
"product_name": "Croissant de Mantequilla Artesanal",
|
|
|
|
|
"control_type": "dimensional_check",
|
|
|
|
|
"control_date": "2025-01-08T14:45:00Z",
|
|
|
|
|
"status": "COMPLETED",
|
|
|
|
|
"result": "PASSED",
|
|
|
|
|
"quality_score": 92.0,
|
|
|
|
|
"inspected_by": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"notes": "Buen desarrollo y laminado, 3 unidades con forma irregular (dentro de tolerancia)",
|
|
|
|
|
"defects_found": [
|
|
|
|
|
{
|
|
|
|
|
"defect_type": "misshapen",
|
|
|
|
|
"quantity": 3.0,
|
|
|
|
|
"severity": "minor"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"corrective_actions": null,
|
2025-12-14 11:58:14 +01:00
|
|
|
"created_at": "BASE_TS - 7d 8h 45m",
|
|
|
|
|
"updated_at": "BASE_TS - 7d 9h"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "70000000-0000-0000-0000-000000000003",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"batch_id": "40000000-0000-0000-0000-000000000004",
|
|
|
|
|
"product_id": "20000000-0000-0000-0000-000000000004",
|
|
|
|
|
"product_name": "Napolitana de Chocolate",
|
|
|
|
|
"control_type": "taste_test",
|
|
|
|
|
"control_date": "2025-01-09T14:30:00Z",
|
|
|
|
|
"status": "COMPLETED",
|
|
|
|
|
"result": "FAILED",
|
|
|
|
|
"quality_score": 65.0,
|
|
|
|
|
"inspected_by": "50000000-0000-0000-0000-000000000007",
|
|
|
|
|
"notes": "⚠️ CRITICAL: Sabor amargo en el chocolate, posible problema con proveedor de cacao",
|
|
|
|
|
"defects_found": [
|
|
|
|
|
{
|
|
|
|
|
"defect_type": "off_taste",
|
|
|
|
|
"quantity": 10.0,
|
|
|
|
|
"severity": "major"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"corrective_actions": [
|
|
|
|
|
"Lote puesto en cuarentena",
|
|
|
|
|
"Notificado proveedor de chocolate",
|
|
|
|
|
"Programada nueva prueba con muestra diferente"
|
|
|
|
|
],
|
|
|
|
|
"batch_status_after_control": "QUARANTINED",
|
2025-12-14 11:58:14 +01:00
|
|
|
"created_at": "BASE_TS - 6d 8h 30m",
|
|
|
|
|
"updated_at": "BASE_TS - 6d 9h"
|
2025-12-13 23:57:54 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "70000000-0000-0000-0000-000000000004",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"batch_id": "40000000-0000-0000-0000-000000000015",
|
|
|
|
|
"product_id": "20000000-0000-0000-0000-000000000001",
|
|
|
|
|
"product_name": "Baguette Francesa Tradicional",
|
|
|
|
|
"control_type": "visual_inspection",
|
|
|
|
|
"control_date": "BASE_TS + 0h",
|
|
|
|
|
"status": "PENDING",
|
|
|
|
|
"result": null,
|
|
|
|
|
"quality_score": null,
|
|
|
|
|
"inspected_by": null,
|
|
|
|
|
"notes": "⚠️ PENDING: Control de calidad programado para lote en producción",
|
|
|
|
|
"defects_found": null,
|
|
|
|
|
"corrective_actions": null,
|
|
|
|
|
"batch_status_after_control": "QUALITY_CHECK",
|
2025-12-14 11:58:14 +01:00
|
|
|
"created_at": "BASE_TS",
|
|
|
|
|
"updated_at": "BASE_TS"
|
2025-12-13 23:57:54 +01:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"quality_alerts": [
|
|
|
|
|
{
|
|
|
|
|
"id": "71000000-0000-0000-0000-000000000001",
|
|
|
|
|
"tenant_id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
|
|
|
|
|
"alert_type": "QUALITY_FAILURE",
|
|
|
|
|
"severity": "HIGH",
|
|
|
|
|
"status": "OPEN",
|
|
|
|
|
"related_control_id": "70000000-0000-0000-0000-000000000003",
|
|
|
|
|
"related_batch_id": "40000000-0000-0000-0000-000000000004",
|
|
|
|
|
"product_id": "20000000-0000-0000-0000-000000000004",
|
|
|
|
|
"product_name": "Napolitana de Chocolate",
|
|
|
|
|
"description": "Fallo crítico en control de calidad - Sabor amargo en chocolate",
|
2025-12-14 11:58:14 +01:00
|
|
|
"created_at": "BASE_TS - 6d 9h",
|
2025-12-13 23:57:54 +01:00
|
|
|
"acknowledged_at": "2025-01-09T15:15:00Z",
|
|
|
|
|
"resolved_at": null,
|
|
|
|
|
"notes": "Lote en cuarentena, investigación en curso con proveedor"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|