-- phpMyAdmin SQL Dump
-- version 5.2.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Tempo de geração: 17/03/2026 às 00:07
-- Versão do servidor: 10.11.10-MariaDB-log
-- Versão do PHP: 8.3.21

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Banco de dados: `gestorsssh`
--

-- --------------------------------------------------------

--
-- Estrutura para tabela `accounts`
--

CREATE TABLE `accounts` (
  `id` int(11) NOT NULL,
  `nome` varchar(255) DEFAULT NULL,
  `contato` varchar(255) DEFAULT NULL,
  `login` varchar(50) NOT NULL DEFAULT '0',
  `token` varchar(330) NOT NULL DEFAULT '0',
  `mb` varchar(50) NOT NULL DEFAULT '0',
  `senha` varchar(50) NOT NULL DEFAULT '0',
  `byid` varchar(50) NOT NULL DEFAULT '0',
  `mainid` varchar(50) NOT NULL DEFAULT '0',
  `accesstoken` text DEFAULT NULL,
  `pushinpay_token` varchar(255) DEFAULT NULL,
  `webhook_token` varchar(255) DEFAULT NULL,
  `valorusuario` varchar(50) DEFAULT NULL,
  `valorrevenda` varchar(50) DEFAULT NULL,
  `idtelegram` text DEFAULT NULL,
  `tempo` text DEFAULT NULL,
  `acesstokenpaghiper` text DEFAULT NULL,
  `formadepag` text DEFAULT NULL,
  `tokenpaghiper` text DEFAULT NULL,
  `whatsapp` text DEFAULT NULL,
  `tokenvenda` varchar(330) NOT NULL DEFAULT '0',
  `plano1_dias` int(11) NOT NULL DEFAULT 30,
  `plano1_limite` int(11) NOT NULL DEFAULT 1,
  `plano1_valor` decimal(10,2) NOT NULL DEFAULT 0.00,
  `plano2_dias` int(11) NOT NULL DEFAULT 60,
  `plano2_limite` int(11) NOT NULL DEFAULT 1,
  `plano2_valor` decimal(10,2) NOT NULL DEFAULT 0.00,
  `plano3_dias` int(11) NOT NULL DEFAULT 90,
  `plano3_limite` int(11) NOT NULL DEFAULT 1,
  `plano3_valor` decimal(10,2) NOT NULL DEFAULT 0.00,
  `mercado_pago_ativo` tinyint(1) NOT NULL DEFAULT 0,
  `mercado_pago_public_key` varchar(255) DEFAULT NULL,
  `mercado_pago_access_token` text DEFAULT NULL,
  `pushinpay_ativo` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Despejando dados para a tabela `accounts`
--

INSERT INTO `accounts` (`id`, `nome`, `contato`, `login`, `token`, `mb`, `senha`, `byid`, `mainid`, `accesstoken`, `pushinpay_token`, `webhook_token`, `valorusuario`, `valorrevenda`, `idtelegram`, `tempo`, `acesstokenpaghiper`, `formadepag`, `tokenpaghiper`, `whatsapp`, `tokenvenda`, `plano1_dias`, `plano1_limite`, `plano1_valor`, `plano2_dias`, `plano2_limite`, `plano2_valor`, `plano3_dias`, `plano3_limite`, `plano3_valor`, `mercado_pago_ativo`, `mercado_pago_public_key`, `mercado_pago_access_token`, `pushinpay_ativo`) VALUES
(1, 'admin', '', 'admin', '7665111579:AAHtHUzYGtF7iFE40RQBxYWYdUIWvvPz11g', '320', 'admin', '0', '4', '396e0544b088f42e167c7468d3669044a4d171c142687c76', NULL, NULL, '12', '4', '232', '1', '', '1', '', '+5511973474201', '469248071245', 30, 1, 0.00, 60, 1, 0.00, 90, 1, 0.00, 0, NULL, NULL, 1);

-- --------------------------------------------------------

--
-- Estrutura para tabela `atlasdeviceid`
--

CREATE TABLE `atlasdeviceid` (
  `id` int(11) NOT NULL,
  `nome_user` varchar(255) DEFAULT NULL,
  `deviceid` varchar(255) DEFAULT NULL,
  `byid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `atribuidos`
--

CREATE TABLE `atribuidos` (
  `id` int(11) NOT NULL,
  `valor` varchar(255) DEFAULT NULL,
  `categoriaid` int(11) NOT NULL DEFAULT 0,
  `userid` int(11) NOT NULL DEFAULT 0,
  `byid` int(11) NOT NULL DEFAULT 0,
  `limite` int(11) NOT NULL DEFAULT 0,
  `limitetest` int(11) DEFAULT NULL,
  `tipo` text NOT NULL,
  `expira` text DEFAULT NULL,
  `subrev` int(11) NOT NULL DEFAULT 0,
  `suspenso` int(11) NOT NULL DEFAULT 0,
  `valormensal` text DEFAULT NULL,
  `notificado` text DEFAULT 'nao'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Despejando dados para a tabela `atribuidos`
--

INSERT INTO `atribuidos` (`id`, `valor`, `categoriaid`, `userid`, `byid`, `limite`, `limitetest`, `tipo`, `expira`, `subrev`, `suspenso`, `valormensal`, `notificado`) VALUES
(2, NULL, 1, 1, 1, 500, NULL, 'Credito', NULL, 0, 0, NULL, 'nao'),
(14, NULL, 1, 13, 1, 48, NULL, 'Validade', '2027-01-02 18:03:07', 0, 0, '', 'nao'),
(18, NULL, 1, 17, 1, 50, NULL, 'Validade', '2027-01-02 21:39:32', 0, 0, NULL, 'nao'),
(19, NULL, 1, 18, 1, 50, NULL, 'Validade', '2027-01-02 21:40:08', 0, 0, NULL, 'nao'),
(20, NULL, 1, 19, 1, 50, NULL, 'Validade', '2027-01-02 21:41:09', 0, 0, NULL, 'nao'),
(21, NULL, 1, 20, 13, 10, NULL, 'Validade', '2026-02-02 08:00:08', 0, 0, NULL, 'nao'),
(22, NULL, 1, 21, 1, 50, NULL, 'Validade', '2027-01-11 15:12:51', 0, 0, NULL, 'nao'),
(23, NULL, 1, 22, 17, 30, NULL, 'Validade', '2026-03-18 21:49:25', 0, 0, NULL, 'nao'),
(24, NULL, 1, 23, 1, 20, NULL, 'Validade', '2027-02-18 09:47:37', 0, 0, NULL, 'nao');

-- --------------------------------------------------------

--
-- Estrutura para tabela `bot`
--

CREATE TABLE `bot` (
  `id` int(6) UNSIGNED NOT NULL,
  `app` text DEFAULT NULL,
  `sender` text DEFAULT NULL,
  `message` text DEFAULT NULL,
  `data` text DEFAULT NULL,
  `idpagamento` text DEFAULT NULL,
  `access_token` text DEFAULT NULL,
  `quantidadeuser` text DEFAULT NULL,
  `status` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `bot_control`
--

CREATE TABLE `bot_control` (
  `id` int(11) NOT NULL,
  `bot_name` varchar(50) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 0,
  `last_updated` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Despejando dados para a tabela `bot_control`
--

INSERT INTO `bot_control` (`id`, `bot_name`, `status`, `last_updated`) VALUES
(2, 'PagamentoBot', 0, '2025-01-09 19:55:16');

-- --------------------------------------------------------

--
-- Estrutura para tabela `bot_status`
--

CREATE TABLE `bot_status` (
  `id` int(11) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 0,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `categorias`
--

CREATE TABLE `categorias` (
  `id` int(11) NOT NULL,
  `subid` int(11) DEFAULT NULL,
  `nome` varchar(150) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Despejando dados para a tabela `categorias`
--

INSERT INTO `categorias` (`id`, `subid`, `nome`) VALUES
(1, 1, 'THEFULL CENTER');

-- --------------------------------------------------------

--
-- Estrutura para tabela `configs`
--

CREATE TABLE `configs` (
  `id` int(6) UNSIGNED NOT NULL,
  `nomepainel` text DEFAULT NULL,
  `logo` text DEFAULT NULL,
  `icon` text DEFAULT NULL,
  `corborder` text DEFAULT NULL,
  `corletranav` text DEFAULT NULL,
  `deviceativo` text DEFAULT NULL,
  `imglogin` text DEFAULT NULL,
  `corbarranav` text DEFAULT NULL,
  `corfundologo` text DEFAULT NULL,
  `corcard` text DEFAULT NULL,
  `cortextcard` text DEFAULT NULL,
  `cornavsuperior` text DEFAULT NULL,
  `minimocompra` text DEFAULT NULL,
  `textoedit` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Despejando dados para a tabela `configs`
--

INSERT INTO `configs` (`id`, `nomepainel`, `logo`, `icon`, `corborder`, `corletranav`, `deviceativo`, `imglogin`, `corbarranav`, `corfundologo`, `corcard`, `cortextcard`, `cornavsuperior`, `minimocompra`, `textoedit`) VALUES
(1, 'THEFULL NET', 'https://i.postimg.cc/CLRzMVZk/thefull.png', 'https://i.postimg.cc/CLRzMVZk/thefull.png', NULL, '', NULL, '0', '0', '', NULL, 'Bem vindo a Melhor internet Ilimitada', '262743824830', '', NULL);

-- --------------------------------------------------------

--
-- Estrutura para tabela `config_pagamentos`
--

CREATE TABLE `config_pagamentos` (
  `id` int(11) NOT NULL,
  `usuario_id` int(11) NOT NULL,
  `ativar_pushin` tinyint(1) NOT NULL DEFAULT 1,
  `nome_pix` varchar(120) DEFAULT NULL,
  `token_pushin` text DEFAULT NULL,
  `token_webhook_pushin` varchar(255) DEFAULT NULL,
  `valorusuario` decimal(10,2) NOT NULL DEFAULT 0.00,
  `valorrevenda` decimal(10,2) NOT NULL DEFAULT 0.00,
  `valor_credito` decimal(10,2) NOT NULL DEFAULT 0.00,
  `minimocompra` int(11) NOT NULL DEFAULT 1,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `cupons`
--

CREATE TABLE `cupons` (
  `id` int(6) UNSIGNED NOT NULL,
  `nome` varchar(30) NOT NULL,
  `cupom` varchar(50) NOT NULL,
  `desconto` varchar(50) NOT NULL,
  `usado` varchar(50) NOT NULL,
  `byid` varchar(50) NOT NULL,
  `vezesuso` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `logs`
--

CREATE TABLE `logs` (
  `id` int(11) NOT NULL,
  `userid` int(11) DEFAULT 0,
  `texto` text DEFAULT NULL,
  `validade` text DEFAULT NULL,
  `revenda` text DEFAULT NULL,
  `byid` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `mensagens`
--

CREATE TABLE `mensagens` (
  `id` int(6) UNSIGNED NOT NULL,
  `funcao` text DEFAULT NULL,
  `mensagem` text DEFAULT NULL,
  `ativo` text DEFAULT NULL,
  `hora` text DEFAULT NULL,
  `byid` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `mensagens_enviadas`
--

CREATE TABLE `mensagens_enviadas` (
  `id` int(11) NOT NULL,
  `whatsapp` varchar(15) NOT NULL,
  `mensagem_primeira_enviada` tinyint(1) DEFAULT 0,
  `mensagem_segunda_enviada` tinyint(1) DEFAULT 0,
  `mensagem_terceira` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `notificacoes_enviadas`
--

CREATE TABLE `notificacoes_enviadas` (
  `id` int(11) NOT NULL,
  `whatsapp` varchar(20) NOT NULL,
  `tipo_notificacao` varchar(50) NOT NULL,
  `data_envio` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `onlines`
--

CREATE TABLE `onlines` (
  `id` int(6) UNSIGNED NOT NULL,
  `usuario` text NOT NULL,
  `quantidade` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `pagamentos`
--

CREATE TABLE `pagamentos` (
  `id` int(11) NOT NULL,
  `usuario_id` int(11) NOT NULL,
  `cliente_id` int(11) DEFAULT NULL,
  `valor` decimal(10,2) NOT NULL DEFAULT 0.00,
  `limite` int(11) DEFAULT NULL,
  `pix_code` text DEFAULT NULL,
  `qr_image` longtext DEFAULT NULL,
  `payment_id` varchar(120) DEFAULT NULL,
  `status_pagto` varchar(40) NOT NULL DEFAULT 'pendente',
  `data_pagamento` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `formadepag` text DEFAULT '1',
  `tokenpaghiper` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `payments`
--

CREATE TABLE `payments` (
  `id` int(11) NOT NULL,
  `ssh_account_id` int(11) NOT NULL,
  `account_id` int(11) NOT NULL,
  `payment_id` varchar(100) NOT NULL,
  `pushin_transaction_id` varchar(100) DEFAULT NULL,
  `valor` decimal(10,2) NOT NULL,
  `pix_code` longtext NOT NULL,
  `pix_qr_base64` longtext NOT NULL,
  `plano_dias` int(11) NOT NULL,
  `plano_limite` int(11) NOT NULL,
  `novo_vencimento` date NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'pendente',
  `created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `payments_tv`
--

CREATE TABLE `payments_tv` (
  `id` int(11) NOT NULL,
  `payment_id` varchar(255) NOT NULL,
  `qr_code_2` varchar(255) DEFAULT NULL,
  `status` varchar(50) DEFAULT 'pendente',
  `qr_code_4` varchar(255) DEFAULT NULL,
  `qr_code` varchar(255) DEFAULT NULL,
  `qr_code_3` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `qrcode_images`
--

CREATE TABLE `qrcode_images` (
  `id` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `chave_pix` varchar(255) NOT NULL,
  `qrcode_mensal` varchar(255) DEFAULT NULL,
  `qrcode_trimestral` varchar(255) DEFAULT NULL,
  `qrcode_anual` varchar(255) DEFAULT NULL,
  `payment_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `qrcode_metadata`
--

CREATE TABLE `qrcode_metadata` (
  `id` int(11) NOT NULL,
  `chave_pix` varchar(255) NOT NULL,
  `qr_code` varchar(255) DEFAULT NULL,
  `qr_code_2` varchar(255) DEFAULT NULL,
  `qr_code_3` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `renovacoes`
--

CREATE TABLE `renovacoes` (
  `id` int(11) NOT NULL,
  `login` varchar(255) NOT NULL,
  `ip_address` varchar(50) NOT NULL,
  `data_renovacao` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `servidores`
--

CREATE TABLE `servidores` (
  `id` int(11) NOT NULL,
  `subid` int(11) NOT NULL DEFAULT 0,
  `nome` varchar(150) NOT NULL DEFAULT '0',
  `porta` int(11) NOT NULL DEFAULT 0,
  `usuario` varchar(150) NOT NULL DEFAULT '0',
  `senha` varchar(150) NOT NULL DEFAULT '0',
  `ip` varchar(150) NOT NULL DEFAULT '0',
  `servercpu` varchar(150) NOT NULL DEFAULT '0',
  `serverram` varchar(150) NOT NULL DEFAULT '0',
  `onlines` varchar(150) NOT NULL DEFAULT '0',
  `lastview` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Despejando dados para a tabela `servidores`
--

INSERT INTO `servidores` (`id`, `subid`, `nome`, `porta`, `usuario`, `senha`, `ip`, `servercpu`, `serverram`, `onlines`, `lastview`) VALUES
(1, 1, 'Servidor Central', 22, 'root', 'sua-senha', 'seu-ip', '0', '0', '0', '2026-03-17 00:07:07');

-- --------------------------------------------------------

--
-- Estrutura para tabela `ssh_accounts`
--

CREATE TABLE `ssh_accounts` (
  `id` int(11) NOT NULL,
  `byid` int(11) NOT NULL DEFAULT 0,
  `categoriaid` int(11) NOT NULL DEFAULT 0,
  `limite` int(11) NOT NULL DEFAULT 0,
  `bycredit` int(11) NOT NULL DEFAULT 0,
  `login` varchar(50) NOT NULL DEFAULT '0',
  `senha` varchar(50) NOT NULL DEFAULT '0',
  `mainid` text NOT NULL,
  `expira` text DEFAULT NULL,
  `lastview` text DEFAULT NULL,
  `status` text DEFAULT NULL,
  `valormensal` text DEFAULT NULL,
  `whatsapp` text DEFAULT NULL,
  `uuid` text DEFAULT NULL,
  `notificado` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `userlimiter`
--

CREATE TABLE `userlimiter` (
  `id` int(11) NOT NULL,
  `nome_user` varchar(255) DEFAULT NULL,
  `limiter` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `user_states`
--

CREATE TABLE `user_states` (
  `chat_id` varchar(255) NOT NULL,
  `state` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`state`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `usuarios_vencimento`
--

CREATE TABLE `usuarios_vencimento` (
  `id` int(11) NOT NULL,
  `nome` varchar(100) NOT NULL,
  `data_vencimento` date NOT NULL,
  `onlines` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

-- --------------------------------------------------------

--
-- Estrutura para tabela `whatsapp`
--

CREATE TABLE `whatsapp` (
  `id` int(6) UNSIGNED NOT NULL,
  `token` text DEFAULT NULL,
  `sessao` text DEFAULT NULL,
  `ativo` text DEFAULT '1',
  `byid` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Índices para tabelas despejadas
--

--
-- Índices de tabela `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `atlasdeviceid`
--
ALTER TABLE `atlasdeviceid`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `atribuidos`
--
ALTER TABLE `atribuidos`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `bot`
--
ALTER TABLE `bot`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `bot_control`
--
ALTER TABLE `bot_control`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `bot_status`
--
ALTER TABLE `bot_status`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `categorias`
--
ALTER TABLE `categorias`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `configs`
--
ALTER TABLE `configs`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `config_pagamentos`
--
ALTER TABLE `config_pagamentos`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `usuario_id` (`usuario_id`),
  ADD KEY `usuario_id_2` (`usuario_id`);

--
-- Índices de tabela `cupons`
--
ALTER TABLE `cupons`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `logs`
--
ALTER TABLE `logs`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `mensagens`
--
ALTER TABLE `mensagens`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `mensagens_enviadas`
--
ALTER TABLE `mensagens_enviadas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `whatsapp` (`whatsapp`);

--
-- Índices de tabela `notificacoes_enviadas`
--
ALTER TABLE `notificacoes_enviadas`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `whatsapp` (`whatsapp`,`tipo_notificacao`);

--
-- Índices de tabela `onlines`
--
ALTER TABLE `onlines`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `pagamentos`
--
ALTER TABLE `pagamentos`
  ADD PRIMARY KEY (`id`),
  ADD KEY `usuario_id` (`usuario_id`),
  ADD KEY `payment_id` (`payment_id`),
  ADD KEY `status_pagto` (`status_pagto`);

--
-- Índices de tabela `payments`
--
ALTER TABLE `payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_payment_id` (`payment_id`),
  ADD KEY `idx_ssh_account` (`ssh_account_id`);

--
-- Índices de tabela `payments_tv`
--
ALTER TABLE `payments_tv`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `qrcode_images`
--
ALTER TABLE `qrcode_images`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `chave_pix` (`chave_pix`);

--
-- Índices de tabela `qrcode_metadata`
--
ALTER TABLE `qrcode_metadata`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `chave_pix` (`chave_pix`);

--
-- Índices de tabela `renovacoes`
--
ALTER TABLE `renovacoes`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `servidores`
--
ALTER TABLE `servidores`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `ssh_accounts`
--
ALTER TABLE `ssh_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `userlimiter`
--
ALTER TABLE `userlimiter`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `user_states`
--
ALTER TABLE `user_states`
  ADD PRIMARY KEY (`chat_id`);

--
-- Índices de tabela `usuarios_vencimento`
--
ALTER TABLE `usuarios_vencimento`
  ADD PRIMARY KEY (`id`);

--
-- Índices de tabela `whatsapp`
--
ALTER TABLE `whatsapp`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT para tabelas despejadas
--

--
-- AUTO_INCREMENT de tabela `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;

--
-- AUTO_INCREMENT de tabela `atlasdeviceid`
--
ALTER TABLE `atlasdeviceid`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=74;

--
-- AUTO_INCREMENT de tabela `atribuidos`
--
ALTER TABLE `atribuidos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT de tabela `bot_control`
--
ALTER TABLE `bot_control`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de tabela `bot_status`
--
ALTER TABLE `bot_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela `config_pagamentos`
--
ALTER TABLE `config_pagamentos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT de tabela `mensagens_enviadas`
--
ALTER TABLE `mensagens_enviadas`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=120;

--
-- AUTO_INCREMENT de tabela `notificacoes_enviadas`
--
ALTER TABLE `notificacoes_enviadas`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=408;

--
-- AUTO_INCREMENT de tabela `pagamentos`
--
ALTER TABLE `pagamentos`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela `payments`
--
ALTER TABLE `payments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT de tabela `payments_tv`
--
ALTER TABLE `payments_tv`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela `qrcode_images`
--
ALTER TABLE `qrcode_images`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela `qrcode_metadata`
--
ALTER TABLE `qrcode_metadata`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT de tabela `renovacoes`
--
ALTER TABLE `renovacoes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

--
-- AUTO_INCREMENT de tabela `servidores`
--
ALTER TABLE `servidores`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT de tabela `ssh_accounts`
--
ALTER TABLE `ssh_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=468;

--
-- AUTO_INCREMENT de tabela `usuarios_vencimento`
--
ALTER TABLE `usuarios_vencimento`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT de tabela `whatsapp`
--
ALTER TABLE `whatsapp`
  MODIFY `id` int(6) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
