import { createClient } from '@supabase/supabase-js'

const supabaseUrl = 'https://jqklhhpyykzrktikjnmb.supabase.co'
const supabaseAnonKey =
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Impxa2xoaHB5eWt6cmt0aWtqbm1iIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjgzODQ0MDgsImV4cCI6MjA4Mzk2MDQwOH0.QsPuBnyUtRPSavlqKj3IGR9c8juT02LY_hSi-j3c6M0'

const supabase = createClient(supabaseUrl, supabaseAnonKey)

async function test() {
  console.log('Testing notifications table insert...')
  
  const { data, error } = await supabase.from('notifications').insert([
    {
      user_id: '00000000-0000-0000-0000-000000000000',
      message: 'test message'
    }
  ]).select()
  
  if (error) {
    console.error('Insert error:', error)
  } else {
    console.log('Insert success:', data)
  }
}

test()
