{ "name": "WorkerDms", "base": "VnModel", "mixins": { "Loggable": true }, "options": { "mysql": { "table": "workerDms" } }, "properties": { "id": { "type": "number", "id": true }, "dmsFk": { "type": "number", "required": true }, "workerFk": { "type": "number", "required": true }, "isReadableByWorker": { "type": "boolean" } }, "relations": { "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "dms": { "type": "belongsTo", "model": "Dms", "foreignKey": "dmsFk" } } }