2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "Ticket",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
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": {
|
2023-02-24 13:41:02 +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
|
|
|
},
|
2023-02-24 13:41:02 +00:00
|
|
|
"isSigned": {
|
|
|
|
"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"
|
2023-04-26 11:49:08 +00:00
|
|
|
},
|
|
|
|
"weight": {
|
|
|
|
"type": "number"
|
2023-10-11 10:20:30 +00:00
|
|
|
},
|
|
|
|
"cmrFk": {
|
|
|
|
"type": "number"
|
2024-09-03 13:03:09 +00:00
|
|
|
},
|
|
|
|
"problem": {
|
|
|
|
"type": "string"
|
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"
|
|
|
|
},
|
2024-06-11 06:50:32 +00:00
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "VnUser",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
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"
|
|
|
|
},
|
2022-07-14 11:40:50 +00:00
|
|
|
"ticketSales": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Sale",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"ticketServices": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "TicketService",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
2018-11-14 13:33:25 +00:00
|
|
|
"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"
|
2023-10-11 12:20:35 +00:00
|
|
|
},
|
|
|
|
"cmrFk": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Cmr",
|
|
|
|
"foreignKey": "cmrFk"
|
2024-06-10 12:51:48 +00:00
|
|
|
},
|
|
|
|
"ticketCollections": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "TicketCollection",
|
|
|
|
"foreignKey": "ticketFk"
|
2018-11-14 13:33:25 +00:00
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
}
|
2023-02-24 13:41:02 +00:00
|
|
|
}
|