{ "name": "Till", "base": "VnModel", "options": { "mysql": { "table": "till" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "dated": { "type": "date", "required": true }, "isAccountable": { "type": "boolean" }, "serie": { "type": "string", "required": true }, "number": { "type": "number" }, "concept": { "type": "string", "required": true }, "in": { "type": "number" }, "out": { "type": "number" }, "created": { "type": "date" }, "isConciliate": { "type": "boolean" } }, "relations": { "bank": { "type": "belongsTo", "model": "BankEntity", "foreignKey": "bankEntityFk" }, "salesPersonUser": { "type": "belongsTo", "model": "Account", "foreignKey": "salesPersonFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" } } }