17 lines
491 B
SQL
17 lines
491 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`gestdoc`
|
|
AS SELECT `d`.`id` AS `id`,
|
|
`d`.`dmsTypeFk` AS `gesttip_id`,
|
|
`d`.`file` AS `file`,
|
|
`d`.`contentType` AS `contentType`,
|
|
`d`.`workerFk` AS `trabajador_id`,
|
|
`d`.`warehouseFk` AS `warehouse_id`,
|
|
`d`.`companyFk` AS `emp_id`,
|
|
`d`.`hardCopyNumber` AS `orden`,
|
|
`d`.`hasFile` AS `original`,
|
|
`d`.`reference` AS `sref`,
|
|
`d`.`description` AS `brief`,
|
|
`d`.`created` AS `odbc_date`
|
|
FROM `vn`.`dms` `d`
|