CREATE OR REPLACE DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vn2008`.`warehouse_pickup` AS SELECT `wp`.`warehouseFk` AS `warehouse_id`, `wp`.`agencyModeFk` AS `agency_id` FROM `vn`.`warehousePickup` `wp`;