40 lines
1.1 KiB
SQL
40 lines
1.1 KiB
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`Tramos` AS
|
|
SELECT 1;
|
|
|
|
GRANT SELECT ON TABLE vn2008.Tramos TO `employee`;
|
|
GRANT SELECT ON TABLE vn.timeSlots TO `employee`;
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`Proveedores_cargueras` AS
|
|
SELECT 1;
|
|
|
|
GRANT SELECT ON TABLE vn2008.Proveedores_cargueras TO `buyer`;
|
|
GRANT SELECT ON TABLE vn.supplierFreight TO `buyer`;
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`payroll_employee` AS
|
|
SELECT 1;
|
|
|
|
GRANT SELECT,INSERT ON TABLE vn2008.payroll_employee TO `hr`;
|
|
GRANT SELECT,INSERT ON TABLE vn.payrollWorker TO `hr`;
|
|
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`payroll_centros` AS
|
|
SELECT 1;
|
|
|
|
GRANT SELECT ON TABLE vn2008.payroll_centros TO `hr`;
|
|
GRANT SELECT ON TABLE vn.payrollWorkCenter TO `hr`;
|
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn2008`.`payroll_conceptos` AS
|
|
SELECT 1;
|
|
|
|
GRANT SELECT,UPDATE ON TABLE vn2008.payroll_conceptos TO `hr`;
|
|
GRANT SELECT,UPDATE ON TABLE vn.payrollComponent TO `hr`; |