BEGIN; CREATE TABLE IF NOT EXISTS mcp_owner_revocations ( owner_id text PRIMARY KEY, invalid_before timestamptz NOT NULL, updated_at timestamptz NOT NULL DEFAULT now() ); CREATE TABLE IF NOT EXISTS mcp_portal_events ( id uuid PRIMARY KEY, owner_id text NOT NULL, payload_hash text NOT NULL, created_at timestamptz NOT NULL DEFAULT now() ); CREATE INDEX IF NOT EXISTS mcp_portal_events_time ON mcp_portal_events(created_at); COMMIT;