7253-devToTest_2418 #2350
|
@ -0,0 +1,19 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`Rutas`
|
||||||
|
AS SELECT `r`.`id` AS `Id_Ruta`,
|
||||||
|
`r`.`workerFk` AS `Id_Trabajador`,
|
||||||
|
`r`.`created` AS `Fecha`,
|
||||||
|
`r`.`vehicleFk` AS `Id_Vehiculo`,
|
||||||
|
`r`.`agencyModeFk` AS `Id_Agencia`,
|
||||||
|
`r`.`time` AS `Hora`,
|
||||||
|
`r`.`isOk` AS `ok`,
|
||||||
|
`r`.`kmStart` AS `km_start`,
|
||||||
|
`r`.`kmEnd` AS `km_end`,
|
||||||
|
`r`.`started` AS `date_start`,
|
||||||
|
`r`.`finished` AS `date_end`,
|
||||||
|
`r`.`gestdocFk` AS `gestdoc_id`,
|
||||||
|
`r`.`cost` AS `cost`,
|
||||||
|
`r`.`m3` AS `m3`,
|
||||||
|
`r`.`description` AS `description`
|
||||||
|
FROM `vn`.`route` `r`
|
|
@ -0,0 +1,6 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`Tickets_turno`
|
||||||
|
AS SELECT `tw`.`ticketFk` AS `Id_Ticket`,
|
||||||
|
`tw`.`weekDay` AS `weekDay`
|
||||||
|
FROM `vn`.`ticketWeekly` `tw`
|
|
@ -0,0 +1,13 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`state`
|
||||||
|
AS SELECT `s`.`id` AS `id`,
|
||||||
|
`s`.`name` AS `name`,
|
||||||
|
`s`.`order` AS `order`,
|
||||||
|
`s`.`alertLevel` AS `alert_level`,
|
||||||
|
`s`.`code` AS `code`,
|
||||||
|
`s`.`sectorProdPriority` AS `sectorProdPriority`,
|
||||||
|
`s`.`nextStateFk` AS `nextStateFk`,
|
||||||
|
`s`.`isPreviousPreparable` AS `isPreviousPreparable`,
|
||||||
|
`s`.`isPicked` AS `isPicked`
|
||||||
|
FROM `vn`.`state` `s`
|
|
@ -0,0 +1,10 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`tag`
|
||||||
|
AS SELECT `t`.`id` AS `id`,
|
||||||
|
`t`.`name` AS `name`,
|
||||||
|
`t`.`isFree` AS `isFree`,
|
||||||
|
`t`.`isQuantitatif` AS `isQuantitatif`,
|
||||||
|
`t`.`sourceTable` AS `sourceTable`,
|
||||||
|
`t`.`unit` AS `unit`
|
||||||
|
FROM `vn`.`tag` `t`
|
|
@ -0,0 +1,10 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`tarifa_componentes`
|
||||||
|
AS SELECT `tarifa_componentes`.`Id_Componente` AS `Id_Componente`,
|
||||||
|
`tarifa_componentes`.`Componente` AS `Componente`,
|
||||||
|
`tarifa_componentes`.`tarifa_componentes_series_id` AS `tarifa_componentes_series_id`,
|
||||||
|
`tarifa_componentes`.`tarifa_class` AS `tarifa_class`,
|
||||||
|
`tarifa_componentes`.`tax` AS `tax`,
|
||||||
|
`tarifa_componentes`.`is_renewable` AS `is_renewable`
|
||||||
|
FROM `bi`.`tarifa_componentes`
|
|
@ -0,0 +1,7 @@
|
||||||
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
|
SQL SECURITY DEFINER
|
||||||
|
VIEW `vn2008`.`tarifa_componentes_series`
|
||||||
|
AS SELECT `tarifa_componentes_series`.`tarifa_componentes_series_id` AS `tarifa_componentes_series_id`,
|
||||||
|
`tarifa_componentes_series`.`Serie` AS `Serie`,
|
||||||
|
`tarifa_componentes_series`.`base` AS `base`
|
||||||
|
FROM `bi`.`tarifa_componentes_series`
|
Loading…
Reference in New Issue