7253-devToTest_2418 #2350

Merged
alexm merged 320 commits from 7253-devToTest_2418 into test 2024-04-23 08:02:46 +00:00
6 changed files with 65 additions and 0 deletions
Showing only changes of commit e601310d3e - Show all commits

View File

@ -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`

View File

@ -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`

View File

@ -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`

View File

@ -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`

View File

@ -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`

View File

@ -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`