2020-03-24 11:20:53 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerLog",
|
2023-04-24 17:10:04 +00:00
|
|
|
"base": "Log",
|
2020-03-24 11:20:53 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerLog"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-03-24 11:20:53 +00:00
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"originFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-03-24 11:20:53 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"userFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"action": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2020-03-24 11:20:53 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"changedModel": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"oldInstance": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "object"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"newInstance": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "object"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"creationDate": {
|
2022-05-16 08:19:43 +00:00
|
|
|
"type": "date"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"changedModelId": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"changedModelValue": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"description": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2020-03-24 11:20:53 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
2023-01-24 08:05:50 +00:00
|
|
|
"model": "VnUser",
|
2020-03-24 11:20:53 +00:00
|
|
|
"foreignKey": "userFk"
|
2023-04-24 17:10:04 +00:00
|
|
|
}
|
2020-03-24 11:20:53 +00:00
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
|
|
|
}
|