15 lines
365 B
SQL
15 lines
365 B
SQL
USE `vn`;
|
|
CREATE
|
|
OR REPLACE ALGORITHM = UNDEFINED
|
|
DEFINER = `root`@`%`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`defaulter` AS
|
|
SELECT
|
|
`d`.`client` AS `clientFk`,
|
|
`d`.`date` AS `created`,
|
|
`d`.`amount` AS `amount`,
|
|
`d`.`defaulterSince` AS `defaulterSinced`,
|
|
`d`.`hasChanged` AS `hasChanged`
|
|
FROM
|
|
`bi`.`defaulters` `d`;
|