26 lines
855 B
SQL
26 lines
855 B
SQL
CREATE OR REPLACE
|
|
ALGORITHM = UNDEFINED
|
|
DEFINER = `root`@`%`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`ticket` AS
|
|
SELECT
|
|
`t`.`Id_Ticket` AS `id`,
|
|
`t`.`Id_Cliente` AS `clientFk`,
|
|
`t`.`warehouse_id` AS `warehouseFk`,
|
|
`t`.`Fecha` AS `shipped`,
|
|
`t`.`landing` AS `landed`,
|
|
`t`.`Alias` AS `nickname`,
|
|
`t`.`Factura` AS `refFk`,
|
|
`t`.`Id_Consigna` AS `addressFk`,
|
|
`t`.`Localizacion` AS `location`,
|
|
`t`.`Solucion` AS `solution`,
|
|
`t`.`Id_Ruta` AS `routeFk`,
|
|
`t`.`empresa_id` AS `companyFk`,
|
|
`t`.`Id_Agencia` AS `agencyModeFk`,
|
|
`t`.`Prioridad` AS `priority`,
|
|
`t`.`Bultos` AS `packages`,
|
|
`t`.`isDeleted` AS `isDeleted`,
|
|
`t`.`odbc_date` AS `created`,
|
|
`t`.`zoneFk` AS `zoneFk`
|
|
FROM
|
|
`vn2008`.`Tickets` `t`; |