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

58 lines
845 B
JSON
Raw Normal View History

2020-10-28 08:08:27 +00:00
{
"name": "SupplierLog",
"base": "VnModel",
"options": {
"mysql": {
"table": "supplierLog"
}
},
"properties": {
"id": {
"id": true,
2021-11-10 14:11:42 +00:00
"type": "number",
2020-10-28 08:08:27 +00:00
"forceId": false
},
"originFk": {
2021-11-10 14:11:42 +00:00
"type": "number",
2020-10-28 08:08:27 +00:00
"required": true
},
"userFk": {
2021-11-10 14:11:42 +00:00
"type": "number"
2020-10-28 08:08:27 +00:00
},
"action": {
2021-11-10 14:11:42 +00:00
"type": "string",
2020-10-28 08:08:27 +00:00
"required": true
},
"changedModel": {
2021-11-10 14:11:42 +00:00
"type": "string"
2020-10-28 08:08:27 +00:00
},
"oldInstance": {
2021-11-10 14:11:42 +00:00
"type": "object"
2020-10-28 08:08:27 +00:00
},
"newInstance": {
2021-11-10 14:11:42 +00:00
"type": "object"
2020-10-28 08:08:27 +00:00
},
"creationDate": {
2021-11-10 14:11:42 +00:00
"type": "date"
2020-10-28 08:08:27 +00:00
},
"changedModelId": {
2021-11-10 14:11:42 +00:00
"type": "string"
2020-10-28 08:08:27 +00:00
},
"changedModelValue": {
2021-11-10 14:11:42 +00:00
"type": "string"
2020-10-28 08:08:27 +00:00
},
"description": {
2021-11-10 14:11:42 +00:00
"type": "string"
2020-10-28 08:08:27 +00:00
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "Account",
"foreignKey": "userFk"
}
},
"scope": {
"order": ["creationDate DESC", "id DESC"]
}
}