67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
{
|
|
"name": "TicketRequest",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "TicketLog",
|
|
"relation": "ticket"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |