{ "name": "WorkerLabour", "base": "VnModel", "options": { "mysql": { "table": "workerLabour" } }, "properties": { "businessFk": { "id": true, "type": "number" }, "workerFk": { "type": "number" }, "started": { "type": "date" }, "ended": { "type": "date" }, "payedHolidays": { "type": "number" } }, "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" } } }