-- ── Rate limit violations ───────────────────────────────────────────────────── -- OPERATOR-GLOBAL: a deployment-health / abuse table, never tenant-observable. -- Listed in the lint allowlist. Carries community_id as an attribution label -- only (nullable, no uniqueness over it). CREATE TABLE rate_limit_violations ( id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, community_id UUID, pubkey BYTEA, violation_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), limit_type VARCHAR(64), limit_value INT, actual_value INT, action_taken VARCHAR(64) );