67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|