salix/modules/client/back/models/client-log.json

59 lines
844 B
JSON
Raw Normal View History

2018-10-03 07:37:34 +00:00
{
"name": "ClientLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "clientLog"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"forceId": false
},
"originFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
"required": true
},
"userFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"action": {
2022-05-12 07:47:47 +00:00
"type": "string",
"required": true
},
"changedModel": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"oldInstance": {
2022-05-12 07:47:47 +00:00
"type": "object"
},
"newInstance": {
2022-05-12 07:47:47 +00:00
"type": "object"
},
"creationDate": {
"type": "date"
},
"changedModelId": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"changedModelValue": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
2018-10-03 07:37:34 +00:00
}