16 lines
462 B
MySQL
16 lines
462 B
MySQL
|
USE `vn`;
|
||
|
CREATE
|
||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`warehouse` AS
|
||
|
SELECT
|
||
|
`t`.`id` AS `id`,
|
||
|
`t`.`name` AS `name`,
|
||
|
`t`.`inventario` AS `isInventory`,
|
||
|
`t`.`is_comparative` AS `isComparative`,
|
||
|
`t`.`comisionantes` AS `hasComission`,
|
||
|
`t`.`reserve` AS `hasAvailable`,
|
||
|
`t`.`isManaged` AS `isManaged`
|
||
|
FROM
|
||
|
`vn2008`.`warehouse` `t`;
|