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

async function addTask() {
  const { data, error } = await supabase.from('tasks').insert({
    title: 'Give Website Feedback (5 min)',
    description: 'Visit our landing page and provide honest feedback. Share first impressions, clarity of value proposition, confusing elements, and suggestions.',
    category: 'other',
    budget: 75,
    max_workers: 5,
    status: 'open',
    expires_at: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString()
  }).select();
  
  console.log(error ? 'ERROR: ' + error.message : 'Added: ' + data[0].title);
}
addTask();
