const { createClient } = require('@supabase/supabase-js');
const supabase = createClient('http://supabasekong-rhi9nc2gvlhrqnm734tiqdl6.167.233.145.149.sslip.io', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTc4NjEyNDEwMCwiZXhwIjo0OTQxNzk3NzAwLCJyb2xlIjoic2VydmljZV9yb2xlIn0.4wS7vys6ZoCxAyUSSwFN0_BHvm_LRWPDIlJ1dHPifx4');
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();
