salix/services/ticket/common/models/ticketPackaging.json

38 lines
702 B
JSON
Raw Normal View History

2017-12-12 11:26:18 +00:00
{
"name": "TicketPackaging",
2017-12-12 11:26:18 +00:00
"base": "VnModel",
"options": {
"mysql": {
"table": "ticketPackaging"
}
},
2017-12-12 11:26:18 +00:00
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"quantity": {
"type": "Number"
2017-12-12 11:26:18 +00:00
},
"created": {
"type": "Date"
},
"pvp": {
"type": "Number"
2017-12-12 11:26:18 +00:00
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"packaging": {
2017-12-12 11:26:18 +00:00
"type": "belongsTo",
"model": "Packaging",
"foreignKey": "packagingFk"
2017-12-12 11:26:18 +00:00
}
}
}