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

38 lines
753 B
JSON
Raw Normal View History

2019-03-22 07:28:57 +00:00
{
2020-08-10 12:29:25 +00:00
"name": "Calendar",
2020-09-30 05:38:43 +00:00
"base": "Loggable",
"log": {
"model": "WorkerLog",
"relation": "labour"
},
2019-03-22 07:28:57 +00:00
"options": {
"mysql": {
2020-08-10 12:29:25 +00:00
"table": "calendar"
2019-03-22 07:28:57 +00:00
}
},
"properties": {
2020-07-08 13:05:56 +00:00
"id": {
"id": true,
"type": "Number"
},
2019-03-22 07:28:57 +00:00
"businessFk": {
"type": "Number"
},
"dated": {
"type": "Date"
}
},
"relations": {
"absenceType": {
"type": "belongsTo",
"model": "AbsenceType",
2020-08-10 12:29:25 +00:00
"foreignKey": "dayOffTypeFk"
2020-09-30 05:38:43 +00:00
},
"labour": {
"type": "belongsTo",
"model": "WorkerLabour",
"foreignKey": "businessFk"
2019-03-22 07:28:57 +00:00
}
}
}