16 lines
462 B
SQL
16 lines
462 B
SQL
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`; |