{ "name": "WorkerRelative", "description": "Model 145 IRPF", "base": "VnModel", "options": { "mysql": { "table": "workerRelative" } }, "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" }, "isJointCustody": { "type" : "boolean" }, "updated": { "type" : "date" } }, "relations": { "disabilityGrade": { "type": "belongsTo", "model": "disabilityGrade", "foreignKey": "disabilityGradeFk" }, "worker": { "type": "belongsTo", "model": "VnUser", "foreignKey": "workerFK" } } }