{ "name": "Entry", "base": "Loggable", "log": { "model":"EntryLog" }, "options": { "mysql": { "table": "entry" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "dated": { "type": "date" }, "ref": { "type": "string" }, "isBooked": { "type": "boolean" }, "isExcludedFromAvailable": { "type": "boolean" }, "notes": { "type": "string" }, "isConfirmed": { "type": "boolean" }, "isVirtual": { "type": "boolean", "mysql": { "columnName": "isRaid" } }, "isRaid": { "type": "boolean" }, "commission": { "type": "number" }, "isOrdered": { "type": "boolean" }, "created": { "type": "date" }, "observation": { "type": "string", "mysql": { "columnName": "evaNotes" } }, "isBlocked": { "type": "boolean" }, "loadPriority": { "type": "number" }, "supplierFk": { "type": "number", "required": true }, "travelFk": { "type": "number", "required": true }, "companyFk": { "type": "number", "required": true } }, "relations": { "supplier": { "type": "belongsTo", "model": "Supplier", "foreignKey": "supplierFk" }, "travel": { "type": "belongsTo", "model": "Travel", "foreignKey": "travelFk" }, "company": { "type": "belongsTo", "model": "Company", "foreignKey": "companyFk" }, "currency": { "type": "belongsTo", "model": "Currency", "foreignKey": "currencyFk" } } }