{ "name": "WorkerIrpf", "description": "Model 145 IRPF", "base": "VnModel", "options": { "mysql": { "table": "workerIrpf" } }, "properties": { "workerFk": { "type": "number", "id": true, "description": "Identifier" }, "spouseNif": { "type": "string" }, "geographicMobilityDate": { "type": "date" }, "disabilityGradeFk": { "type" : "number" }, "isDependent": { "type" : "number" }, "familySituation": { "type" : "number" }, "spousePension": { "type" : "number" }, "childPension": { "type" : "number" }, "hasHousingPaymentBefore": { "type" : "number" }, "hasHousingPaymentAfter": { "type" : "number" }, "updated": { "type" : "date" } }, "relations": { "disabilityGrade": { "type": "belongsTo", "model": "disabilityGrade", "foreignKey": "disabilityGradeFk" }, "worker": { "type": "belongsTo", "model": "VnUser", "foreignKey": "workerFK" } } }