62 lines
1.4 KiB
JSON
62 lines
1.4 KiB
JSON
{
|
|
"name": "TicketService",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model": "TicketLog",
|
|
"relation": "ticket",
|
|
"showField": "description"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |