{ "name": "InvoiceOut", "base": "VnModel", "options": { "mysql": { "table": "invoiceOut" } }, "properties": { "id": { "id": true, "type": "Number", "description": "Identifier" }, "ref": { "id": true, "type": "String", "required": true }, "serial": { "type": "String" }, "issued": { "type": "date" }, "amount": { "type": "Number" }, "created": { "type": "date" }, "dued": { "type": "date" }, "booked": { "type": "date" }, "pdf": { "type": "Number" } }, "relations": { "client": { "type": "belongsTo", "model": "Client", "foreignKey": "clientFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk", "required": true } } }