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

39 lines
824 B
JSON
Raw Normal View History

2018-02-23 12:04:44 +00:00
{
2018-11-30 06:57:41 +00:00
"name": "TicketService",
2018-02-23 12:04:44 +00:00
"base": "VnModel",
"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"
},
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"
}
}
}