7409-workerIncome #2597
|
@ -33,13 +33,13 @@
|
||||||
"relations": {
|
"relations": {
|
||||||
"payrollComponent": {
|
"payrollComponent": {
|
||||||
"type": "belongsTo",
|
"type": "belongsTo",
|
||||||
"model": "payrollComponent",
|
"model": "PayrollComponent",
|
||||||
"foreignKey": "id"
|
"foreignKey": "id"
|
||||||
},
|
},
|
||||||
"worker": {
|
"worker": {
|
||||||
"type": "hasMany",
|
"type": "belongsTo",
|
||||||
"model": "Worker",
|
"model": "Worker",
|
||||||
"foreignKey": "id"
|
"foreignKey": "workerFk"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,11 @@
|
||||||
"type": "hasMany",
|
"type": "hasMany",
|
||||||
"model": "Locker",
|
"model": "Locker",
|
||||||
"foreignKey": "workerFk"
|
"foreignKey": "workerFk"
|
||||||
|
},
|
||||||
|
"incomes": {
|
||||||
|
"type": "hasMany",
|
||||||
|
"model": "WorkerIncome",
|
||||||
|
"foreignKey": "workerFk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"acls": [
|
"acls": [
|
||||||
|
|
Loading…
Reference in New Issue