CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`Trabajadores` AS SELECT `w`.`id` AS `Id_Trabajador`, `w`.`firstName` AS `Nombre`, `w`.`userFk` 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`.`password__` AS `Password__`, `w`.`email__` AS `email__`, `w`.`extension__` AS `extension__`, `w`.`sub` AS `sub`, `w`.`user__` AS `user__`, `w`.`typeBussines__` AS `Contrato_Tipo__`, `w`.`laborCategory__` AS `Categoria_Laboral__`, `w`.`started__` AS `Fecha_Inicio__`, `w`.`ended__` AS `Fecha_Fin__`, `w`.`notes__` AS `Notas__`, `w`.`address__` AS `address__`, `w`.`birthed__` AS `date_birth__`, `w`.`maritalStatus` AS `marital_status`, `w`.`clientFk__` AS `Id_Cliente_Interno__` FROM `vn`.`worker` `w`