create new views #9440

This commit is contained in:
Bernat 2019-01-17 12:12:26 +01:00
parent 5abe575fbe
commit 9e3788b37b
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
CREATE OR REPLACE VIEW vn.labourHolidayType
AS SELECT
`cf`.`calendar_free_id` AS `id`,
`cf`.`type` AS `name`,
`cf`.`rgb` AS `rgb`
FROM `postgresql`.`calendar_free` `cf`;

View File

@ -0,0 +1,5 @@
CREATE OR REPLACE VIEW vn.labourHolidayLegend
AS SELECT
`cll`.`calendar_labour_legend_id` AS `id`,
`cll`.`descripcion` AS `description`
FROM `postgresql`.`calendar_labour_legend` `cll`;

View File

@ -0,0 +1,8 @@
CREATE OR REPLACE VIEW vn.labourHoliday
AS SELECT
`cl`.`calendar_labour_legend_id` AS `labourHolidayLegendFk`,
`cl`.`calendar_free_id` AS `labourHolidayTypeFk`,
`cl`.`workcenter_id` AS `workCenterFk`,
`cl`.`day` AS `dated`
FROM
`postgresql`.`calendar_labour` `cl`;