{ "name": "Payment", "base": "VnModel", "options": { "mysql": { "table": "payment" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "received": { "type": "date" }, "amount": { "type": "number" }, "divisa": { "type": "number" }, "concept": { "type": "string" }, "created": { "type": "date" }, "isConciliated": { "type": "boolean" }, "dueDated": { "type": "date" } }, "relations": { "supplier": { "type": "belongsTo", "model": "Supplier", "foreignKey": "supplierFk" }, "currency": { "type": "belongsTo", "model": "Currency", "foreignKey": "currencyFk" }, "bank": { "type": "belongsTo", "model": "Bank", "foreignKey": "bankFk" }, "payMethod": { "type": "belongsTo", "model": "PayMethodFk", "foreignKey": "payMethodFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" } } }