USE `vn`; CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `root`@`%` SQL SECURITY DEFINER VIEW `vn`.`item` AS SELECT `t`.`Id_Article` AS `id`, `t`.`Article` AS `name`, `t`.`tipo_id` AS `typeFk`, `t`.`Medida` AS `size`, `t`.`Color` AS `inkFk`, `t`.`Categoria` AS `category`, `t`.`Tallos` AS `stems`, `t`.`id_origen` AS `originFk`, `t`.`description` AS `description`, `t`.`producer_id` AS `producerFk`, `t`.`Codintrastat` AS `intrastatFk`, `t`.`offer` AS `isOnOffer`, `t`.`expenceFk` AS `expenceFk`, `t`.`bargain` AS `isBargain`, `t`.`comments` AS `comment`, `t`.`relevancy` AS `relevancy`, `t`.`Foto` AS `image`, `t`.`generic` AS `generic`, `t`.`density` AS `density`, `t`.`iva_group_id` AS `taxClassFk`, `t`.`PVP` AS `minPrice`, `t`.`Min` AS `hasMinPrice` FROM `vn2008`.`Articles` `t`;