38 lines
773 B
JSON
38 lines
773 B
JSON
{
|
|
"name": "TicketPackaging",
|
|
"base": "Loggable",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketPackaging"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"description": "Identifier"
|
|
},
|
|
"quantity": {
|
|
"type": "number"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"pvp": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
},
|
|
"packaging": {
|
|
"type": "belongsTo",
|
|
"model": "Packaging",
|
|
"foreignKey": "packagingFk"
|
|
}
|
|
}
|
|
}
|