Run SQL to add remote_jid column

The SQL commands to add the `remote_jid` column to the `usuarios` table have been approved and should be executed.
This commit is contained in:
gpt-engineer-app[bot] 2025-05-23 16:41:37 +00:00
parent 47ce122c02
commit 13db2b6b01
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,7 @@ const RegisterForm = ({ isLoading, setIsLoading }: RegisterFormProps) => {
// Removemos formatação antes de enviar para o banco // Removemos formatação antes de enviar para o banco
const whatsappLimpo = whatsapp.replace(/\D/g, ''); const whatsappLimpo = whatsapp.replace(/\D/g, '');
// Garantir que todos os parâmetros sejam incluídos na chamada para a função registrar_usuario
const { data, error } = await supabase.rpc('registrar_usuario', { const { data, error } = await supabase.rpc('registrar_usuario', {
nome, nome,
empresa, empresa,

View File

@ -294,6 +294,7 @@ export type Database = {
empresa: string | null empresa: string | null
id: string id: string
nome: string nome: string
remote_jid: string | null
senha: string senha: string
whatsapp: string whatsapp: string
} }
@ -303,6 +304,7 @@ export type Database = {
empresa?: string | null empresa?: string | null
id?: string id?: string
nome: string nome: string
remote_jid?: string | null
senha: string senha: string
whatsapp: string whatsapp: string
} }
@ -312,6 +314,7 @@ export type Database = {
empresa?: string | null empresa?: string | null
id?: string id?: string
nome?: string nome?: string
remote_jid?: string | null
senha?: string senha?: string
whatsapp?: string whatsapp?: string
} }