{ "name": "Department", "base": "VnModel", "options": { "mysql": { "table": "department" } }, "properties": { "id": { "id": true, "type": "number", "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" } }, "relations": { "client": { "type": "belongsTo", "model": "Client", "foreignKey": "clientFk" }, "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" } } }