{ "name": "Calendar", "base": "VnModel", "mixins": { "Loggable": true }, "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" } } }