2019-03-22 07:28:57 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerLabour",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerLabour"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"businessFk": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2021-11-30 08:11:23 +00:00
|
|
|
"workerFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2019-03-22 07:28:57 +00:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|