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

38 lines
752 B
JSON
Raw Normal View History

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",
2020-09-30 05:38:43 +00:00
"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,
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": {
"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
}
}
}