2024-06-17 08:23:30 +00:00
|
|
|
{
|
|
|
|
"name": "WorkerIncome",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "workerIncome"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"debit": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"credit": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"incomeTypeFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"paymentDate": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"concept": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"payrollComponent": {
|
|
|
|
"type": "belongsTo",
|
2024-06-17 12:17:43 +00:00
|
|
|
"model": "PayrollComponent",
|
2024-06-17 08:23:30 +00:00
|
|
|
"foreignKey": "id"
|
|
|
|
},
|
2024-06-17 12:17:43 +00:00
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
2024-06-17 08:23:30 +00:00
|
|
|
"model": "Worker",
|
2024-06-17 12:17:43 +00:00
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
2024-06-17 08:23:30 +00:00
|
|
|
}
|
|
|
|
}
|