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": {
"payrollComponent": {
"type": "belongsTo",
"model": "payrollComponent",
"model": "PayrollComponent",
"foreignKey": "id"
},
"worker": {
"type": "hasMany",
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "id"
}
"foreignKey": "workerFk"
}
}
}

View File

@ -115,6 +115,11 @@
"type": "hasMany",
"model": "Locker",
"foreignKey": "workerFk"
},
"incomes": {
"type": "hasMany",
"model": "WorkerIncome",
"foreignKey": "workerFk"
}
},
"acls": [
@ -126,4 +131,4 @@
"principalId": "$owner"
}
]
}
}