{ "name": "Calendar", "base": "Loggable", "log": { "model": "WorkerLog", "relation": "labour" }, "options": { "mysql": { "table": "calendar" } }, "properties": { "id": { "id": true, "type": "Number" }, "businessFk": { "type": "Number" }, "dated": { "type": "Date" } }, "relations": { "absenceType": { "type": "belongsTo", "model": "AbsenceType", "foreignKey": "dayOffTypeFk" }, "labour": { "type": "belongsTo", "model": "WorkerLabour", "foreignKey": "businessFk" } } }