require('dotenv').config();
const { createClient } = require('@supabase/supabase-js');
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_KEY);

async function check() {
  const { data } = await supabase
    .from('submissions')
    .select('id, attachments, content')
    .not('attachments', 'is', null)
    .limit(5);
  
  console.log('Submissions with attachments:', JSON.stringify(data, null, 2));
  process.exit(0);
}
check();
