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

72 lines
1.6 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",
"changedModelValue": "description"
},
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
},
"atenderFk": {
"type": "Number",
"required": true
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"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"atender": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "atenderFk"
},
"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
}
}
}