const { createClient } = require('@supabase/supabase-js');
const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_ROLE_KEY);
async function test() {
  const { data, error } = await supabase.from('cases').select('*, documents(id)');
  console.log('Error:', error);
  console.log('Data:', JSON.stringify(data, null, 2));
}
test();
