{ "name": "Department", "base": "VnModel", "options": { "mysql": { "table": "department" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "code": { "type": "string" }, "name": { "type": "string" }, "parentFk": { "type": "number" }, "lft": { "type": "number" }, "rgt": { "type": "number" }, "sons": { "type": "number" }, "chatName": { "type": "string" }, "notificationEmail": { "type": "string" }, "hasToMistake": { "type": "number" }, "isTeleworking": { "type": "boolean" }, "hasToRefill": { "type": "boolean" }, "hasToSendMail": { "type": "boolean" }, "isProduction": { "type": "boolean" } }, "relations": { "client": { "type": "belongsTo", "model": "Client", "foreignKey": "clientFk" }, "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" } } }