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

53 lines
1.1 KiB
JSON
Raw Normal View History

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",
"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
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"
2018-02-23 12:04:44 +00:00
}
}
}