{ "name": "TicketRequest", "base": "VnModel", "mixins": { "Loggable": true }, "options": { "mysql": { "table": "ticketRequest" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "description": { "type": "string", "required": true }, "created": { "type": "date" }, "quantity": { "type": "number", "required": true }, "price": { "type": "number" }, "isOk": { "type": "boolean" }, "response": { "type": "string" } }, "relations": { "sale": { "type": "belongsTo", "model": "Sale", "foreignKey": "saleFk" }, "ticket": { "type": "belongsTo", "model": "Ticket", "foreignKey": "ticketFk" }, "atender": { "type": "belongsTo", "model": "Worker", "foreignKey": "attenderFk" }, "requester": { "type": "belongsTo", "model": "Worker", "foreignKey": "requesterFk" }, "item": { "type": "belongsTo", "model": "Item", "foreignKey": "itemFk" } } }