33 lines
1.2 KiB
SQL
33 lines
1.2 KiB
SQL
-- flight
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`flight` AS
|
|
SELECT 1;
|
|
GRANT SELECT, INSERT, UPDATE ON TABLE vn2008.flight TO `logistic`;
|
|
GRANT SELECT, INSERT, UPDATE ON TABLE vn.flight TO `logistic`;
|
|
-- integra2_province
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`integra2_province` AS
|
|
SELECT 1;
|
|
GRANT SELECT ON TABLE vn2008.integra2_province TO `employee`;
|
|
GRANT SELECT ON TABLE vn.integra2Province TO `employee`;
|
|
-- link
|
|
|
|
GRANT SELECT ON TABLE vn.company TO `administrative`;
|
|
GRANT SELECT ON TABLE vn.company TO `hr`;
|
|
|
|
-- warehouse_pickup
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`warehouse_pickup` AS
|
|
SELECT 1;
|
|
GRANT SELECT ON TABLE vn2008.warehouse_pickup TO `logistic`;
|
|
GRANT SELECT ON TABLE vn.warehousePickup TO `logistic`;
|
|
GRANT SELECT ON TABLE vn2008.warehouse_pickup TO `claimManager`;
|
|
GRANT SELECT ON TABLE vn.warehousePickup TO `claimManager`;
|
|
GRANT SELECT ON TABLE vn2008.warehouse_pickup TO `employee`;
|
|
GRANT SELECT ON TABLE vn.warehousePickup TO `employee`;
|
|
GRANT SELECT ON TABLE vn2008.warehouse_pickup TO `deliveryAssistant`;
|
|
GRANT SELECT ON TABLE vn.warehousePickup TO `deliveryAssistant`;
|