refs #6755 model ticketlog, restore

This commit is contained in:
Carlos Satorres 2024-03-04 15:00:43 +01:00
parent 0d2396a7db
commit 893320b114
2 changed files with 41 additions and 1 deletions

View File

@ -37,6 +37,11 @@ module.exports = Self => {
}
}]
}, myOptions);
const lastUpdatedTicket = await models.ticketLog.findById(id, {
include: [{
}]
});
const now = Date.vnNew();
const maxDate = new Date(ticket.updated);

View File

@ -5,5 +5,40 @@
"mysql": {
"table": "ticketLog"
}
}
},
"properties": {
"id": {
"type": "string"
},
"originFk": {
"type": "number"
},
"userFk": {
"type":"number"
},
"action": {
"type": "string"
},
"creationDate": {
"type": "date"
},
"description": {
"type": "string"
},
"changeModel": {
"type": "string"
},
"oldInstance": {
"type": "string"
},
"newInstance": {
"type": "string"
},
"changedModelId": {
"type": "number"
},
"changedModelValue": {
"type": "string"
}
}
}