-- ============================================================
-- Public read access for completed download items
-- ============================================================
-- Allows the mobile app (anon + authenticated) to query
-- completed tracks for workout music playback.

CREATE POLICY "Allow public read access to completed items"
  ON public.download_items
  FOR SELECT USING (
    status = 'completed'
  );
