39 lines
824 B
JSON
39 lines
824 B
JSON
{
|
|
"name": "TicketService",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketService"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |