{ "name": "InvoiceIn", "base": "Loggable", "log": { "model": "InvoiceInLog" }, "options": { "mysql": { "table": "invoiceIn" } }, "properties": { "id": { "id": true, "type": "number", "description": "Identifier" }, "serialNumber": { "type": "number" }, "serial": { "type": "string" }, "supplierRef": { "type": "string" }, "issued": { "type": "date" }, "created": { "type": "date" }, "isBooked": { "type": "boolean" }, "booked": { "type": "date" }, "isVatDeductible": { "type": "boolean" }, "operated": { "type": "date" }, "bookEntried": { "type": "date" }, "dmsFk": { "type": "number", "mysql": { "columnName": "docFk" } }, "deductibleExpenseFk": { "type": "number", "mysql": { "columnName": "expenceFkDeductible" } } }, "relations": { "invoiceInDueDay": { "type": "hasMany", "model": "InvoiceInDueDay", "foreignKey": "invoiceInFk" }, "sageWithholding": { "type": "belongsTo", "model": "SageWithholding", "foreignKey": "withholdingSageFk" }, "expenseDeductible": { "type": "belongsTo", "model": "Expense", "foreignKey": "deductibleExpenseFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" }, "supplier": { "type": "belongsTo", "model": "Supplier", "foreignKey": "supplierFk" }, "currency": { "type": "belongsTo", "model": "Currency", "foreignKey": "currencyFk" }, "dms": { "type": "belongsTo", "model": "Dms", "foreignKey": "dmsFk" } } }