{ "name": "TicketService", "base": "Loggable", "log": { "model": "TicketLog", "relation": "ticket", "showField": "description" }, "options": { "mysql": { "table": "ticketService" } }, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "ticketFk": { "type": "Number", "required": true }, "description": { "type": "String", "required": true }, "quantity": { "type": "Number", "required": true }, "price": { "type": "Number", "required": true }, "taxClassFk": { "type": "Number", "required": true }, "ticketServiceTypeFk": { "type": "Number", "required": true } }, "relations": { "taxClass": { "type": "belongsTo", "model": "TaxClass", "foreignKey": "taxClassFk" }, "ticket": { "type": "belongsTo", "model": "Ticket", "foreignKey": "ticketFk" }, "ticketService": { "type": "belongsTo", "model": "TicketServiceType", "foreignKey": "ticketServiceTypeFk" } } }