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

59 lines
877 B
JSON
Raw Normal View History

{
"name": "ShelvingLog",
"base": "VnModel",
"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"
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
}