{ "name": "WorkerDms", "base": "Loggable", "log": { "model":"ClientLog", "relation": "worker", "showField": "dmsFk" }, "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" } } }