CREATE USER simugaz_api WITH PASSWORD 'changeme';
GRANT SELECT ON TABLE device, reading TO simugaz_api;

CREATE USER simugaz_consumer WITH PASSWORD 'changemetoo';
GRANT SELECT, INSERT ON TABLE device TO simugaz_consumer;
GRANT INSERT ON TABLE reading TO simugaz_consumer;