salix/modules/worker/back/models/worker-income.json

46 lines
824 B
JSON
Raw Permalink Normal View History

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",
"model": "PayrollComponent",
2024-06-17 08:23:30 +00:00
"foreignKey": "id"
},
"worker": {
"type": "belongsTo",
2024-06-17 08:23:30 +00:00
"model": "Worker",
"foreignKey": "workerFk"
}
2024-06-17 08:23:30 +00:00
}
}