salix/db/routines/vn/views/paymentExchangeInsurance.sql

17 lines
531 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`paymentExchangeInsurance`
AS SELECT `p`.`pago_sdc_id` AS `id`,
`p`.`importe` AS `amount`,
`p`.`fecha` AS `created`,
`p`.`vencimiento` AS `dueDay`,
`p`.`entity_id` AS `entityFk`,
`p`.`ref` AS `ref`,
`p`.`rate` AS `rate`,
`p`.`empresa_id` AS `companyFk`,
`p`.`financialProductTypefk` AS `financialProductTypefk`,
`p`.`upperBarrier` AS `upperBarrier`,
`p`.`lowerBarrier` AS `lowerBarrier`,
`p`.`strike` AS `strike`
FROM `vn2008`.`pago_sdc` `p`