CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`mandato` AS SELECT `m`.`id` AS `id`, `m`.`clientFk` AS `Id_Cliente`, `m`.`companyFk` AS `empresa_id`, `m`.`code` AS `Id_mandato`, `m`.`created` AS `FAlta`, `m`.`finished` AS `Fbaja`, `m`.`mandateTypeFk` AS `idmandato_tipo` FROM `vn`.`mandate` `m`