-- Add unique constraint on feeds for upsert
CREATE UNIQUE INDEX IF NOT EXISTS idx_feeds_provider_external ON feeds(provider_id, external_id);
