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

64 lines
1.3 KiB
JSON
Raw Normal View History

{
"name": "Expedition",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "expedition"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"description": "Identifier"
},
"freightItemFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"created": {
"type": "date"
},
"counter": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"externalId": {
"type": "string"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"agencyMode": {
"type": "belongsTo",
"model": "AgencyMode",
"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",
"foreignKey": "freightItemFk"
2020-08-28 15:06:27 +00:00
},
"packaging": {
"type": "belongsTo",
"model": "Package",
"foreignKey": "packagingFk"
}
}
}