2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "Ticket",
|
2019-03-27 07:56:25 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
2021-03-19 18:20:19 +00:00
|
|
|
"model":"TicketLog",
|
|
|
|
"showField": "id"
|
2019-03-27 07:56:25 +00:00
|
|
|
},
|
2018-03-12 12:55:18 +00:00
|
|
|
"options": {
|
2018-11-14 13:33:25 +00:00
|
|
|
"mysql": {
|
2018-03-12 12:55:18 +00:00
|
|
|
"table": "ticket"
|
2018-11-14 13:33:25 +00:00
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
2018-11-14 13:33:25 +00:00
|
|
|
"id": {
|
|
|
|
"id": true,
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number",
|
2018-11-14 13:33:25 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"shipped": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "date",
|
2018-11-14 13:33:25 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"landed": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "date"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"nickname": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "string"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"location": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "string"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"solution": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "string"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"packages": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
2020-10-08 11:42:20 +00:00
|
|
|
"updated": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "date",
|
2020-10-08 11:42:20 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "created"
|
|
|
|
}
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"isDeleted": {
|
|
|
|
"type": "boolean"
|
2019-03-22 11:34:42 +00:00
|
|
|
},
|
|
|
|
"priority": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number"
|
2020-06-02 06:59:04 +00:00
|
|
|
},
|
|
|
|
"zoneFk": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number"
|
2020-10-29 10:09:58 +00:00
|
|
|
},
|
|
|
|
"zonePrice": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number"
|
2020-10-29 10:09:58 +00:00
|
|
|
},
|
|
|
|
"zoneBonus": {
|
2021-03-10 18:25:26 +00:00
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"totalWithVat": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"totalWithoutVat": {
|
|
|
|
"type": "number"
|
2018-11-14 13:33:25 +00:00
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
2018-11-14 13:33:25 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
2019-01-18 12:34:50 +00:00
|
|
|
"ship": {
|
2019-12-17 07:38:36 +00:00
|
|
|
"type": "hasOne",
|
2019-01-18 12:34:50 +00:00
|
|
|
"model": "Stowaway",
|
|
|
|
"foreignKey": "shipFk"
|
|
|
|
},
|
|
|
|
"stowaway": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Stowaway",
|
|
|
|
"foreignKey": "id"
|
|
|
|
},
|
2018-11-14 13:33:25 +00:00
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
},
|
|
|
|
"invoiceOut": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "InvoiceOut",
|
2019-03-28 10:55:23 +00:00
|
|
|
"foreignKey": "refFk",
|
|
|
|
"primaryKey": "ref"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"address": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Address",
|
|
|
|
"foreignKey": "addressFk"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Route",
|
|
|
|
"foreignKey": "routeFk"
|
|
|
|
},
|
|
|
|
"company": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Company",
|
|
|
|
"foreignKey": "companyFk"
|
|
|
|
},
|
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
2020-09-17 07:58:00 +00:00
|
|
|
"foreignKey": "agencyModeFk"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"packages": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "TicketPackaging",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"tracking": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "TicketTracking",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"notes": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "TicketObservation",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
2020-06-23 11:40:49 +00:00
|
|
|
"ticketState": {
|
2018-11-14 13:33:25 +00:00
|
|
|
"type": "hasOne",
|
|
|
|
"model": "TicketState",
|
|
|
|
"foreignKey": "ticketFk"
|
2019-05-09 09:25:46 +00:00
|
|
|
},
|
|
|
|
"zone": {
|
2019-05-20 13:04:33 +00:00
|
|
|
"type": "belongsTo",
|
2019-05-09 09:25:46 +00:00
|
|
|
"model": "Zone",
|
|
|
|
"foreignKey": "zoneFk"
|
2018-11-14 13:33:25 +00:00
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
}
|
2018-11-14 13:33:25 +00:00
|
|
|
}
|