This commit is contained in:
parent
fa8c1b3879
commit
e8c7b55329
|
@ -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": [
|
||||||
|
@ -126,4 +131,4 @@
|
||||||
"principalId": "$owner"
|
"principalId": "$owner"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue