fix(WorkerIncome): refs #7409 fix models
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-06-17 14:17:43 +02:00
parent fa8c1b3879
commit e8c7b55329
2 changed files with 11 additions and 6 deletions

View File

@ -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"
} }
} }
} }

View File

@ -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"
} }
] ]
} }