diff --git a/services/loopback/common/models/ticket-log.json b/services/loopback/common/models/ticket-log.json new file mode 100644 index 000000000..4f4ae6dd9 --- /dev/null +++ b/services/loopback/common/models/ticket-log.json @@ -0,0 +1,52 @@ +{ + "name": "TicketLog", + "base": "VnModel", + "options": { + "mysql": { + "table": "ticketLog" + } + }, + "properties": { + "id": { + "id": true, + "type": "Number", + "forceId": false + }, + "originFk": { + "type": "Number", + "required": true + }, + "userFk": { + "type": "Number" + }, + "action": { + "type": "String", + "required": true + }, + "changedModel": { + "type": "String" + }, + "oldInstance": { + "type": "Object" + }, + "newInstance": { + "type": "Object" + }, + "creationDate": { + "type": "Date" + }, + "changedModelId": { + "type": "Number" + }, + "changedModelValue": { + "type": "String" + } + }, + "relations": { + "user": { + "type": "belongsTo", + "model": "Account", + "foreignKey": "userFk" + } + } +}