2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "Ticket",
|
2019-03-27 07:56:25 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"TicketLog"
|
|
|
|
},
|
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,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"shipped": {
|
2019-02-28 07:55:34 +00:00
|
|
|
"type": "Date",
|
2018-11-14 13:33:25 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"landed": {
|
2019-02-28 07:55:34 +00:00
|
|
|
"type": "Date"
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"nickname": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"location": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"solution": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"packages": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2020-10-08 11:42:20 +00:00
|
|
|
"updated": {
|
|
|
|
"type": "Date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "created"
|
|
|
|
}
|
2018-11-14 13:33:25 +00:00
|
|
|
},
|
|
|
|
"isDeleted": {
|
|
|
|
"type": "boolean"
|
2019-03-22 11:34:42 +00:00
|
|
|
},
|
|
|
|
"priority": {
|
|
|
|
"type": "Number"
|
2020-06-02 06:59:04 +00:00
|
|
|
},
|
|
|
|
"zoneFk": {
|
|
|
|
"type": "Number"
|
2020-10-29 10:09:58 +00:00
|
|
|
},
|
|
|
|
"zonePrice": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"zoneBonus": {
|
|
|
|
"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
|
|
|
}
|