CREATE OR REPLACE
    ALGORITHM = UNDEFINED 
    DEFINER = `root`@`%` 
    SQL SECURITY DEFINER
VIEW `vn`.`agencyMode` AS
    SELECT 
        `a`.`Id_Agencia` AS `id`,
        `a`.`Agencia` AS `name`,
        `a`.`description` AS `description`,
        `a`.`Vista` AS `deliveryMethodFk`,
        `a`.`Vista` AS `__deliveryMethod`,
        `a`.`Vista` AS `__view`,
        `a`.`m3` AS `m3`,
        `a`.`cod71` AS `cod71`,
        `a`.`web` AS `web`,
        `a`.`agency_id` AS `agencyFk`,
        `a`.`agency_id` AS `__agency`,
        `a`.`agency_service_id` AS `agencyServiceFk`,
        `a`.`agency_service_id` AS `__agencyService`,
        `a`.`inflacion` AS `inflation`,
        `a`.`inflacion` AS `__inflacion`,
        `a`.`is_volumetric` AS `isVolumetric`,
        `a`.`send_mail` AS `reportMail`
    FROM
        `vn2008`.`Agencias` `a`