{ "name": "WorkerLabour", "base": "VnModel", "options": { "mysql": { "table": "workerLabour" } }, "properties": { "businessFk": { "id": true, "type": "Number" }, "started": { "type": "date" }, "ended": { "type": "date" } }, "relations": { "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "department": { "type": "belongsTo", "model": "Department", "foreignKey": "departmentFk" }, "workCenter": { "type": "belongsTo", "model": "WorkCenter", "foreignKey": "workCenterFk" }, "holidays": { "type": "belongsTo", "model": "WorkCenterHoliday", "foreignKey": "workCenterFk" }, "absences": { "type": "hasMany", "model": "Calendar", "foreignKey": "businessFk" } } }