salix/services/loopback/common/models/ticket-request.json

46 lines
946 B
JSON

{
"name": "TicketRequest",
"base": "VnModel",
"options": {
"mysql": {
"table": "ticketRequest"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String"
},
"created": {
"type": "Date"
},
"quantity": {
"type": "Number"
},
"price": {
"type": "Number"
},
"isOk": {
"type": "Boolean"
},
"atender": {
"type": "String",
"columnName": "atenderFk"
},
"requester": {
"type": "String",
"columnName": "requesterFk"
}
},
"relations": {
"sale": {
"type": "belongsTo",
"model": "Sale",
"foreignKey": "saleFk"
}
}
}