{ "name": "Expedition", "base": "Loggable", "log": { "model": "TicketLog", "relation": "ticket" }, "options": { "mysql": { "table": "expedition" } }, "properties": { "id": { "id": true, "type": "number", "description": "Identifier" }, "isBox": { "type": "number" }, "created": { "type": "Date" }, "counter": { "type": "number" } }, "relations": { "ticket": { "type": "belongsTo", "model": "Ticket", "foreignKey": "ticketFk" }, "agencyMode": { "type": "belongsTo", "model": "agency-mode", "foreignKey": "agencyModeFk" }, "packageItem": { "type": "belongsTo", "model": "Item", "foreignKey": "itemFk" }, "worker": { "type": "belongsTo", "model": "Worker", "foreignKey": "workerFk" }, "packages": { "type": "hasMany", "model": "TicketPackaging", "foreignKey": "ticketFk" }, "freightItem": { "type": "belongsTo", "model": "Item", "foreignKey": "isBox" }, "packaging": { "type": "belongsTo", "model": "Package", "foreignKey": "packagingFk" } } }