Importante: Para usar anotações, execute este SQL no Supabase → SQL Editor:
CREATE TABLE anotacoes (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
cliente_id uuid REFERENCES clientes(id) ON DELETE CASCADE,
texto text NOT NULL,
data date NOT NULL,
created_at timestamptz DEFAULT now()
);
ALTER TABLE anotacoes ENABLE ROW LEVEL SECURITY;
CREATE POLICY "acesso_publico" ON anotacoes
FOR ALL USING (true) WITH CHECK (true);