59 lines
841 B
JSON
59 lines
841 B
JSON
{
|
|
"name": "UserLog",
|
|
"base": "Log",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "account.userLog"
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"creationDate": {
|
|
"type": "date"
|
|
},
|
|
"changedModelId": {
|
|
"type": "number"
|
|
},
|
|
"changedModelValue": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"user": {
|
|
"type": "belongsTo",
|
|
"model": "VnUser",
|
|
"foreignKey": "userFk"
|
|
}
|
|
},
|
|
"scope": {
|
|
"order": ["creationDate DESC", "id DESC"]
|
|
}
|
|
}
|