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