-- ── Pubkey allowlist ────────────────────────────────────────────────────────── -- Conformance: "Relay membership, pubkey allowlist, archived identities". -- PK becomes (community_id, pubkey). CREATE TABLE pubkey_allowlist ( community_id UUID NOT NULL REFERENCES communities(id), pubkey BYTEA NOT NULL, added_by BYTEA, added_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), note TEXT, PRIMARY KEY (community_id, pubkey) );