2018-03-15 12:47:47 +00:00
|
|
|
{
|
|
|
|
"name": "Expedition",
|
2018-11-29 12:01:28 +00:00
|
|
|
"base": "Loggable",
|
2018-03-15 12:47:47 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "expedition"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-03-15 12:47:47 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2022-10-04 07:27:31 +00:00
|
|
|
"freightItemFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-03-15 12:47:47 +00:00
|
|
|
},
|
|
|
|
"created": {
|
2022-05-16 08:19:43 +00:00
|
|
|
"type": "date"
|
2018-03-15 12:47:47 +00:00
|
|
|
},
|
|
|
|
"counter": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2023-08-24 12:59:28 +00:00
|
|
|
},
|
|
|
|
"externalId": {
|
|
|
|
"type": "string"
|
2018-03-15 12:47:47 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "agency-mode",
|
|
|
|
"foreignKey": "agencyModeFk"
|
|
|
|
},
|
|
|
|
"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",
|
2022-10-04 07:27:31 +00:00
|
|
|
"foreignKey": "freightItemFk"
|
2020-08-28 15:06:27 +00:00
|
|
|
},
|
|
|
|
"packaging": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Package",
|
|
|
|
"foreignKey": "packagingFk"
|
2018-03-15 12:47:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|