2018-02-23 12:04:44 +00:00
|
|
|
{
|
2018-11-30 06:57:41 +00:00
|
|
|
"name": "TicketService",
|
2019-03-25 08:36:24 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "TicketLog",
|
|
|
|
"relation": "ticket",
|
2019-03-29 06:36:26 +00:00
|
|
|
"showField": "description"
|
2019-03-25 08:36:24 +00:00
|
|
|
},
|
2018-02-23 12:04:44 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-11-30 06:57:41 +00:00
|
|
|
"table": "ticketService"
|
2018-02-23 12:04:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2019-01-16 09:49:49 +00:00
|
|
|
"ticketFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
2018-11-30 06:57:41 +00:00
|
|
|
"description": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"price": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"taxClassFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2019-12-13 10:59:25 +00:00
|
|
|
},
|
|
|
|
"ticketServiceTypeFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2018-02-23 12:04:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"taxClass": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "TaxClass",
|
|
|
|
"foreignKey": "taxClassFk"
|
2019-03-25 08:36:24 +00:00
|
|
|
},
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
2019-12-13 10:59:25 +00:00
|
|
|
},
|
|
|
|
"ticketService": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "TicketServiceType",
|
|
|
|
"foreignKey": "ticketServiceTypeFk"
|
2018-02-23 12:04:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|