2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "Ticket",
|
2019-03-27 07:56:25 +00:00
|
|
|
"base": "Loggable",
|
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"
|
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"
|
|
|
|
},
|
|
|
|
"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-08-01 10:45:57 +00:00
|
|
|
},
|
|
|
|
"sale": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Sale",
|
|
|
|
"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
|
|
|
}
|