salix/modules/worker/back/models/calendar.json

38 lines
753 B
JSON

{
"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"
}
}
}