2018-10-30 11:17:22 +00:00
|
|
|
{
|
|
|
|
"name": "TicketRequest",
|
2019-03-25 08:36:24 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "TicketLog",
|
2019-03-29 06:36:26 +00:00
|
|
|
"relation": "ticket"
|
2019-03-25 08:36:24 +00:00
|
|
|
},
|
2018-10-30 11:17:22 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "ticketRequest"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-10-30 11:17:22 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2018-11-13 10:26:36 +00:00
|
|
|
"required": true
|
2018-10-30 11:17:22 +00:00
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"quantity": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-11-13 10:26:36 +00:00
|
|
|
"required": true
|
2018-10-30 11:17:22 +00:00
|
|
|
},
|
|
|
|
"price": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-10-30 11:17:22 +00:00
|
|
|
},
|
|
|
|
"isOk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "boolean"
|
2018-11-13 10:26:36 +00:00
|
|
|
},
|
2019-02-11 09:39:53 +00:00
|
|
|
"response": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2018-10-30 11:17:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"sale": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Sale",
|
|
|
|
"foreignKey": "saleFk"
|
2018-11-12 10:50:16 +00:00
|
|
|
},
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"atender": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
2019-10-22 11:44:36 +00:00
|
|
|
"foreignKey": "attenderFk"
|
2018-11-12 10:50:16 +00:00
|
|
|
},
|
|
|
|
"requester": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "requesterFk"
|
2019-02-11 09:39:53 +00:00
|
|
|
},
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk"
|
2018-10-30 11:17:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|