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

166 lines
3.8 KiB
JSON
Raw Permalink Normal View History

{
"name": "Ticket",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "ticket"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"shipped": {
"type": "date",
"required": true
},
"landed": {
"type": "date"
},
"nickname": {
"type": "string"
},
"location": {
"type": "string"
},
"solution": {
"type": "string"
},
"packages": {
"type": "number"
},
2020-10-08 11:42:20 +00:00
"updated": {
"type": "date",
2020-10-08 11:42:20 +00:00
"mysql": {
"columnName": "created"
}
},
"isDeleted": {
"type": "boolean"
2019-03-22 11:34:42 +00:00
},
"isSigned": {
"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"
2020-10-29 10:09:58 +00:00
},
"zoneBonus": {
"type": "number"
},
"totalWithVat": {
"type": "number"
},
"totalWithoutVat": {
"type": "number"
},
"weight": {
"type": "number"
2023-10-11 10:20:30 +00:00
},
"cmrFk": {
"type": "number"
},
"problem": {
"type": "string"
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"user": {
"type": "belongsTo",
"model": "VnUser",
"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"
},
"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"
},
"packages": {
"type": "hasMany",
"model": "TicketPackaging",
"foreignKey": "ticketFk"
},
"ticketSales": {
"type": "hasMany",
"model": "Sale",
"foreignKey": "ticketFk"
},
"ticketServices": {
"type": "hasMany",
"model": "TicketService",
"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": {
"type": "hasOne",
"model": "TicketState",
"foreignKey": "ticketFk"
2019-05-09 09:25:46 +00:00
},
"zone": {
"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"
}
}
}