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

59 lines
835 B
JSON
Raw Normal View History

2020-03-02 10:57:09 +00:00
{
"name": "EntryLog",
2023-04-24 17:10:04 +00:00
"base": "Log",
2020-03-02 10:57:09 +00:00
"options": {
"mysql": {
"table": "entryLog"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"forceId": false
2020-03-02 10:57:09 +00:00
},
"originFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2020-03-02 10:57:09 +00:00
"required": true
},
"userFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2020-03-02 10:57:09 +00:00
},
"action": {
2022-05-12 07:47:47 +00:00
"type": "string",
2020-03-02 10:57:09 +00:00
"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"
},
2020-03-02 10:57:09 +00:00
"creationDate": {
"type": "date"
2020-03-02 10:57:09 +00:00
},
"changedModelId": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"changedModelValue": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
2020-03-02 10:57:09 +00:00
"description": {
2022-05-12 07:47:47 +00:00
"type": "string"
2020-03-02 10:57:09 +00:00
}
},
"relations": {
"user": {
"type": "belongsTo",
2023-01-24 08:04:43 +00:00
"model": "VnUser",
2020-03-02 10:57:09 +00:00
"foreignKey": "userFk"
2020-03-04 07:58:57 +00:00
}
2020-03-02 10:57:09 +00:00
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
2023-04-24 17:10:04 +00:00
}