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

14 lines
426 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `hedera`.`myTpvTransaction`
AS SELECT `t`.`id` AS `id`,
`t`.`merchantFk` AS `merchantFk`,
`t`.`clientFk` AS `clientFk`,
`t`.`receiptFk` AS `receiptFk`,
`t`.`amount` AS `amount`,
`t`.`response` AS `response`,
`t`.`status` AS `status`,
`t`.`created` AS `created`
FROM `hedera`.`tpvTransaction` `t`
WHERE `t`.`clientFk` = `account`.`myUser_getId`()