create new views #9440
This commit is contained in:
parent
5abe575fbe
commit
9e3788b37b
|
@ -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`;
|
|
@ -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`;
|
|
@ -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`;
|
Loading…
Reference in New Issue