13 lines
385 B
MySQL
13 lines
385 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`workerLabour`
|
||
|
AS SELECT `b`.`id` AS `businessFk`,
|
||
|
`b`.`workerFk` AS `workerFk`,
|
||
|
`b`.`workcenterFk` AS `workCenterFk`,
|
||
|
`b`.`started` AS `started`,
|
||
|
`b`.`ended` AS `ended`,
|
||
|
`b`.`departmentFk` AS `departmentFk`,
|
||
|
`b`.`payedHolidays` AS `payedHolidays`
|
||
|
FROM `vn`.`business` `b`
|
||
|
ORDER BY `b`.`started` DESC
|