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

59 lines
871 B
JSON
Raw Normal View History

{
"name": "ShelvingLog",
2023-04-24 17:10:04 +00:00
"base": "Log",
"options": {
"mysql": {
"table": "shelvingLog"
}
},
2022-07-20 10:40:30 +00:00
"properties": {
"id": {
"id": true,
"type": "number",
2022-07-19 11:35:17 +00:00
"forceId": false
2022-07-20 10:40:30 +00:00
},
"originFk": {
"type": "number",
2022-07-19 11:35:17 +00:00
"required": true
2022-07-20 10:40:30 +00:00
},
"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"
}
},
2022-07-19 11:35:17 +00:00
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
2022-07-19 11:35:17 +00:00
"foreignKey": "userFk"
2023-04-24 17:10:04 +00:00
}
2022-07-19 11:35:17 +00:00
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
}