17 lines
505 B
SQL
17 lines
505 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`Trabajadores`
|
|
AS SELECT `w`.`id` AS `Id_Trabajador`,
|
|
`w`.`firstName` AS `Nombre`,
|
|
`w`.`id` AS `user_id`,
|
|
`w`.`phone` AS `phone`,
|
|
`w`.`bossFk` AS `boss`,
|
|
NULL AS `Foto`,
|
|
`w`.`fiDueDate` AS `DniExpiration`,
|
|
`w`.`code` AS `CodigoTrabajador`,
|
|
`w`.`lastName` AS `Apellidos`,
|
|
`w`.`hasMachineryAuthorized` AS `hasMachineryAuthorized`,
|
|
`w`.`sub` AS `sub`,
|
|
`w`.`maritalStatus` AS `marital_status`
|
|
FROM `vn`.`worker` `w`
|