{ "name": "DeviceProductionLog", "base": "VnModel", "options": { "mysql": { "table": "deviceProductionLog" } }, "properties": { "id": { "id": true, "type": "number", "forceId": false }, "originFk": { "type": "number", "required": true }, "userFk": { "type": "number" }, "deviceProduction": { "type": "number" }, "action": { "type": "string", "required": true }, "created": { "type": "date" }, "oldInstance": { "type": "object" }, "newInstance": { "type": "object" }, "changedModel": { "type": "string" }, "changedModelId": { "type": "number" } }, "relations": { "user": { "type": "belongsTo", "model": "Account", "foreignKey": "userFk" } }, "scope": { "order": ["created DESC", "id DESC"] } }