// Script para atualizar senha do cliente const { createClient } = require('@supabase/supabase-js'); const supabaseUrl = 'https://ydhzylfnpqlxnzfcclla.supabase.co'; const supabaseKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InlkaHp5bGZucHFseG56ZmNjbGxhIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjA1NDA1NjIsImV4cCI6MjA3NjExNjU2Mn0.gIHxyAYngqkJ8z2Gt5ESYmG605vhY_LGTQB7Cjp4ZTA'; const supabase = createClient(supabaseUrl, supabaseKey); async function updatePassword() { try { // Atualizar senha do cliente Tiago const { data, error } = await supabase .from('clientes') .update({ senha_hash: '1234' }) .eq('whatsapp', '43999764411') .select(); if (error) { console.error('Erro:', error); } else { console.log('Senha atualizada com sucesso:', data); } } catch (err) { console.error('Erro geral:', err); } } updatePassword();