2018-10-30 11:17:22 +00:00
|
|
|
{
|
|
|
|
"name": "TicketRequest",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "ticketRequest"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"price": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isOk": {
|
|
|
|
"type": "Boolean"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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"
|
2018-10-30 11:17:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|