61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
{
|
|
"name": "TicketService",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketService"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"ticketFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"quantity": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"price": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"taxClassFk": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"ticketServiceTypeFk": {
|
|
"type": "number",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"taxClass": {
|
|
"type": "belongsTo",
|
|
"model": "TaxClass",
|
|
"foreignKey": "taxClassFk"
|
|
},
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
},
|
|
"ticketService": {
|
|
"type": "belongsTo",
|
|
"model": "TicketServiceType",
|
|
"foreignKey": "ticketServiceTypeFk"
|
|
}
|
|
}
|
|
}
|