demo seed change
This commit is contained in:
118
shared/demo/fixtures/professional/12-quality.json
Normal file
118
shared/demo/fixtures/professional/12-quality.json
Normal file
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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,
|
||||
"created_at": "2025-01-08T14:30:00Z",
|
||||
"updated_at": "2025-01-08T14:45:00Z"
|
||||
},
|
||||
{
|
||||
"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,
|
||||
"created_at": "2025-01-08T14:45:00Z",
|
||||
"updated_at": "2025-01-08T15:00:00Z"
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"created_at": "2025-01-09T14:30:00Z",
|
||||
"updated_at": "2025-01-09T15:00:00Z"
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"created_at": "2025-01-15T06:00:00Z",
|
||||
"updated_at": "2025-01-15T06:00:00Z"
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"created_at": "2025-01-09T15:00:00Z",
|
||||
"acknowledged_at": "2025-01-09T15:15:00Z",
|
||||
"resolved_at": null,
|
||||
"notes": "Lote en cuarentena, investigación en curso con proveedor"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user