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

59 lines
1.3 KiB
JSON
Raw Normal View History

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": {
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
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"
2018-10-30 11:17:22 +00:00
}
}
}