require('dotenv').config();const { createClient } = require('@supabase/supabase-js');const sb = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_SERVICE_KEY);(async()=>{console.log('Finding actual columns...\n');try{const{error:e1}=await sb.from('tasks').insert([{title:'test'}]).select();if(e1) console.log('Missing (1):',e1.message);const{error:e2}=await sb.from('tasks').insert([{title:'test',category:'test'}]).select();if(e2) console.log('Missing (2):',e2.message);const{error:e3}=await sb.from('tasks').insert([{title:'test',category:'test',description:'test'}]).select();if(e3) console.log('Missing (3):',e3.message);else console.log('✅ Works with: title, category, description');}catch(err){console.error('Error:',err.message);}})();
