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

59 lines
833 B
JSON
Raw Normal View History

2018-02-07 12:48:55 +00:00
{
"name": "ItemLog",
2023-04-24 17:10:04 +00:00
"base": "Log",
"options": {
"mysql": {
"table": "itemLog"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"forceId": false
},
2023-04-24 17:10:04 +00:00
"originFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
"required": true
},
"userFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"action": {
2022-05-12 07:47:47 +00:00
"type": "string",
"required": true
},
"changedModel": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"oldInstance": {
2022-05-12 07:47:47 +00:00
"type": "object"
},
"newInstance": {
2022-05-12 07:47:47 +00:00
"type": "object"
},
"creationDate": {
"type": "date"
},
"changedModelId": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"changedModelValue": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string"
}
},
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:05:50 +00:00
"model": "VnUser",
"foreignKey": "userFk"
2023-04-24 17:10:04 +00:00
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
2018-02-08 10:40:06 +00:00
}