23 lines
672 B
SQL
23 lines
672 B
SQL
USE `vn`;
|
|
CREATE
|
|
OR REPLACE ALGORITHM = UNDEFINED
|
|
DEFINER = `root`@`%`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`travel` AS
|
|
SELECT
|
|
`t`.`id` AS `id`,
|
|
`t`.`shipment` AS `shipped`,
|
|
`t`.`shipment_hour` AS `shipmentHour`,
|
|
`t`.`landing` AS `landed`,
|
|
`t`.`landing_hour` AS `landingHour`,
|
|
`t`.`warehouse_id` AS `warehouseInFk`,
|
|
`t`.`warehouse_id_out` AS `warehouseOutFk`,
|
|
`t`.`agency_id` AS `agencyFk`,
|
|
`t`.`ref` AS `ref`,
|
|
`t`.`delivered` AS `isDelivered`,
|
|
`t`.`received` AS `isReceived`,
|
|
`t`.`m3` AS `m3`,
|
|
`t`.`kg` AS `kg`
|
|
FROM
|
|
`vn2008`.`travel` `t`;
|