2018-10-30 11:17:22 +00:00
|
|
|
{
|
|
|
|
"name": "TicketRequest",
|
2019-03-25 08:36:24 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "TicketLog",
|
2019-04-04 10:38:54 +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": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
2018-11-13 10:26:36 +00:00
|
|
|
"type": "String",
|
|
|
|
"required": true
|
2018-10-30 11:17:22 +00:00
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"quantity": {
|
2018-11-13 10:26:36 +00:00
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2018-10-30 11:17:22 +00:00
|
|
|
},
|
|
|
|
"price": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isOk": {
|
|
|
|
"type": "Boolean"
|
2018-11-13 10:26:36 +00:00
|
|
|
},
|
|
|
|
"atenderFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2019-02-11 09:39:53 +00:00
|
|
|
},
|
|
|
|
"response": {
|
|
|
|
"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",
|
|
|
|
"foreignKey": "atenderFk"
|
|
|
|
},
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|