USE `vn`;
CREATE 
     OR REPLACE ALGORITHM = UNDEFINED 
    DEFINER = `root`@`%` 
    SQL SECURITY DEFINER
VIEW `ticketRequest` AS
    SELECT 
        `t`.`Id_ORDEN` AS `id`,
        `t`.`ORDEN` AS `description`,
        `t`.`requesterFk` AS `requesterFk`,
        `t`.`CodCOMPRADOR` AS `atenderFk`,
        `t`.`CANTIDAD` AS `quantity`,
        `t`.`PRECIOMAX` AS `price`,
        `t`.`isOk` AS `isOk`,
        `t`.`Id_Movimiento` AS `saleFk`,
        `t`.`ticketFk` AS `ticketFk`,
        `t`.`odbc_date` AS `created`
    FROM
        `vn2008`.`Ordenes` `t`;
