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

58 lines
839 B
JSON
Raw Normal View History

2020-03-02 10:57:09 +00:00
{
"name": "EntryLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "entryLog"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
2020-03-02 10:57:09 +00:00
},
"originFk": {
"type": "Number",
"required": true
},
"userFk": {
"type": "Number"
},
"action": {
"type": "String",
"required": true
},
"changedModel": {
"type": "String"
},
"oldInstance": {
"type": "Object"
},
"newInstance": {
"type": "Object"
},
2020-03-02 10:57:09 +00:00
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "String"
},
"changedModelValue": {
"type": "String"
},
2020-03-02 10:57:09 +00:00
"description": {
"type": "String"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
2020-03-04 07:58:57 +00:00
}
2020-03-02 10:57:09 +00:00
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
2020-03-04 07:58:57 +00:00
}