20 lines
578 B
MySQL
20 lines
578 B
MySQL
|
USE `vn`;
|
||
|
CREATE
|
||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`dms` AS
|
||
|
SELECT
|
||
|
`g`.`id` AS `id`,
|
||
|
`g`.`gesttip_id` AS `dmsTypeFk`,
|
||
|
`g`.`file` AS `file`,
|
||
|
`g`.`trabajador_id` AS `workerFk`,
|
||
|
`g`.`warehouse_id` AS `warehouseFk`,
|
||
|
`g`.`emp_id` AS `companyFk`,
|
||
|
`g`.`orden` AS `priority`,
|
||
|
`g`.`file` AS `hasFile`,
|
||
|
`g`.`sref` AS `reference`,
|
||
|
`g`.`brief` AS `description`,
|
||
|
`g`.`odbc_date` AS `created`
|
||
|
FROM
|
||
|
`vn2008`.`gestdoc` `g`
|