2018-11-12 12:23:47 +00:00
|
|
|
{
|
2019-01-31 13:14:39 +00:00
|
|
|
"name": "TicketLog",
|
2018-11-12 12:23:47 +00:00
|
|
|
"base": "VnModel",
|
2019-01-31 13:14:39 +00:00
|
|
|
"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": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "Object"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"newInstance": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "Object"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"creationDate": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "Date"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"changedModelId": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "Number"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"changedModelValue": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "String"
|
2019-01-31 13:14:39 +00:00
|
|
|
},
|
|
|
|
"description": {
|
2019-03-20 10:49:11 +00:00
|
|
|
"type": "String"
|
2019-01-31 13:14:39 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
2019-03-20 10:49:11 +00:00
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
2018-11-12 12:23:47 +00:00
|
|
|
}
|