{ "name": "SaleComponent", "base": "VnModel", "options": { "mysql": { "table": "saleComponent" } }, "properties": { "value": { "type": "Number" }, "saleFk": { "id": true } }, "relations": { "sale": { "type": "belongsTo", "model": "Sale", "foreignKey": "saleFk" }, "componentRate": { "type": "belongsTo", "model": "ComponentRate", "foreignKey": "componentFk" } } }