Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
8 lines
329 B
SQL
8 lines
329 B
SQL
-- Superusers bypass row-level security even with FORCE, so the application
|
|
-- must connect as an ordinary role for tenant isolation to be enforced.
|
|
CREATE ROLE uptime LOGIN PASSWORD 'uptime';
|
|
CREATE DATABASE uptime OWNER uptime;
|
|
\connect uptime
|
|
CREATE EXTENSION IF NOT EXISTS timescaledb;
|
|
CREATE EXTENSION IF NOT EXISTS citext;
|