2019-03-22 07:28:57 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerLabour",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerLabour"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"businessFk": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"started": {
|
2021-06-10 09:24:32 +00:00
|
|
|
"type": "date"
|
2019-03-22 07:28:57 +00:00
|
|
|
},
|
|
|
|
"ended": {
|
2021-06-10 09:24:32 +00:00
|
|
|
"type": "date"
|
2019-03-22 07:28:57 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"department": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Department",
|
|
|
|
"foreignKey": "departmentFk"
|
|
|
|
},
|
|
|
|
"workCenter": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "WorkCenter",
|
|
|
|
"foreignKey": "workCenterFk"
|
|
|
|
},
|
|
|
|
"holidays": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "WorkCenterHoliday",
|
|
|
|
"foreignKey": "workCenterFk"
|
2021-06-08 14:36:16 +00:00
|
|
|
},
|
|
|
|
"absences": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Calendar",
|
|
|
|
"foreignKey": "businessFk"
|
2019-03-22 07:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|