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

59 lines
917 B
JSON
Raw Normal View History

{
"name": "TicketLog",
2023-04-24 17:10:04 +00:00
"base": "Log",
"options": {
"mysql": {
"table": "ticketLog"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"forceId": false
},
"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"]
}
}