CREATE OR REPLACE DEFINER=`root`@`localhost`
	SQL SECURITY DEFINER
	VIEW `hedera`.`myAddress`
AS SELECT `t`.`id` AS `id`,
	`t`.`clientFk` AS `clientFk`,
	`t`.`street` AS `street`,
	`t`.`city` AS `city`,
	`t`.`postalCode` AS `postalCode`,
	`t`.`provinceFk` AS `provinceFk`,
	`t`.`nickname` AS `nickname`,
	`t`.`isDefaultAddress` AS `isDefaultAddress`,
	`t`.`isActive` AS `isActive`,
	`t`.`longitude` AS `longitude`,
	`t`.`latitude` AS `latitude`,
	`t`.`agencyModeFk` AS `agencyModeFk`
FROM `vn`.`address` `t`
WHERE `t`.`clientFk` = `account`.`myUser_getId`()
WITH CASCADED CHECK OPTION
