 -- risko.loss_curve_data
 GRANT SELECT ON risko.loss_curve_data TO GROUP openquake;
 GRANT SELECT,INSERT,UPDATE,DELETE ON risko.loss_curve_data TO oq_risko_writer;
->>>>>>> master
 
 -- uiapi.input
 GRANT SELECT ON uiapi.input TO GROUP openquake;


-- hzrdi.complex_fault
GRANT SELECT ON hzrdi.complex_fault TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.complex_fault TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.complex_fault TO oq_hzrdi_writer;

-- hzrdi.fault_edge
GRANT SELECT ON hzrdi.fault_edge TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.fault_edge TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.fault_edge TO oq_hzrdi_writer;

-- hzrdi.focal_mechanism
GRANT SELECT ON hzrdi.focal_mechanism TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.focal_mechanism TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.focal_mechanism TO oq_hzrdi_writer;

-- hzrdi.mfd_evd
GRANT SELECT ON hzrdi.mfd_evd TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.mfd_evd TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.mfd_evd TO oq_hzrdi_writer;

-- hzrdi.mfd_tgr
GRANT SELECT ON hzrdi.mfd_tgr TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.mfd_tgr TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.mfd_tgr TO oq_hzrdi_writer;

-- hzrdi.r_depth_distr
GRANT SELECT ON hzrdi.r_depth_distr TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.r_depth_distr TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.r_depth_distr TO oq_hzrdi_writer;

-- hzrdi.r_rate_mdl
GRANT SELECT ON hzrdi.r_rate_mdl TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.r_rate_mdl TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.r_rate_mdl TO oq_hzrdi_writer;

-- hzrdi.rupture
GRANT SELECT ON hzrdi.rupture TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.rupture TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.rupture TO oq_hzrdi_writer;

-- hzrdi.simple_fault
GRANT SELECT ON hzrdi.simple_fault TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.simple_fault TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.simple_fault TO oq_hzrdi_writer;

-- hzrdi.source
GRANT SELECT ON hzrdi.source TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON hzrdi.source TO oq_hzrdi_etl;
GRANT SELECT,INSERT,UPDATE,DELETE ON hzrdi.source TO oq_hzrdi_writer;

-- hzrdo.hazard_map


-- eqcat.catalog
GRANT SELECT ON eqcat.catalog TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON eqcat.catalog TO oq_eqcat_writer;
GRANT SELECT,INSERT,UPDATE,DELETE ON eqcat.catalog TO oq_eqcat_writer;

-- eqcat.magnitude
GRANT SELECT ON eqcat.magnitude TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON eqcat.magnitude TO oq_eqcat_writer;
GRANT SELECT,INSERT,UPDATE,DELETE ON eqcat.magnitude TO oq_eqcat_writer;

-- eqcat.surface
GRANT SELECT ON eqcat.surface TO GROUP openquake;
GRANT SELECT,INSERT,UPDATE ON eqcat.surface TO oq_eqcat_writer;
GRANT SELECT,INSERT,UPDATE,DELETE ON eqcat.surface TO oq_eqcat_writer;

-- eqcat.catalog_allfields view
