salix/modules/ticket/back/models/expedition.json

67 lines
1.3 KiB
JSON
Raw Normal View History

{
"name": "Expedition",
2018-11-29 12:01:28 +00:00
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket"
},
"options": {
"mysql": {
"table": "expedition"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"isBox": {
"type": "Number"
},
"created": {
"type": "Date"
},
"counter": {
"type": "Number"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"agencyMode": {
"type": "belongsTo",
"model": "agency-mode",
"foreignKey": "agencyModeFk"
},
2020-08-28 15:06:27 +00:00
"packageItem": {
"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"
},
2020-08-28 15:06:27 +00:00
"freightItem": {
2018-07-17 06:44:31 +00:00
"type": "belongsTo",
"model": "Item",
"foreignKey": "isBox"
2020-08-28 15:06:27 +00:00
},
"packaging": {
"type": "belongsTo",
"model": "Package",
"foreignKey": "packagingFk"
}
}
}