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

41 lines
820 B
JSON
Raw Normal View History

2017-12-12 11:26:18 +00:00
{
"name": "TicketPackaging",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
2019-01-11 07:30:44 +00:00
"table": "ticketPackaging"
}
},
2017-12-12 11:26:18 +00:00
"properties": {
2019-01-11 07:30:44 +00:00
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2019-01-11 07:30:44 +00:00
"description": "Identifier"
},
"quantity": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-01-11 07:30:44 +00:00
},
"created": {
"type": "date"
2019-01-11 07:30:44 +00:00
},
"pvp": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-01-11 07:30:44 +00:00
}
2017-12-12 11:26:18 +00:00
},
"relations": {
2019-01-11 07:30:44 +00:00
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"packaging": {
"type": "belongsTo",
"model": "Packaging",
"foreignKey": "packagingFk"
}
2017-12-12 11:26:18 +00:00
}
2019-01-11 07:30:44 +00:00
}