2019-03-22 07:28:57 +00:00
|
|
|
{
|
2020-08-10 12:29:25 +00:00
|
|
|
"name": "Calendar",
|
2021-01-12 13:25:01 +00:00
|
|
|
"base": "VnModel",
|
2024-07-25 06:57:18 +00:00
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
2020-09-30 05:38:43 +00:00
|
|
|
},
|
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,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-07-08 13:05:56 +00:00
|
|
|
},
|
2019-03-22 07:28:57 +00:00
|
|
|
"businessFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-03-22 07:28:57 +00:00
|
|
|
},
|
|
|
|
"dated": {
|
2022-05-16 08:19:43 +00:00
|
|
|
"type": "date"
|
2019-03-22 07:28:57 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|