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

53 lines
1.1 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
}
},
"relations": {
"taxClass": {
"type": "belongsTo",
"model": "TaxClass",
"foreignKey": "taxClassFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
}
}
}