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": {
|
|
|
|
"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
|
|
|
},
|
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",
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|