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

43 lines
916 B
JSON

{
"name": "TicketService",
"base": "VnModel",
"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"
}
}
}