salix/back/models/user-log.json

59 lines
841 B
JSON
Raw Normal View History

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