2023-04-24 17:10:04 +00:00
|
|
|
{
|
2023-06-07 21:54:27 +00:00
|
|
|
"name": "Log",
|
|
|
|
"base": "VnModel",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "number",
|
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"originFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"userFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"changedModel": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"oldInstance": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"newInstance": {
|
|
|
|
"type": "object"
|
|
|
|
},
|
|
|
|
"oldJson": {
|
|
|
|
"type": "String",
|
|
|
|
"mysql": {"columnName": "oldInstance"}
|
|
|
|
},
|
|
|
|
"newJson": {
|
|
|
|
"type": "String",
|
|
|
|
"mysql": {"columnName": "newInstance"}
|
|
|
|
},
|
|
|
|
"creationDate": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"changedModelId": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"changedModelValue": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "VnUser",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scope": {
|
|
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
|
|
}
|
2023-04-24 17:10:04 +00:00
|
|
|
}
|