{ "name": "InvoiceInTax", "base": "Loggable", "options": { "mysql": { "table": "invoiceInTax" } }, "properties": { "id": { "id": true, "type": "number", "description": "Identifier" }, "taxableBase": { "type": "number" }, "foreignValue": { "type": "number" }, "expenseFk": { "type": "number", "mysql": { "columnName": "expenceFk" } }, "created": { "type": "date" } }, "relations": { "invoiceIn": { "type": "belongsTo", "model": "InvoiceIn", "foreignKey": "invoiceInFk" }, "expense": { "type": "belongsTo", "model": "Expense", "foreignKey": "expenseFk" }, "taxTypeSage": { "type": "belongsTo", "model": "SageTaxType", "foreignKey": "taxTypeSageFk" }, "transactionTypeSage": { "type": "belongsTo", "model": "SageTransactionType", "foreignKey": "transactionTypeSageFk" } } }