2024-06-10 08:42:52 +00:00
|
|
|
{
|
2024-09-18 10:08:49 +00:00
|
|
|
"name": "WorkerRelative",
|
2024-06-10 08:42:52 +00:00
|
|
|
"description": "Model 145 IRPF",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2024-09-18 10:08:49 +00:00
|
|
|
"table": "workerRelative"
|
2024-06-10 08:42:52 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"isDescendant": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"disabilityGradeFk": {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"birthed": {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"adoptionYear": {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"isDependend": {
|
|
|
|
"type" : "boolean"
|
|
|
|
},
|
2024-09-18 10:08:49 +00:00
|
|
|
"isJointCustody": {
|
2024-06-10 08:42:52 +00:00
|
|
|
"type" : "boolean"
|
|
|
|
},
|
|
|
|
"updated": {
|
|
|
|
"type" : "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"disabilityGrade": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "disabilityGrade",
|
|
|
|
"foreignKey": "disabilityGradeFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
2024-09-18 10:08:49 +00:00
|
|
|
"model": "VnUser",
|
2024-06-10 08:42:52 +00:00
|
|
|
"foreignKey": "workerFK"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|