12 lines
301 B
MySQL
12 lines
301 B
MySQL
|
CREATE
|
||
|
ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `account`.`emailUser` AS
|
||
|
SELECT
|
||
|
`u`.`id` AS `userFk`,
|
||
|
CONCAT(`u`.`name`, '@', `mc`.`domain`) AS `email`
|
||
|
FROM
|
||
|
|
||
|
(`account`.`user` `u`
|
||
|
JOIN `account`.`mailConfig` `mc`)
|