Input: quais colunas tem a tabela contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: quais colunas tem a tabela usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: schema da tabela usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: describe usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra a estrutura de usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: campos da tabela usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: que campos tem usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de contratos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contratos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de parcelas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='parcelas' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de turmas

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turmas' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de turma_participantes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_participantes' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de user_profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='user_profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de planos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='planos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de categorias

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='categorias' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de lotes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='lotes' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de boletos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='boletos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de pix_gerados

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='pix_gerados' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de payments

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='payments' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de wallets

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallets' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de wallet_transactions

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='wallet_transactions' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de rescission_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='rescission_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de renegociacoes

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='renegociacoes' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de transfer_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transfer_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de mudancas_plano

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='mudancas_plano' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de campanhas_desconto

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='campanhas_desconto' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de administradores

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='administradores' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de eventos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='eventos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de itens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='itens' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de aptidao_financeira_alunos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='aptidao_financeira_alunos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de credit_card_tokens

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='credit_card_tokens' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de email_change_requests

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='email_change_requests' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de contract_signatures

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_signatures' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de contract_templates

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='contract_templates' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de turma_depositos

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='turma_depositos' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de transacoes_financeiras

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='transacoes_financeiras' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de hubia_messages

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_messages' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de hubia_connections

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_connections' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de hubia_chat_history

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='hubia_chat_history' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de profiles

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='profiles' AND table_schema='public' ORDER BY ordinal_position"}


Input: colunas de usuarios

Output: {"action": "sql", "sql": "SELECT column_name, data_type FROM information_schema.columns WHERE table_name='usuarios' AND table_schema='public' ORDER BY ordinal_position"}


Input: mostra o schema completo

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: nao conheco o banco

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: que tabelas existem e suas colunas

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: preciso ver a estrutura

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: mostra todas colunas de todas tabelas

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: schema do banco todo

Output: {"action": "sql", "sql": "SELECT table_name, column_name, data_type FROM information_schema.columns WHERE table_schema='public' ORDER BY table_name, ordinal_position"}


Input: quantos contratos existem

Output: {"action": "sql", "sql": "SELECT count(*) FROM contratos"}


Input: contratos por status

Output: {"action": "sql", "sql": "SELECT status, count(*) FROM contratos GROUP BY status ORDER BY count DESC"}


Input: total de contratos ativos

Output: {"action": "sql", "sql": "SELECT count(*) FROM contratos WHERE status='ativo'"}


Input: valor total dos contratos

Output: {"action": "sql", "sql": "SELECT sum(valor_total) FROM contratos"}


Input: media de valor dos contratos

Output: {"action": "sql", "sql": "SELECT avg(valor_total) FROM contratos"}


Input: contratos assinados vs nao assinados

Output: {"action": "sql", "sql": "SELECT CASE WHEN assinado THEN 'Assinado' ELSE 'Nao assinado' END as tipo, count(*) FROM contratos GROUP BY assinado"}


Input: ultimos 10 contratos

Output: {"action": "sql", "sql": "SELECT c.numero_contrato, up.nome_completo, p.nome_plano, c.valor_total, c.created_at FROM contratos c JOIN user_profiles up ON c.user_id = up.user_id JOIN planos p ON c.plano_id = p.id ORDER BY c.created_at DESC LIMIT 10"}


Input: contratos criados essa semana

Output: {"action": "sql", "sql": "SELECT c.numero_contrato, up.nome_completo, c.valor_total, c.created_at FROM contratos c JOIN user_profiles up ON c.user_id = up.user_id WHERE c.created_at >= CURRENT_DATE - INTERVAL '7 days' ORDER BY c.created_at DESC"}


Input: contratos por turma

Output: {"action": "sql", "sql": "SELECT t.nome, count(c.id) as contratos FROM contratos c JOIN turmas t ON c.turma_id = t.id GROUP BY t.nome ORDER BY contratos DESC"}


Input: quantos contratos cada turma tem

Output: {"action": "sql", "sql": "SELECT t.nome, count(c.id) as contratos FROM contratos c JOIN turmas t ON c.turma_id = t.id GROUP BY t.nome ORDER BY contratos DESC"}


Input: contratos por plano

Output: {"action": "sql", "sql": "SELECT p.nome_plano, count(c.id) as contratos FROM contratos c JOIN planos p ON c.plano_id = p.id GROUP BY p.nome_plano ORDER BY contratos DESC"}


Input: parcelas pendentes

Output: {"action": "sql", "sql": "SELECT count(*) FROM parcelas WHERE status='pendente'"}


Input: parcelas vencidas

Output: {"action": "sql", "sql": "SELECT count(*) FROM parcelas WHERE data_vencimento < CURRENT_DATE AND status NOT IN ('pago', 'cancelado')"}


Input: total arrecadado

Output: {"action": "sql", "sql": "SELECT sum(valor_pago) FROM parcelas WHERE status='pago'"}


Input: parcelas por status

Output: {"action": "sql", "sql": "SELECT status, count(*), sum(valor) FROM parcelas GROUP BY status ORDER BY count DESC"}


Input: receita por mes

Output: {"action": "sql", "sql": "SELECT DATE_TRUNC('month', data_pagamento) as mes, sum(valor_pago) as receita FROM parcelas WHERE status='pago' AND data_pagamento IS NOT NULL GROUP BY mes ORDER BY mes DESC"}


Input: receita dos ultimos 6 meses

Output: {"action": "sql", "sql": "SELECT DATE_TRUNC('month', data_pagamento) as mes, sum(valor_pago) as receita FROM parcelas WHERE status='pago' AND data_pagamento >= CURRENT_DATE - INTERVAL '6 months' GROUP BY mes ORDER BY mes DESC"}


Input: inadimplencia total

Output: {"action": "sql", "sql": "SELECT count(*) as parcelas_vencidas, sum(valor) as valor_total FROM parcelas WHERE data_vencimento < CURRENT_DATE AND status NOT IN ('pago', 'cancelado')"}


Input: top 10 devedores

Output: {"action": "sql", "sql": "SELECT up.nome_completo, up.cpf, count(pa.id) as parcelas_vencidas, sum(pa.valor) as divida FROM parcelas pa JOIN user_profiles up ON pa.user_id = up.user_id WHERE pa.data_vencimento < CURRENT_DATE AND pa.status NOT IN ('pago', 'cancelado') GROUP BY up.nome_completo, up.cpf ORDER BY divida DESC LIMIT 10"}


Input: parcelas vencidas com nome do aluno

Output: {"action": "sql", "sql": "SELECT up.nome_completo, pa.valor, pa.data_vencimento, pa.status FROM parcelas pa JOIN user_profiles up ON pa.user_id = up.user_id WHERE pa.data_vencimento < CURRENT_DATE AND pa.status NOT IN ('pago', 'cancelado') ORDER BY pa.data_vencimento LIMIT 50"}


Input: parcelas pagas hoje

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor_pago) FROM parcelas WHERE DATE(data_pagamento) = CURRENT_DATE"}


Input: formas de pagamento mais usadas

Output: {"action": "sql", "sql": "SELECT forma_pagamento, count(*) FROM parcelas WHERE status='pago' AND forma_pagamento IS NOT NULL GROUP BY forma_pagamento ORDER BY count DESC"}


Input: lista as turmas

Output: {"action": "sql", "sql": "SELECT id, nome, codigo, sede, status FROM turmas ORDER BY nome"}


Input: turmas ativas

Output: {"action": "sql", "sql": "SELECT nome, codigo, sede FROM turmas WHERE status='ativa'"}


Input: quantas turmas existem

Output: {"action": "sql", "sql": "SELECT count(*) FROM turmas"}


Input: participantes por turma

Output: {"action": "sql", "sql": "SELECT t.nome, count(tp.id) as participantes FROM turmas t LEFT JOIN turma_participantes tp ON t.id = tp.turma_id GROUP BY t.nome ORDER BY participantes DESC"}


Input: quantos participantes cada turma tem

Output: {"action": "sql", "sql": "SELECT t.nome, count(tp.id) as participantes FROM turmas t LEFT JOIN turma_participantes tp ON t.id = tp.turma_id GROUP BY t.nome ORDER BY participantes DESC"}


Input: alunos bloqueados

Output: {"action": "sql", "sql": "SELECT up.nome_completo, tp.blocked_reason, tp.blocked_at FROM turma_participantes tp JOIN user_profiles up ON tp.user_id = up.user_id WHERE tp.blocked_at IS NOT NULL"}


Input: quantos usuarios tem

Output: {"action": "sql", "sql": "SELECT count(*) FROM auth.users"}


Input: usuarios cadastrados

Output: {"action": "sql", "sql": "SELECT count(*) FROM user_profiles"}


Input: usuarios com cpf duplicado

Output: {"action": "sql", "sql": "SELECT cpf, count(*) as qtd FROM user_profiles WHERE cpf IS NOT NULL GROUP BY cpf HAVING count(*) > 1"}


Input: usuarios sem contrato

Output: {"action": "sql", "sql": "SELECT up.nome_completo, up.cpf FROM user_profiles up WHERE up.user_id NOT IN (SELECT DISTINCT user_id FROM contratos)"}


Input: usuarios que tem contrato

Output: {"action": "sql", "sql": "SELECT DISTINCT up.nome_completo, up.cpf, up.telefone FROM user_profiles up JOIN contratos c ON up.user_id = c.user_id"}


Input: usuarios cadastrados por dia

Output: {"action": "sql", "sql": "SELECT DATE(created_at) as dia, count(*) FROM user_profiles GROUP BY dia ORDER BY dia DESC LIMIT 30"}


Input: ultimos 10 usuarios cadastrados

Output: {"action": "sql", "sql": "SELECT nome_completo, cpf, telefone, created_at FROM user_profiles ORDER BY created_at DESC LIMIT 10"}


Input: admins do sistema

Output: {"action": "sql", "sql": "SELECT nome_completo, cpf FROM user_profiles WHERE is_admin=true"}


Input: lista os planos

Output: {"action": "sql", "sql": "SELECT id, nome_plano, valor, status FROM planos ORDER BY valor"}


Input: planos por categoria

Output: {"action": "sql", "sql": "SELECT c.nome as categoria, p.nome_plano, p.valor FROM planos p JOIN categorias c ON p.categoria_id = c.id ORDER BY c.nome, p.valor"}


Input: planos com mais contratos

Output: {"action": "sql", "sql": "SELECT p.nome_plano, count(c.id) as contratos FROM planos p LEFT JOIN contratos c ON p.id = c.plano_id GROUP BY p.nome_plano ORDER BY contratos DESC"}


Input: valor medio dos planos

Output: {"action": "sql", "sql": "SELECT avg(valor) FROM planos"}


Input: boletos pendentes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor) FROM boletos WHERE status='pendente'"}


Input: boletos pendentes com nome

Output: {"action": "sql", "sql": "SELECT up.nome_completo, b.valor, b.data_vencimento FROM boletos b JOIN user_profiles up ON b.user_id = up.user_id WHERE b.status='pendente' ORDER BY b.data_vencimento"}


Input: pix gerados pendentes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor) FROM pix_gerados WHERE status='pendente'"}


Input: saldo total das wallets

Output: {"action": "sql", "sql": "SELECT sum(saldo_atual) FROM wallets"}


Input: saldo das wallets por usuario

Output: {"action": "sql", "sql": "SELECT up.nome_completo, w.saldo_atual FROM wallets w JOIN user_profiles up ON w.user_id = up.user_id WHERE w.saldo_atual > 0 ORDER BY w.saldo_atual DESC"}


Input: transacoes do mes

Output: {"action": "sql", "sql": "SELECT tipo, categoria, count(*), sum(valor) FROM transacoes_financeiras WHERE data_transacao >= DATE_TRUNC('month', CURRENT_DATE) GROUP BY tipo, categoria ORDER BY sum DESC"}


Input: rescisoes pendentes

Output: {"action": "sql", "sql": "SELECT user_name, user_cpf, valor_final, status, created_at FROM rescission_requests WHERE status='pendente' ORDER BY created_at DESC"}


Input: rescisoes por status

Output: {"action": "sql", "sql": "SELECT status, count(*), sum(valor_final) FROM rescission_requests GROUP BY status ORDER BY count DESC"}


Input: renegociacoes do mes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor_total) FROM renegociacoes WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: transferencias pendentes

Output: {"action": "sql", "sql": "SELECT from_user_name, to_user_name, original_value, status FROM transfer_requests WHERE status='pendente'"}


Input: campanhas de desconto ativas

Output: {"action": "sql", "sql": "SELECT nome, percentual_desconto, data_inicio, data_fim FROM campanhas_desconto WHERE ativo=true AND data_fim >= CURRENT_DATE"}


Input: lotes disponiveis

Output: {"action": "sql", "sql": "SELECT l.nome_lote, l.valor, l.quantidade_vendida, l.quantidade_limite, l.status_venda FROM lotes l WHERE l.disponivel=true ORDER BY l.valor"}


Input: mudancas de plano recentes

Output: {"action": "sql", "sql": "SELECT up.nome_completo, mp.status, mp.motivo_mudanca, mp.created_at FROM mudancas_plano mp JOIN user_profiles up ON mp.user_id = up.user_id ORDER BY mp.created_at DESC LIMIT 20"}


Input: aptidao financeira inaptos

Output: {"action": "sql", "sql": "SELECT up.nome_completo, afa.status_aptidao, afa.percentual_inadimplente FROM aptidao_financeira_alunos afa JOIN user_profiles up ON afa.user_id = up.user_id WHERE afa.status_aptidao='inapto'"}


Input: cartoes salvos ativos

Output: {"action": "sql", "sql": "SELECT up.nome_completo, cct.card_brand, cct.last_four_digits FROM credit_card_tokens cct JOIN user_profiles up ON cct.user_id = up.user_id WHERE cct.is_active=true"}


Input: administradores ativos

Output: {"action": "sql", "sql": "SELECT nome, email, ultimo_acesso FROM administradores WHERE ativo=true"}


Input: categorias cadastradas

Output: {"action": "sql", "sql": "SELECT id, nome, status_ativo, is_principal FROM categorias ORDER BY nome"}


Input: eventos cadastrados

Output: {"action": "sql", "sql": "SELECT id, nome, status FROM eventos ORDER BY nome"}


Input: lista as tabelas

Output: {"action": "sql", "sql": "SELECT tablename FROM pg_tables WHERE schemaname='public' ORDER BY tablename"}


Input: foreign keys do banco

Output: {"action": "sql", "sql": "SELECT tc.table_name, kcu.column_name, ccu.table_name AS foreign_table, ccu.column_name AS foreign_column FROM information_schema.table_constraints tc JOIN information_schema.key_column_usage kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage ccu ON ccu.constraint_name = tc.constraint_name WHERE tc.constraint_type = 'FOREIGN KEY'"}


Input: tabelas com RLS

Output: {"action": "sql", "sql": "SELECT tablename, rowsecurity FROM pg_tables WHERE schemaname='public' AND rowsecurity=true"}


Input: policies de seguranca

Output: {"action": "sql", "sql": "SELECT tablename, policyname, cmd, qual FROM pg_policies WHERE schemaname='public'"}


Input: quantos registros em cada tabela

Output: {"action": "sql", "sql": "SELECT relname as tabela, n_live_tup as registros FROM pg_stat_user_tables WHERE schemaname='public' ORDER BY n_live_tup DESC"}


Input: cria tabela feedbacks com user_id nota e comentario

Output: {"action": "sql", "sql": "CREATE TABLE feedbacks (id uuid DEFAULT gen_random_uuid() PRIMARY KEY, user_id uuid REFERENCES auth.users(id), nota integer NOT NULL CHECK (nota >= 1 AND nota <= 5), comentario text, created_at timestamptz DEFAULT now())"}


Input: cria tabela notificacoes com titulo mensagem e lida

Output: {"action": "sql", "sql": "CREATE TABLE notificacoes (id uuid DEFAULT gen_random_uuid() PRIMARY KEY, user_id uuid REFERENCES auth.users(id), titulo text NOT NULL, mensagem text, lida boolean DEFAULT false, created_at timestamptz DEFAULT now())"}


Input: adiciona coluna telefone na tabela profiles

Output: {"action": "sql", "sql": "ALTER TABLE profiles ADD COLUMN telefone text"}


Input: cria index no cpf de user_profiles

Output: {"action": "sql", "sql": "CREATE INDEX idx_user_profiles_cpf ON user_profiles(cpf)"}


Input: ativa RLS na tabela contratos

Output: {"action": "sql", "sql": "ALTER TABLE contratos ENABLE ROW LEVEL SECURITY"}


Input: deleta a tabela feedbacks

Output: {"action": "sql", "sql": "DROP TABLE IF EXISTS feedbacks"}


Input: lista os projetos

Output: {"action": "cli", "command": "supabase projects list"}


Input: meus projetos

Output: {"action": "cli", "command": "supabase projects list"}


Input: projetos supabase

Output: {"action": "cli", "command": "supabase projects list"}


Input: tamanho das tabelas

Output: {"action": "cli", "command": "supabase inspect db table-sizes"}


Input: table sizes

Output: {"action": "cli", "command": "supabase inspect db table-sizes"}


Input: cache hit

Output: {"action": "cli", "command": "supabase inspect db cache-hit"}


Input: taxa de cache

Output: {"action": "cli", "command": "supabase inspect db cache-hit"}


Input: queries lentas

Output: {"action": "cli", "command": "supabase inspect db long-running-queries"}


Input: long running queries

Output: {"action": "cli", "command": "supabase inspect db long-running-queries"}


Input: uso de indices

Output: {"action": "cli", "command": "supabase inspect db index-usage"}


Input: index usage

Output: {"action": "cli", "command": "supabase inspect db index-usage"}


Input: indices nao usados

Output: {"action": "cli", "command": "supabase inspect db unused-indexes"}


Input: unused indexes

Output: {"action": "cli", "command": "supabase inspect db unused-indexes"}


Input: bloat

Output: {"action": "cli", "command": "supabase inspect db bloat"}


Input: bloat das tabelas

Output: {"action": "cli", "command": "supabase inspect db bloat"}


Input: vacuum stats

Output: {"action": "cli", "command": "supabase inspect db vacuum-stats"}


Input: vacuum

Output: {"action": "cli", "command": "supabase inspect db vacuum-stats"}


Input: outliers

Output: {"action": "cli", "command": "supabase inspect db outliers"}


Input: outliers de performance

Output: {"action": "cli", "command": "supabase inspect db outliers"}


Input: conexoes ativas

Output: {"action": "cli", "command": "supabase inspect db role-connections"}


Input: locks no banco

Output: {"action": "cli", "command": "supabase inspect db locks"}


Input: dump do schema

Output: {"action": "cli", "command": "supabase db dump --schema public"}


Input: lista functions

Output: {"action": "cli", "command": "supabase functions list"}


Input: lista secrets

Output: {"action": "cli", "command": "supabase secrets list"}


Input: api keys

Output: {"action": "cli", "command": "supabase projects api-keys"}


Input: lista orgs

Output: {"action": "cli", "command": "supabase orgs list"}


Input: tamanho total indices

Output: {"action": "cli", "command": "supabase inspect db total-index-size"}


Input: lista repos github

Output: {"action": "shell", "command": "sudo -u claude gh repo list"}


Input: issues do repo agent-os

Output: {"action": "shell", "command": "sudo -u claude gh issue list -R agent-os"}


Input: status do pm2

Output: {"action": "shell", "command": "sudo -u claude pm2 jlist"}


Input: reinicia o launcher

Output: {"action": "shell", "command": "sudo -u claude pm2 restart launcher"}


Input: logs do agent-os

Output: {"action": "shell", "command": "pm2 logs agent-os --lines 20 --nostream"}


Input: containers docker

Output: {"action": "shell", "command": "docker ps"}


Input: docker images

Output: {"action": "shell", "command": "docker images"}


Input: uso de cpu e memoria

Output: {"action": "shell", "command": "top -bn1 | head -5 && free -h"}


Input: disco livre

Output: {"action": "shell", "command": "df -h /"}


Input: lista arquivos em /home/claude

Output: {"action": "shell", "command": "ls -la /home/claude"}


Input: versao do node

Output: {"action": "shell", "command": "node -v"}


Input: portas abertas

Output: {"action": "shell", "command": "ss -tlnp"}


Input: uptime

Output: {"action": "shell", "command": "uptime"}


Input: ip publico

Output: {"action": "shell", "command": "curl -s ifconfig.me"}


Input: status do nginx

Output: {"action": "shell", "command": "sudo systemctl status nginx"}


Input: reinicia nginx

Output: {"action": "shell", "command": "sudo systemctl restart nginx"}


Input: ram livre

Output: {"action": "shell", "command": "free -h"}


Input: quantos alunos inaptos financeiramente

Output: {"action": "sql", "sql": "SELECT count(*) FROM aptidao_financeira_alunos WHERE status_aptidao='inapto'"}


Input: quantos inaptos tem

Output: {"action": "sql", "sql": "SELECT count(*) FROM aptidao_financeira_alunos WHERE status_aptidao='inapto'"}


Input: alunos inaptos com detalhes

Output: {"action": "sql", "sql": "SELECT up.nome_completo, afa.status_aptidao, afa.percentual_inadimplente, afa.tem_inadimplencia FROM aptidao_financeira_alunos afa JOIN user_profiles up ON afa.user_id = up.user_id WHERE afa.status_aptidao='inapto'"}


Input: aptidao financeira por status

Output: {"action": "sql", "sql": "SELECT status_aptidao, count(*) FROM aptidao_financeira_alunos GROUP BY status_aptidao ORDER BY count DESC"}


Input: alunos inadimplentes

Output: {"action": "sql", "sql": "SELECT up.nome_completo, afa.percentual_inadimplente, afa.valor_total_inadimplente FROM aptidao_financeira_alunos afa JOIN user_profiles up ON afa.user_id = up.user_id WHERE afa.tem_inadimplencia=true"}


Input: cartoes por bandeira

Output: {"action": "sql", "sql": "SELECT card_brand, count(*) FROM credit_card_tokens WHERE is_active=true GROUP BY card_brand ORDER BY count DESC"}


Input: cartoes de credito ativos por bandeira

Output: {"action": "sql", "sql": "SELECT card_brand, count(*) FROM credit_card_tokens WHERE is_active=true GROUP BY card_brand ORDER BY count DESC"}


Input: quantos cartoes salvos

Output: {"action": "sql", "sql": "SELECT count(*) FROM credit_card_tokens WHERE is_active=true"}


Input: cartoes ativos com nome do titular

Output: {"action": "sql", "sql": "SELECT up.nome_completo, cct.card_brand, cct.last_four_digits, cct.holder_name FROM credit_card_tokens cct JOIN user_profiles up ON cct.user_id = up.user_id WHERE cct.is_active=true"}


Input: cartoes vencidos

Output: {"action": "sql", "sql": "SELECT holder_name, card_brand, last_four_digits, card_expiry_month, card_expiry_year FROM credit_card_tokens WHERE is_active=true"}


Input: renegociacoes do mes atual

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor_total) FROM renegociacoes WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: renegociacoes feitas esse mes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor_total) FROM renegociacoes WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: renegociacoes revertidas

Output: {"action": "sql", "sql": "SELECT r.id, up.nome_completo, r.valor_total, r.revertida_em FROM renegociacoes r JOIN user_profiles up ON r.user_id = up.user_id WHERE r.revertida=true"}


Input: contratos essa semana com plano

Output: {"action": "sql", "sql": "SELECT c.numero_contrato, up.nome_completo, p.nome_plano, c.valor_total FROM contratos c JOIN user_profiles up ON c.user_id = up.user_id JOIN planos p ON c.plano_id = p.id WHERE c.created_at >= CURRENT_DATE - INTERVAL '7 days' ORDER BY c.created_at DESC"}


Input: parcelas pagas esse mes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor_pago) FROM parcelas WHERE status='pago' AND data_pagamento >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: receita esse mes

Output: {"action": "sql", "sql": "SELECT sum(valor_pago) FROM parcelas WHERE status='pago' AND data_pagamento >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: valor total pendente

Output: {"action": "sql", "sql": "SELECT sum(valor) FROM parcelas WHERE status='pendente'"}


Input: parcelas vencidas esse mes

Output: {"action": "sql", "sql": "SELECT count(*), sum(valor) FROM parcelas WHERE data_vencimento < CURRENT_DATE AND data_vencimento >= DATE_TRUNC('month', CURRENT_DATE) AND status NOT IN ('pago', 'cancelado')"}


Input: rescisoes com nome e motivo

Output: {"action": "sql", "sql": "SELECT user_name, user_cpf, rescission_reason, valor_final, status FROM rescission_requests ORDER BY created_at DESC LIMIT 20"}


Input: lotes vendidos por plano

Output: {"action": "sql", "sql": "SELECT p.nome_plano, l.nome_lote, l.quantidade_vendida, l.quantidade_limite, l.valor FROM lotes l JOIN planos p ON l.plano_id = p.id ORDER BY l.quantidade_vendida DESC"}


Input: depositos da turma com nome

Output: {"action": "sql", "sql": "SELECT up.nome_completo, td.valor, td.status, td.created_at FROM turma_depositos td JOIN user_profiles up ON td.user_id = up.user_id ORDER BY td.created_at DESC LIMIT 20"}


Input: wallet transactions recentes

Output: {"action": "sql", "sql": "SELECT up.nome_completo, wt.tipo, wt.descricao, wt.valor, wt.saldo_posterior FROM wallet_transactions wt JOIN user_profiles up ON wt.user_id = up.user_id ORDER BY wt.created_at DESC LIMIT 20"}


Input: transacoes financeiras esse mes

Output: {"action": "sql", "sql": "SELECT tipo, categoria, count(*), sum(valor) FROM transacoes_financeiras WHERE data_transacao >= DATE_TRUNC('month', CURRENT_DATE) GROUP BY tipo, categoria ORDER BY sum DESC"}


Input: pedidos de troca de email

Output: {"action": "sql", "sql": "SELECT old_email, new_email, status, created_at FROM email_change_requests ORDER BY created_at DESC LIMIT 20"}


Input: payments por metodo

Output: {"action": "sql", "sql": "SELECT payment_method, count(*), sum(amount) FROM payments GROUP BY payment_method ORDER BY sum DESC"}


Input: payments esse mes

Output: {"action": "sql", "sql": "SELECT count(*), sum(amount) FROM payments WHERE created_at >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: rescisoes pendentes com nome e valor

Output: {"action": "sql", "sql": "SELECT user_name, user_cpf, valor_final, status, created_at FROM rescission_requests WHERE status='pendente' ORDER BY created_at DESC"}


Input: rescisoes com valor final

Output: {"action": "sql", "sql": "SELECT user_name, valor_final, rescission_reason, status FROM rescission_requests ORDER BY created_at DESC LIMIT 20"}


Input: total de valor das rescisoes

Output: {"action": "sql", "sql": "SELECT sum(valor_final) FROM rescission_requests WHERE status='aprovado'"}


Input: valor medio dos planos por categoria

Output: {"action": "sql", "sql": "SELECT c.nome as categoria, avg(p.valor) as media, count(p.id) as qtd FROM planos p JOIN categorias c ON p.categoria_id = c.id GROUP BY c.nome ORDER BY media DESC"}


Input: planos mais caros

Output: {"action": "sql", "sql": "SELECT nome_plano, valor FROM planos ORDER BY valor DESC LIMIT 10"}


Input: planos mais baratos

Output: {"action": "sql", "sql": "SELECT nome_plano, valor FROM planos ORDER BY valor ASC LIMIT 10"}


Input: rescisoes aprovadas esse mes

Output: {"action": "sql", "sql": "SELECT user_name, valor_final, approved_at FROM rescission_requests WHERE status='aprovado' AND approved_at >= DATE_TRUNC('month', CURRENT_DATE)"}


Input: detalhes da rescisao

Output: {"action": "sql", "sql": "SELECT user_name, user_cpf, user_email, original_value, paid_value, penalty_fees, valor_final, rescission_reason, status FROM rescission_requests ORDER BY created_at DESC LIMIT 10"}


Input: mostra os dados da tabela users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: mostra os dados de users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: mostra os registros da tabela users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: lista todos os users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: select all from users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: conteudo da tabela users

Output: {"action": "sql", "sql": "SELECT * FROM users LIMIT 50"}


Input: mostra os dados da tabela contratos

Output: {"action": "sql", "sql": "SELECT * FROM contratos LIMIT 50"}


Input: mostra os dados de parcelas

Output: {"action": "sql", "sql": "SELECT * FROM parcelas LIMIT 50"}


Input: registros da tabela turmas

Output: {"action": "sql", "sql": "SELECT * FROM turmas LIMIT 50"}


Input: lista todos os planos

Output: {"action": "sql", "sql": "SELECT * FROM planos LIMIT 50"}


Input: dados da tabela boletos

Output: {"action": "sql", "sql": "SELECT * FROM boletos LIMIT 50"}


Input: select tudo de boards

Output: {"action": "sql", "sql": "SELECT * FROM boards LIMIT 50"}


Input: mostra tudo da tabela vms

Output: {"action": "sql", "sql": "SELECT * FROM vms LIMIT 50"}


Input: registros de wallets

Output: {"action": "sql", "sql": "SELECT * FROM wallets LIMIT 50"}


Input: lista os dados de categorias

Output: {"action": "sql", "sql": "SELECT * FROM categorias LIMIT 50"}


Input: mostra os dados da tabela activity_log

Output: {"action": "sql", "sql": "SELECT * FROM activity_log LIMIT 50"}


Input: dados de board_memberships

Output: {"action": "sql", "sql": "SELECT * FROM board_memberships LIMIT 50"}


Input: mostra os dados de lotes

Output: {"action": "sql", "sql": "SELECT * FROM lotes LIMIT 50"}


Input: registros da tabela payments

Output: {"action": "sql", "sql": "SELECT * FROM payments LIMIT 50"}


Input: lista registros de eventos

Output: {"action": "sql", "sql": "SELECT * FROM eventos LIMIT 50"}


Input: todos os registros de administradores

Output: {"action": "sql", "sql": "SELECT * FROM administradores LIMIT 50"}


Input: mostra todos os dados de user_profiles

Output: {"action": "sql", "sql": "SELECT * FROM user_profiles LIMIT 50"}


Input: dados de turma_participantes

Output: {"action": "sql", "sql": "SELECT * FROM turma_participantes LIMIT 50"}


Input: lista os dados de rescission_requests

Output: {"action": "sql", "sql": "SELECT * FROM rescission_requests LIMIT 50"}


Input: select from transfer_requests

Output: {"action": "sql", "sql": "SELECT * FROM transfer_requests LIMIT 50"}


Input: mostra os ultimos 20 registros de parcelas

Output: {"action": "sql", "sql": "SELECT * FROM parcelas ORDER BY created_at DESC LIMIT 20"}


Input: primeiros 10 contratos

Output: {"action": "sql", "sql": "SELECT * FROM contratos ORDER BY created_at ASC LIMIT 10"}


Input: ultimos boletos emitidos

Output: {"action": "sql", "sql": "SELECT * FROM boletos ORDER BY created_at DESC LIMIT 20"}


Input: emails dos usuarios

Output: {"action": "sql", "sql": "SELECT email FROM users LIMIT 50"}


Input: nomes dos usuarios

Output: {"action": "sql", "sql": "SELECT display_name, email FROM users LIMIT 50"}


Input: emails e nomes dos users

Output: {"action": "sql", "sql": "SELECT email, display_name FROM users LIMIT 50"}