{
"msg": "Historial de transiciones",
"history": [
{
"_id": "507f1f77bcf86cd799439020",
"scheduleId": "507f1f77bcf86cd799439011",
"fromState": null,
"toState": "DRAFT",
"user": {
"_id": "507f1f77bcf86cd799439014",
"username": "jsmith"
},
"reason": "Creación inicial",
"timestamp": "2025-10-18T10:00:00Z"
},
{
"_id": "507f1f77bcf86cd799439021",
"scheduleId": "507f1f77bcf86cd799439011",
"fromState": "DRAFT",
"toState": "SCHEDULED",
"user": {
"_id": "507f1f77bcf86cd799439015",
"username": "supervisor"
},
"reason": "Programación confirmada",
"timestamp": "2025-10-18T11:30:00Z"
},
{
"_id": "507f1f77bcf86cd799439022",
"scheduleId": "507f1f77bcf86cd799439011",
"fromState": "SCHEDULED",
"toState": "SENT_TO_PLC",
"user": {
"_id": "507f1f77bcf86cd799439015",
"username": "supervisor"
},
"reason": "Enviado a PLC para inicio",
"metadata": {
"plcId": 1,
"sentAt": "2025-10-20T07:55:00Z"
},
"timestamp": "2025-10-20T07:55:00Z"
}
]
}