{
"name": "ItemLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "itemLog"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
"originFk": {
"required": true
"userFk": {
"type": "Number"
"action": {
"type": "String",
"changedModel": {
"type": "String"
"oldInstance": {
"type": "Object"
"newInstance": {
"creationDate": {
"type": "Date"
"changedModelId": {
"changedModelValue": {
"description": {
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
"scope": {
"order": ["creationDate DESC", "id DESC"]