salix/modules/ticket/back/models/ticket-request.json

67 lines
1.4 KiB
JSON
Raw Normal View History

2018-10-30 11:17:22 +00:00
{
"name": "TicketRequest",
2019-03-25 08:36:24 +00:00
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket"
2019-03-25 08:36:24 +00:00
},
2018-10-30 11:17:22 +00:00
"options": {
"mysql": {
"table": "ticketRequest"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-10-30 11:17:22 +00:00
"id": true,
"description": "Identifier"
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string",
2018-11-13 10:26:36 +00:00
"required": true
2018-10-30 11:17:22 +00:00
},
"created": {
"type": "Date"
},
"quantity": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-11-13 10:26:36 +00:00
"required": true
2018-10-30 11:17:22 +00:00
},
"price": {
2022-05-12 07:47:47 +00:00
"type": "number"
2018-10-30 11:17:22 +00:00
},
"isOk": {
2022-05-12 07:47:47 +00:00
"type": "boolean"
2018-11-13 10:26:36 +00:00
},
2019-02-11 09:39:53 +00:00
"response": {
2022-05-12 07:47:47 +00:00
"type": "string"
2018-10-30 11:17:22 +00:00
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"atender": {
"type": "belongsTo",
"model": "Worker",
2019-10-22 11:44:36 +00:00
"foreignKey": "attenderFk"
},
"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
}
}
}