salix/db/routines/bi/views/defaulters.sql

11 lines
317 B
MySQL
Raw Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `bi`.`defaulters`
AS SELECT `d`.`clientFk` AS `client`,
`d`.`created` AS `date`,
`d`.`amount` AS `amount`,
`d`.`defaulterSinced` AS `defaulterSince`,
`d`.`hasChanged` AS `hasChanged`,
`d`.`frozened` AS `frozened`
FROM `bs`.`defaulter` `d`