salix/db/routines/hedera/views/myMenu.sql

15 lines
355 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `hedera`.`myMenu`
AS SELECT `t`.`id` AS `id`,
`t`.`path` AS `path`,
`t`.`description` AS `description`,
`t`.`parentFk` AS `parentFk`
FROM (
`hedera`.`menu` `t`
JOIN `account`.`myRole` `r` ON(`r`.`id` = `t`.`roleFk`)
)
ORDER BY `t`.`parentFk`,
`t`.`displayOrder`,
`t`.`id`