This commit is contained in:
2025-12-16 12:50:46 +06:00
parent 8d6a7651dc
commit 833b7961b7
13 changed files with 404 additions and 325 deletions

8
schema_reader.sql Normal file
View File

@@ -0,0 +1,8 @@
-- run as a privileged role (e.g., sensor_admin)
create role sensor_reader login password 'GLuBeBFPZuxjru2OYiwlI1eT5Fg';
grant usage on schema public to sensor_reader;
grant select on all tables in schema public to sensor_reader;
alter default privileges for role sensor_admin in schema public
grant select on tables to sensor_reader;