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

61 lines
1.2 KiB
JSON
Raw Normal View History

{
"name": "Expedition",
"base": "VnModel",
"options": {
"mysql": {
"table": "expedition"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"isBox": {
"type": "Number"
},
"created": {
"type": "Date"
},
"counter": {
"type": "Number"
},
"checked": {
"type": "Number"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"agencyMode": {
"type": "belongsTo",
"model": "agency-mode",
"foreignKey": "agencyModeFk"
},
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
2018-07-17 06:44:31 +00:00
},
"packages": {
"type": "hasMany",
"model": "TicketPackaging",
"foreignKey": "ticketFk"
},
"box": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "isBox"
}
}
}