#!/bin/bash # Creates two isolated databases (ADR-003): identity (direct identifiers) and clinical (pseudonymised data + audit). # Each has its own role; neither role can connect to the other database. set -euo pipefail psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname postgres <