{ "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": "Bank", "foreignKey": "bankFk" }, "worker": { "type": "belongsTo", "model": "VnUser", "foreignKey": "workerFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" } } }