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

58 lines
1.3 KiB
JSON
Raw Permalink 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",
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": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-02-23 12:04:44 +00:00
"id": true,
"description": "Identifier"
},
2019-01-16 09:49:49 +00:00
"ticketFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-01-16 09:49:49 +00:00
"required": true
},
2018-11-30 06:57:41 +00:00
"description": {
2022-05-12 07:47:47 +00:00
"type": "string",
2018-11-30 06:57:41 +00:00
"required": true
},
"quantity": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-11-30 06:57:41 +00:00
"required": true
},
"price": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-11-30 06:57:41 +00:00
"required": true
},
"taxClassFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-11-30 06:57:41 +00:00
"required": true
},
"ticketServiceTypeFk": {
2022-05-12 07:47:47 +00:00
"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"
},
"ticketService": {
"type": "belongsTo",
"model": "TicketServiceType",
"foreignKey": "ticketServiceTypeFk"
2018-02-23 12:04:44 +00:00
}
}
}