-- phpMyAdmin SQL Dump
-- version 5.2.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 11, 2026 at 10:04 PM
-- Server version: 10.11.15-MariaDB
-- PHP Version: 8.4.25

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 */;

--
-- Database: `shakilte_coinflux`
--

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

--
-- Table structure for table `admin_action_log`
--

CREATE TABLE `admin_action_log` (
  `id` int(11) NOT NULL,
  `admin_email` varchar(150) DEFAULT NULL,
  `action` varchar(100) DEFAULT NULL,
  `target` varchar(255) DEFAULT NULL,
  `details` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `action_type` varchar(50) DEFAULT 'balance_adjust',
  `amount` decimal(18,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `admin_action_log`
--

INSERT INTO `admin_action_log` (`id`, `admin_email`, `action`, `target`, `details`, `created_at`, `action_type`, `amount`) VALUES
(1, 'admin@coinflux.com', 'reset_cooldown', 'pslabbd@gmail.com', '', '2026-10-05 14:46:45', 'balance_adjust', 0.00000000),
(2, 'admin@coinflux.com', 'reset_cooldown', 'pslabbd@gmail.com', '', '2026-10-05 14:55:38', 'balance_adjust', 0.00000000),
(3, 'admin@coinflux.com', 'balance_adjust', 'badhon223473@gmail.com', 'Amount: 100 | Note: ', '2026-10-07 18:27:12', 'balance_adjust', 0.00000000),
(4, 'admin@coinflux.com', 'balance_adjust', 'rabbi737475@gmail.com', 'Amount: 100 | Note: ', '2026-10-08 00:54:16', 'balance_adjust', 0.00000000),
(5, 'admin@coinflux.com', 'balance_adjust', 'rabbi737475@gmail.com', 'Amount: 100 | Note: ', '2026-10-08 00:54:16', 'balance_adjust', 0.00000000),
(6, 'admin@coinflux.com', 'balance_adjust', 'rabbi1712621783@gmail.com', 'Amount: 100 | Note: ', '2026-10-08 00:54:48', 'balance_adjust', 0.00000000),
(7, 'admin@coinflux.com', 'delete_cooldown', 'id=54', '', '2026-10-08 01:27:30', 'balance_adjust', 0.00000000),
(8, 'admin@coinflux.com', 'delete_cooldown', 'id=55', '', '2026-10-08 01:27:33', 'balance_adjust', 0.00000000),
(9, 'admin@coinflux.com', 'delete_cooldown', 'id=56', '', '2026-10-08 01:27:36', 'balance_adjust', 0.00000000),
(10, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: -5 | Note: ', '2026-10-08 01:28:12', 'balance_adjust', 0.00000000),
(11, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: -90 | Note: ', '2026-10-08 01:28:27', 'balance_adjust', 0.00000000),
(12, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: 34 | Note: ', '2026-10-08 01:28:38', 'balance_adjust', 0.00000000),
(13, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: 0.1 | Note: ', '2026-10-08 01:28:51', 'balance_adjust', 0.00000000),
(14, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: 200 | Note: ', '2026-10-08 01:28:58', 'balance_adjust', 0.00000000),
(15, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: 0.1 | Note: ', '2026-10-08 01:29:48', 'balance_adjust', 0.00000000),
(16, 'admin@coinflux.com', 'balance_adjust', 'pslabbd@gmail.com', 'Amount: -0.09 | Note: ', '2026-10-08 01:34:14', 'balance_adjust', 0.00000000),
(17, 'admin@coinflux.com', 'delete_cooldown', 'id=90', '', '2026-10-09 16:41:28', 'balance_adjust', 0.00000000),
(18, 'admin@coinflux.com', 'delete_cooldown', 'id=91', '', '2026-10-09 16:41:30', 'balance_adjust', 0.00000000),
(19, 'admin@coinflux.com', 'delete_cooldown', 'id=94', '', '2026-10-09 16:41:32', 'balance_adjust', 0.00000000),
(20, 'admin@coinflux.com', 'save_config', '', '{\"global_profit_percent\":\"1.5\",\"coin_cooldown_hours\":\"24\",\"coin_daily_limit\":\"1\"}', '2026-10-11 14:21:16', 'balance_adjust', 0.00000000);

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

--
-- Table structure for table `admin_notice`
--

CREATE TABLE `admin_notice` (
  `id` int(11) NOT NULL,
  `title` varchar(255) DEFAULT 'Announcement',
  `message` text NOT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `admin_notice`
--

INSERT INTO `admin_notice` (`id`, `title`, `message`, `is_active`, `updated_at`, `created_at`) VALUES
(1, 'Welcome to CoinPulse', 'CoinFlux is a platform for earning through P2P cryptocurrency transactions. \r\n\r\n Trade Smart, Earn Smart, and Explore the World of Crypto with CoinFlux!', 1, '2026-10-10 00:25:56', '2026-10-02 13:46:03');

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

--
-- Table structure for table `admin_users`
--

CREATE TABLE `admin_users` (
  `id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `email` varchar(150) NOT NULL,
  `password` varchar(255) NOT NULL,
  `full_name` varchar(150) DEFAULT NULL,
  `role` enum('admin','moderator') DEFAULT 'admin',
  `is_active` tinyint(1) DEFAULT 1,
  `last_login` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `admin_users`
--

INSERT INTO `admin_users` (`id`, `username`, `email`, `password`, `full_name`, `role`, `is_active`, `last_login`, `created_at`) VALUES
(1, 'admin', 'admin@coinflux.com', '$2y$12$tnBcI6i.tL8RQJvktVPSnuGK53/Af8uj4qj2oN/dk.M5yc6tdZ7BO', 'Super Admin', 'admin', 1, '2026-10-11 21:59:49', '2026-10-03 15:52:48');

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

--
-- Table structure for table `app_settings`
--

CREATE TABLE `app_settings` (
  `id` int(11) NOT NULL,
  `setting_key` varchar(100) NOT NULL,
  `setting_value` varchar(255) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `app_settings`
--

INSERT INTO `app_settings` (`id`, `setting_key`, `setting_value`, `is_active`, `updated_at`) VALUES
(1, 'signup_bonus', '5', 1, '2026-10-11 20:07:29'),
(2, 'referral_commission_status', '1', 1, '2026-10-09 11:24:39');

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

--
-- Table structure for table `commission_history`
--

CREATE TABLE `commission_history` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `from_email` varchar(150) DEFAULT NULL,
  `from_user` varchar(100) DEFAULT NULL,
  `amount` decimal(15,2) NOT NULL,
  `level` int(11) DEFAULT 1,
  `note` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `commission_history`
--

INSERT INTO `commission_history` (`id`, `email`, `from_email`, `from_user`, `amount`, `level`, `note`, `created_at`) VALUES
(1, 'user1@example.com', 'member1@example.com', 'Rahim', 5.00, 1, NULL, '2026-10-01 16:52:14'),
(2, 'user1@example.com', 'member2@example.com', 'Karim', 2.50, 2, NULL, '2026-10-01 16:52:14'),
(3, 'user1@example.com', 'member3@example.com', 'Salma', 1.25, 3, NULL, '2026-10-01 16:52:14');

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

--
-- Table structure for table `deposit_attempts`
--

CREATE TABLE `deposit_attempts` (
  `id` int(11) NOT NULL,
  `email` varchar(120) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `attempt_count` int(11) DEFAULT 1,
  `last_attempt_at` datetime DEFAULT current_timestamp(),
  `status` varchar(30) DEFAULT 'checking'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `deposit_attempts`
--

INSERT INTO `deposit_attempts` (`id`, `email`, `amount`, `attempt_count`, `last_attempt_at`, `status`) VALUES
(1, 'pslabbd@gmail.com', 6.00, 1, '2026-10-09 19:48:16', 'checking'),
(2, 'pslabbd@gmail.com', 50.00, 1, '2026-10-09 19:49:04', 'checking'),
(3, 'pslabbd@gmail.com', 10.00, 1, '2026-10-09 19:50:06', 'checking'),
(4, 'pslabbd@gmail.com', 56.01, 3, '2026-10-09 19:54:08', 'pending'),
(5, 'pslabbd@gmail.com', 12.00, 3, '2026-10-09 19:56:35', 'pending'),
(6, 'pslabbd@gmail.com', 13.00, 3, '2026-10-09 19:57:22', 'pending'),
(7, 'sakilaali2555@gmail.com', 1.00, 3, '2026-10-09 20:12:15', 'pending'),
(8, 'pslabbd@gmail.com', 15.00, 3, '2026-10-09 20:22:58', 'pending'),
(9, 'pslabbd@gmail.com', 33.00, 3, '2026-10-09 20:28:24', 'pending'),
(10, 'sakilaali2555@gmail.com', 50.00, 3, '2026-10-09 20:58:46', 'pending'),
(11, 'sakilaali2555@gmail.com', 30.00, 3, '2026-10-09 21:05:16', 'pending'),
(13, 'pslabbd@gmail.com', 23.00, 2, '2026-10-09 21:26:28', 'checking'),
(14, 'sakilaali2555@gmail.com', 20.00, 3, '2026-10-09 21:27:31', 'pending'),
(15, 'sakilaali2555@gmail.com', 5.00, 3, '2026-10-09 21:38:28', 'pending'),
(16, 'pslabbd@gmail.com', 5.00, 2, '2026-10-09 21:39:56', 'checking'),
(17, 'pslabbd@gmail.com', 100.00, 3, '2026-10-10 00:01:07', 'pending'),
(18, 'ariyan7373839@gmail.com', 100.00, 3, '2026-10-10 03:27:28', 'pending'),
(19, 'badhon223473@gmail.com', 100.00, 3, '2026-10-10 03:31:33', 'pending'),
(20, 'ri6043503@gmail.com', 105.00, 3, '2026-10-10 03:49:52', 'pending'),
(21, 'ri6043503@gmail.com', 110.00, 3, '2026-10-10 03:56:39', 'pending'),
(22, 'rabbi1712621783@gmail.com', 99.00, 3, '2026-10-10 04:32:55', 'pending'),
(23, 'rabbi1712621783@gmail.com', 95.00, 3, '2026-10-10 04:36:45', 'pending'),
(24, 'rabbi1712621783@gmail.com', 98.00, 3, '2026-10-10 04:40:00', 'pending'),
(25, 'rabbi1712621783@gmail.com', 100.00, 3, '2026-10-10 04:42:30', 'pending'),
(26, 'rabbi737475@gmail.com', 95.00, 3, '2026-10-10 04:44:40', 'pending'),
(27, 'rabbi737475@gmail.com', 80.00, 3, '2026-10-10 04:55:43', 'pending'),
(28, 'pslabbd@gmail.com', 30.00, 3, '2026-10-11 18:45:07', 'pending');

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

--
-- Table structure for table `deposit_methods`
--

CREATE TABLE `deposit_methods` (
  `id` int(11) NOT NULL,
  `method_key` varchar(50) NOT NULL,
  `method_name` varchar(100) NOT NULL,
  `method_logo` varchar(255) DEFAULT NULL,
  `method_logo_type` enum('url','icon','file') DEFAULT 'url',
  `binance_id` varchar(100) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `sort_order` int(11) DEFAULT 0,
  `min_amount` decimal(18,2) DEFAULT 1.00,
  `max_amount` decimal(18,2) DEFAULT 100000.00,
  `instructions` text DEFAULT NULL,
  `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_general_ci;

--
-- Dumping data for table `deposit_methods`
--

INSERT INTO `deposit_methods` (`id`, `method_key`, `method_name`, `method_logo`, `method_logo_type`, `binance_id`, `is_active`, `sort_order`, `min_amount`, `max_amount`, `instructions`, `created_at`, `updated_at`) VALUES
(1, 'binance', 'Binance Pay', 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/Binance_logo.svg/2560px-Binance_logo.svg.png', 'url', '894388028', 1, 1, 20.00, 100000.00, 'Minimum Deposit 20 USDT', '2026-10-05 15:34:22', '2026-10-09 18:10:29');

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

--
-- Table structure for table `market_pairs`
--

CREATE TABLE `market_pairs` (
  `id` int(11) NOT NULL,
  `symbol` varchar(20) NOT NULL,
  `base_coin` varchar(20) NOT NULL,
  `quote_coin` varchar(20) DEFAULT 'USDT',
  `price` decimal(20,8) DEFAULT 0.00000000,
  `change_percent` decimal(6,2) DEFAULT 0.00,
  `icon_class` varchar(60) DEFAULT 'fa-coins',
  `logo_url` varchar(500) DEFAULT NULL,
  `bg_color` varchar(50) DEFAULT '#FFD700',
  `text_color` varchar(50) DEFAULT '#000000',
  `is_active` tinyint(1) DEFAULT 1,
  `is_featured` tinyint(1) DEFAULT 0,
  `sort_order` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `market_pairs`
--

INSERT INTO `market_pairs` (`id`, `symbol`, `base_coin`, `quote_coin`, `price`, `change_percent`, `icon_class`, `logo_url`, `bg_color`, `text_color`, `is_active`, `is_featured`, `sort_order`, `created_at`) VALUES
(1, 'BTC/USDT', 'BTC', 'USDT', 63769.95007006, 0.70, 'fa-brands fa-bitcoin', NULL, '#F7931A', '#FFFFFF', 1, 0, 1, '2026-10-04 15:59:53'),
(2, 'ETH/USDT', 'ETH', 'USDT', 3458.45519838, -0.32, 'fa-brands fa-ethereum', NULL, '#627EEA', '#FFFFFF', 1, 0, 2, '2026-10-04 15:59:53'),
(3, 'SOL/USDT', 'SOL', 'USDT', 147.81410326, 0.67, 'fa-coins', NULL, '#9945FF', '#FFFFFF', 1, 0, 3, '2026-10-04 15:59:53'),
(4, 'BNB/USDT', 'BNB', 'USDT', 591.33349562, 0.31, 'fa-coins', NULL, '#F3BA2F', '#000000', 1, 0, 4, '2026-10-04 15:59:53'),
(5, 'XRP/USDT', 'XRP', 'USDT', 0.51398072, -0.64, 'fa-coins', NULL, '#23292F', '#FFFFFF', 1, 0, 5, '2026-10-04 15:59:53'),
(6, 'ADA/USDT', 'ADA', 'USDT', 0.44623167, -0.17, 'fa-coins', NULL, '#0033AD', '#FFFFFF', 1, 0, 6, '2026-10-04 15:59:53'),
(7, 'GCP/USDT', 'GCP', 'USDT', 1.49381305, -0.41, 'fa-solid fa-coins', NULL, '#FFD700', '#000000', 1, 0, 7, '2026-10-04 15:59:53'),
(8, 'PI', 'SK', 'USDT', 21342.00000000, 33.00, 'fa-coins', NULL, '#1D41F7', '#832A77', 1, 1, 23, '2026-10-04 16:04:44');

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

--
-- Table structure for table `market_settings`
--

CREATE TABLE `market_settings` (
  `id` int(11) NOT NULL,
  `setting_key` varchar(100) DEFAULT NULL,
  `setting_value` text DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `market_settings`
--

INSERT INTO `market_settings` (`id`, `setting_key`, `setting_value`, `updated_at`) VALUES
(1, 'trade_enabled', '1', '2026-10-04 15:59:53'),
(2, 'trade_fee_percent', '0.1', '2026-10-04 15:59:53'),
(3, 'require_kyc', '1', '2026-10-04 15:59:53'),
(4, 'maintenance_mode', '0', '2026-10-04 15:59:53'),
(5, 'maintenance_message', 'Market is under maintenance. Please try again later.', '2026-10-04 15:59:53');

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

--
-- Table structure for table `my_users`
--

CREATE TABLE `my_users` (
  `id` int(11) NOT NULL,
  `admin_email` varchar(150) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `added_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `my_users`
--

INSERT INTO `my_users` (`id`, `admin_email`, `user_id`, `added_at`) VALUES
(2, 'admin@coinflux.com', 31, '2026-10-11 21:53:58');

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `type` varchar(50) DEFAULT 'announcement',
  `badge` varchar(50) DEFAULT 'OFFICIAL',
  `is_live` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `email` varchar(120) DEFAULT NULL,
  `is_read` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `title`, `message`, `type`, `badge`, `is_live`, `created_at`, `email`, `is_read`) VALUES
(1, 'SYSTEM ANNOUNCEMENT', 'Welcome to Coin Flux, where smart investing meets digital trading. Buy Gold Coins, participate in trading, and grow your earnings through our simple and secure platform. Our goal is to provide a smooth, transparent, and user-friendly experience for every member.', 'announcement', 'OFFICIAL', 1, '2026-09-30 15:47:54', NULL, 0),
(8, 'Valid Member Activated', 'You are now a Valid Member! Bonus: $0', 'success', 'OFFICIAL', 1, '2026-10-09 21:28:57', 'ariyan7373839@gmail.com', 0),
(9, 'Valid Member Activated', 'You are now a Valid Member! Bonus: $0', 'success', 'OFFICIAL', 1, '2026-10-09 21:31:59', 'badhon223473@gmail.com', 0),
(10, 'Valid Member Activated', 'You are now a Valid Member! Bonus: $0', 'success', 'OFFICIAL', 1, '2026-10-09 21:50:42', 'ri6043503@gmail.com', 0),
(11, 'Valid Member Activated', 'You are now a Valid Member! Bonus: $10', 'success', 'OFFICIAL', 1, '2026-10-09 22:42:56', 'rabbi1712621783@gmail.com', 0);

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

--
-- Table structure for table `otp_verification`
--

CREATE TABLE `otp_verification` (
  `id` int(11) NOT NULL,
  `email` varchar(100) NOT NULL,
  `otp` varchar(10) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `referral_input` varchar(10) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `otp_verification`
--

INSERT INTO `otp_verification` (`id`, `email`, `otp`, `username`, `password`, `referral_input`, `created_at`) VALUES
(26, 'shakilaali255@gmail.com', '6300', 'shakil', '$2y$10$zKprGCI4DWTb6rt3wXryG.KB/KCHCGhVu35EpAFR6PwBn7ZWTkR62', '', '2026-09-29 12:00:46'),
(37, 'shakilaali2555@gmail.com', '9929', 'I AM SHAKIL', '$2y$10$URsE4.Br2HvnIrXhoNGqvuIjjQgDv0IbipiTUEK3Kcetvf8nCuzwW', '', '2026-09-29 20:56:39'),
(47, 'ashragullanin@gmail.com', '8927', 'Anin Islam', '$2y$10$ovSpr5VmQeln19/4F84Awuw71gA4X4ThJbtsZ6dzOymmB38dYpS52', '248220', '2026-10-10 00:30:51'),
(49, 'ri604350503@gmail.com', '5451', 'Nasib', '$2y$10$4TqbSNCMJK./iz8ntRs3F.KfqatiRBKzoUz5lP6z5hBSX3/S3ydvu', '248220', '2026-10-10 01:13:48');

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

--
-- Table structure for table `p2p_coins`
--

CREATE TABLE `p2p_coins` (
  `id` int(11) NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `coin_name` varchar(100) NOT NULL,
  `coin_icon` varchar(20) DEFAULT 'fa-coins',
  `is_active` tinyint(1) DEFAULT 1,
  `sort_order` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `cooldown_hours` int(11) DEFAULT 24,
  `daily_limit` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `p2p_coins`
--

INSERT INTO `p2p_coins` (`id`, `coin_code`, `coin_name`, `coin_icon`, `is_active`, `sort_order`, `created_at`, `cooldown_hours`, `daily_limit`) VALUES
(1, 'GCP', 'Gold Coin Pulse', 'fa-coins', 1, 1, '2026-10-05 14:05:48', 24, 1),
(2, 'KFP', 'Krypto Fund Pro', 'fa-sack-dollar', 1, 2, '2026-10-05 14:05:48', 24, 1),
(3, 'SOP', 'Secure Option', 'fa-gem', 1, 3, '2026-10-05 14:05:48', 24, 1);

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

--
-- Table structure for table `p2p_coin_cooldown`
--

CREATE TABLE `p2p_coin_cooldown` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `last_buy_at` timestamp NULL DEFAULT NULL,
  `last_sell_at` timestamp NULL DEFAULT NULL,
  `buy_count_today` int(11) DEFAULT 0,
  `sell_count_today` int(11) DEFAULT 0,
  `last_reset_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `p2p_coin_cooldown`
--

INSERT INTO `p2p_coin_cooldown` (`id`, `email`, `coin_code`, `last_buy_at`, `last_sell_at`, `buy_count_today`, `sell_count_today`, `last_reset_date`) VALUES
(60, 'badhonprince7374@gmail.com', 'GCP', '2026-10-07 10:31:44', '2026-10-07 10:32:01', 1, 1, '2026-10-07'),
(61, 'badhonprince7374@gmail.com', 'KFP', '2026-10-07 10:31:49', '2026-10-07 10:32:27', 1, 1, '2026-10-07'),
(62, 'badhonprince7374@gmail.com', 'SOP', '2026-10-07 10:31:53', '2026-10-07 10:32:50', 1, 1, '2026-10-07'),
(66, 'badhon223473@gmail.com', 'GCP', '2026-10-07 18:57:20', '2026-10-07 18:58:27', 1, 1, '2026-10-08'),
(67, 'badhon223473@gmail.com', 'KFP', '2026-10-07 18:57:24', '2026-10-07 18:58:59', 1, 1, '2026-10-08'),
(69, 'badhon223473@gmail.com', 'SOP', '2026-10-07 18:58:52', '2026-10-07 18:59:23', 1, 1, '2026-10-08'),
(72, 'rabbi1712621783@gmail.com', 'GCP', '2026-10-07 19:06:53', '2026-10-07 19:07:11', 1, 1, '2026-10-08'),
(73, 'rabbi1712621783@gmail.com', 'KFP', '2026-10-07 19:07:00', '2026-10-07 19:07:35', 1, 1, '2026-10-08'),
(74, 'rabbi1712621783@gmail.com', 'SOP', '2026-10-07 19:07:05', '2026-10-07 19:07:58', 1, 1, '2026-10-08'),
(78, 'rabbi737475@gmail.com', 'GCP', '2026-10-11 08:11:51', '2026-10-11 08:12:18', 3, 3, '2026-10-11'),
(79, 'rabbi737475@gmail.com', 'KFP', '2026-10-11 08:11:58', '2026-10-11 08:15:11', 3, 3, '2026-10-11'),
(82, 'rabbi737475@gmail.com', 'SOP', '2026-10-11 08:12:02', '2026-10-11 08:15:57', 3, 3, '2026-10-11'),
(84, 'pslabbd@gmail.com', 'GCP', '2026-10-11 07:38:05', '2026-10-07 19:34:24', 2, 1, '2026-10-11'),
(85, 'pslabbd@gmail.com', 'KFP', '2026-10-11 07:38:15', '2026-10-07 19:34:50', 2, 1, '2026-10-11'),
(86, 'pslabbd@gmail.com', 'SOP', '2026-10-11 07:38:18', '2026-10-07 19:35:13', 2, 1, '2026-10-11'),
(96, 'ariyan7373839@gmail.com', 'GCP', '2026-10-11 04:14:49', '2026-10-11 04:19:43', 2, 2, '2026-10-11'),
(97, 'ariyan7373839@gmail.com', 'KFP', '2026-10-11 04:14:54', '2026-10-11 04:20:10', 2, 2, '2026-10-11'),
(98, 'ariyan7373839@gmail.com', 'SOP', '2026-10-11 04:14:57', '2026-10-11 04:20:35', 2, 2, '2026-10-11'),
(102, 'ri6043503@gmail.com', 'GCP', '2026-10-09 15:58:36', '2026-10-09 15:58:53', 1, 1, '2026-10-09'),
(103, 'ri6043503@gmail.com', 'KFP', '2026-10-09 15:58:39', '2026-10-09 15:59:16', 1, 1, '2026-10-09'),
(104, 'ri6043503@gmail.com', 'SOP', '2026-10-09 15:58:43', '2026-10-09 15:59:39', 1, 1, '2026-10-09');

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

--
-- Table structure for table `p2p_commissions`
--

CREATE TABLE `p2p_commissions` (
  `id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `commission_type` varchar(50) DEFAULT 'platform',
  `commission_percent` decimal(5,2) DEFAULT 0.00,
  `commission_usdt` decimal(18,8) DEFAULT 0.00000000,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `p2p_commissions`
--

INSERT INTO `p2p_commissions` (`id`, `order_id`, `email`, `commission_type`, `commission_percent`, `commission_usdt`, `created_at`) VALUES
(19, 59, 'pslabbd@gmail.com', 'platform', 5.00, 0.01500000, '2026-10-07 16:18:32'),
(20, 60, 'pslabbd@gmail.com', 'platform', 5.00, 0.01500000, '2026-10-07 16:19:04'),
(21, 61, 'pslabbd@gmail.com', 'platform', 5.00, 0.01500000, '2026-10-07 16:19:23'),
(22, 65, 'badhonprince7374@gmail.com', 'platform', 5.00, 0.02301000, '2026-10-07 16:32:01'),
(23, 66, 'badhonprince7374@gmail.com', 'platform', 5.00, 0.02301000, '2026-10-07 16:32:27'),
(24, 67, 'badhonprince7374@gmail.com', 'platform', 5.00, 0.02301000, '2026-10-07 16:32:50'),
(25, 70, 'badhon223473@gmail.com', 'platform', 5.00, 0.02000003, '2026-10-08 00:58:27'),
(26, 72, 'badhon223473@gmail.com', 'platform', 5.00, 0.02000003, '2026-10-08 00:58:59'),
(27, 73, 'badhon223473@gmail.com', 'platform', 5.00, 0.02000003, '2026-10-08 00:59:23'),
(28, 77, 'rabbi1712621783@gmail.com', 'platform', 5.00, 0.02499998, '2026-10-08 01:07:11'),
(29, 78, 'rabbi1712621783@gmail.com', 'platform', 5.00, 0.02499998, '2026-10-08 01:07:35'),
(30, 79, 'rabbi1712621783@gmail.com', 'platform', 5.00, 0.02499998, '2026-10-08 01:07:58'),
(31, 82, 'rabbi737475@gmail.com', 'platform', 5.00, 0.05000003, '2026-10-08 01:11:03'),
(32, 83, 'rabbi737475@gmail.com', 'platform', 5.00, 0.05000003, '2026-10-08 01:11:27'),
(33, 85, 'rabbi737475@gmail.com', 'platform', 5.00, 0.05049998, '2026-10-08 01:13:14'),
(34, 89, 'pslabbd@gmail.com', 'platform', 5.00, 0.05000003, '2026-10-08 01:34:24'),
(35, 90, 'pslabbd@gmail.com', 'platform', 5.00, 0.05000003, '2026-10-08 01:34:50'),
(36, 91, 'pslabbd@gmail.com', 'platform', 5.00, 0.05000003, '2026-10-08 01:35:13'),
(37, 94, 'sakilaali2555@gmail.com', 'platform', 5.00, 0.00125003, '2026-10-09 16:25:05'),
(38, 95, 'sakilaali2555@gmail.com', 'platform', 5.00, 0.00125003, '2026-10-09 16:25:43'),
(39, 97, 'sakilaali2555@gmail.com', 'platform', 5.00, 0.00126000, '2026-10-09 16:26:36'),
(40, 101, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02625000, '2026-10-09 21:34:07'),
(41, 102, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02625000, '2026-10-09 21:34:34'),
(42, 103, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02625000, '2026-10-09 21:34:59'),
(43, 107, 'ri6043503@gmail.com', 'platform', 5.00, 0.05499998, '2026-10-09 21:58:53'),
(44, 108, 'ri6043503@gmail.com', 'platform', 5.00, 0.05499998, '2026-10-09 21:59:16'),
(45, 109, 'ri6043503@gmail.com', 'platform', 5.00, 0.05499998, '2026-10-09 21:59:39'),
(46, 112, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07075253, '2026-10-09 22:59:02'),
(47, 113, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07075253, '2026-10-09 22:59:26'),
(48, 115, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07145753, '2026-10-09 22:59:55'),
(49, 119, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02664750, '2026-10-11 10:19:43'),
(50, 120, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02664750, '2026-10-11 10:20:10'),
(51, 121, 'ariyan7373839@gmail.com', 'platform', 5.00, 0.02664750, '2026-10-11 10:20:35'),
(52, 128, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07979442, '2026-10-11 14:12:18'),
(53, 129, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07979442, '2026-10-11 14:15:11'),
(54, 130, 'rabbi737475@gmail.com', 'platform', 5.00, 0.07979442, '2026-10-11 14:15:57');

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

--
-- Table structure for table `p2p_config`
--

CREATE TABLE `p2p_config` (
  `id` int(11) NOT NULL,
  `config_key` varchar(50) NOT NULL,
  `config_value` varchar(255) NOT NULL,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `p2p_config`
--

INSERT INTO `p2p_config` (`id`, `config_key`, `config_value`, `updated_at`) VALUES
(1, 'global_profit_percent', '1.5', '2026-10-11 14:21:16'),
(2, 'daily_trade_limit', '5', '2026-10-09 18:09:32'),
(3, 'min_trade_amount', '20', '2026-10-09 18:09:32'),
(4, 'max_trade_amount', '100000', '2026-10-09 18:09:32'),
(5, 'trade_cooldown_seconds', '0', '2026-10-05 14:05:48'),
(7, 'coin_cooldown_hours', '24', '2026-10-09 18:09:32'),
(8, 'coin_daily_limit', '1', '2026-10-09 18:09:32'),
(9, 'auto_coin_split', '1', '2026-10-09 18:09:32'),
(10, 'binance_id', '123456789', '2026-10-09 18:09:32');

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

--
-- Table structure for table `p2p_daily_counter`
--

CREATE TABLE `p2p_daily_counter` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `trade_date` date NOT NULL,
  `trade_count` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `p2p_daily_earnings`
--

CREATE TABLE `p2p_daily_earnings` (
  `id` int(11) NOT NULL,
  `earn_date` date NOT NULL,
  `total_buys` int(11) DEFAULT 0,
  `total_sells` int(11) DEFAULT 0,
  `buy_volume` decimal(18,2) DEFAULT 0.00,
  `sell_volume` decimal(18,2) DEFAULT 0.00,
  `total_volume` decimal(18,2) DEFAULT 0.00,
  `total_profit` decimal(18,8) DEFAULT 0.00000000,
  `total_commission` decimal(18,8) DEFAULT 0.00000000,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `p2p_holdings`
--

CREATE TABLE `p2p_holdings` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `quantity` decimal(18,8) DEFAULT 0.00000000,
  `avg_buy_price` decimal(18,8) DEFAULT 1.00000000,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `p2p_holdings`
--

INSERT INTO `p2p_holdings` (`id`, `email`, `coin_code`, `quantity`, `avg_buy_price`, `updated_at`) VALUES
(29, 'pslabbd@gmail.com', 'SOP', 43.97330000, 1.00000000, '2026-10-11 13:38:18'),
(30, 'pslabbd@gmail.com', 'GCP', 43.97330000, 1.00000000, '2026-10-11 13:38:05'),
(31, 'pslabbd@gmail.com', 'KFP', 43.97330000, 1.00000000, '2026-10-11 13:38:15'),
(32, 'badhonprince7374@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-07 16:32:01'),
(33, 'badhonprince7374@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-07 16:32:27'),
(34, 'badhonprince7374@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-07 16:32:50'),
(35, 'badhon223473@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-08 00:58:27'),
(36, 'badhon223473@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-08 00:58:59'),
(37, 'badhon223473@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-08 00:59:23'),
(38, 'rabbi1712621783@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-08 01:07:11'),
(39, 'rabbi1712621783@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-08 01:07:35'),
(40, 'rabbi1712621783@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-08 01:07:58'),
(41, 'rabbi737475@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-11 14:12:18'),
(42, 'rabbi737475@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-11 14:15:11'),
(43, 'rabbi737475@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-11 14:15:57'),
(47, 'sakilaali2555@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-09 16:25:05'),
(48, 'sakilaali2555@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-09 16:25:43'),
(49, 'sakilaali2555@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-09 16:26:36'),
(50, 'ariyan7373839@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-11 10:19:43'),
(51, 'ariyan7373839@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-11 10:20:10'),
(52, 'ariyan7373839@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-11 10:20:35'),
(53, 'ri6043503@gmail.com', 'GCP', 0.00000000, 1.00000000, '2026-10-09 21:58:53'),
(54, 'ri6043503@gmail.com', 'KFP', 0.00000000, 1.00000000, '2026-10-09 21:59:16'),
(55, 'ri6043503@gmail.com', 'SOP', 0.00000000, 1.00000000, '2026-10-09 21:59:39');

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

--
-- Table structure for table `p2p_orders`
--

CREATE TABLE `p2p_orders` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `order_type` enum('buy','sell') NOT NULL,
  `amount` decimal(18,8) NOT NULL,
  `price` decimal(18,8) NOT NULL DEFAULT 1.00000000,
  `total_usdt` decimal(18,8) NOT NULL,
  `profit_usdt` decimal(18,8) DEFAULT 0.00000000,
  `profit_percent` decimal(5,2) DEFAULT 0.00,
  `status` enum('pending','completed','cancelled','failed') DEFAULT 'pending',
  `partner_name` varchar(100) DEFAULT NULL,
  `buy_order_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `completed_at` timestamp NULL DEFAULT NULL,
  `coin_quantity` decimal(18,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `p2p_orders`
--

INSERT INTO `p2p_orders` (`id`, `email`, `coin_code`, `order_type`, `amount`, `price`, `total_usdt`, `profit_usdt`, `profit_percent`, `status`, `partner_name`, `buy_order_id`, `created_at`, `completed_at`, `coin_quantity`) VALUES
(56, 'pslabbd@gmail.com', 'SOP', 'buy', 20.00000000, 1.00000000, 20.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:17:52', '2026-10-07 16:17:52', 20.00000000),
(57, 'pslabbd@gmail.com', 'GCP', 'buy', 20.00000000, 1.00000000, 20.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:18:20', '2026-10-07 16:18:20', 20.00000000),
(58, 'pslabbd@gmail.com', 'KFP', 'buy', 20.00000000, 1.00000000, 20.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:18:23', '2026-10-07 16:18:23', 20.00000000),
(59, 'pslabbd@gmail.com', 'KFP', 'sell', 20.00000000, 1.00000000, 20.30000000, 0.30000000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:18:32', '2026-10-07 16:18:32', 20.00000000),
(60, 'pslabbd@gmail.com', 'GCP', 'sell', 20.00000000, 1.00000000, 20.30000000, 0.30000000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:19:04', '2026-10-07 16:19:04', 20.00000000),
(61, 'pslabbd@gmail.com', 'SOP', 'sell', 20.00000000, 1.00000000, 20.30000000, 0.30000000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:19:23', '2026-10-07 16:19:23', 20.00000000),
(62, 'badhonprince7374@gmail.com', 'GCP', 'buy', 30.68000000, 1.00000000, 30.68000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:31:44', '2026-10-07 16:31:44', 30.68000000),
(63, 'badhonprince7374@gmail.com', 'KFP', 'buy', 30.68000000, 1.00000000, 30.68000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:31:49', '2026-10-07 16:31:49', 30.68000000),
(64, 'badhonprince7374@gmail.com', 'SOP', 'buy', 30.68000000, 1.00000000, 30.68000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-07 16:31:53', '2026-10-07 16:31:53', 30.68000000),
(65, 'badhonprince7374@gmail.com', 'GCP', 'sell', 30.68000000, 1.00000000, 31.14020000, 0.46020000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:32:01', '2026-10-07 16:32:01', 30.68000000),
(66, 'badhonprince7374@gmail.com', 'KFP', 'sell', 30.68000000, 1.00000000, 31.14020000, 0.46020000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:32:27', '2026-10-07 16:32:27', 30.68000000),
(67, 'badhonprince7374@gmail.com', 'SOP', 'sell', 30.68000000, 1.00000000, 31.14020000, 0.46020000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-07 16:32:50', '2026-10-07 16:32:50', 30.68000000),
(68, 'badhon223473@gmail.com', 'GCP', 'buy', 26.66670000, 1.00000000, 26.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 00:57:20', '2026-10-08 00:57:20', 26.66670000),
(69, 'badhon223473@gmail.com', 'KFP', 'buy', 26.66670000, 1.00000000, 26.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 00:57:24', '2026-10-08 00:57:24', 26.66670000),
(70, 'badhon223473@gmail.com', 'GCP', 'sell', 26.66670000, 1.00000000, 27.06670050, 0.40000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 00:58:27', '2026-10-08 00:58:27', 26.66670000),
(71, 'badhon223473@gmail.com', 'SOP', 'buy', 26.66670000, 1.00000000, 26.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 00:58:52', '2026-10-08 00:58:52', 26.66670000),
(72, 'badhon223473@gmail.com', 'KFP', 'sell', 26.66670000, 1.00000000, 27.06670050, 0.40000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 00:58:59', '2026-10-08 00:58:59', 26.66670000),
(73, 'badhon223473@gmail.com', 'SOP', 'sell', 26.66670000, 1.00000000, 27.06670050, 0.40000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 00:59:23', '2026-10-08 00:59:23', 26.66670000),
(74, 'rabbi1712621783@gmail.com', 'GCP', 'buy', 33.33330000, 1.00000000, 33.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:06:53', '2026-10-08 01:06:53', 33.33330000),
(75, 'rabbi1712621783@gmail.com', 'KFP', 'buy', 33.33330000, 1.00000000, 33.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:07:00', '2026-10-08 01:07:00', 33.33330000),
(76, 'rabbi1712621783@gmail.com', 'SOP', 'buy', 33.33330000, 1.00000000, 33.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:07:05', '2026-10-08 01:07:05', 33.33330000),
(77, 'rabbi1712621783@gmail.com', 'GCP', 'sell', 33.33330000, 1.00000000, 33.83329950, 0.49999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:07:11', '2026-10-08 01:07:11', 33.33330000),
(78, 'rabbi1712621783@gmail.com', 'KFP', 'sell', 33.33330000, 1.00000000, 33.83329950, 0.49999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:07:35', '2026-10-08 01:07:35', 33.33330000),
(79, 'rabbi1712621783@gmail.com', 'SOP', 'sell', 33.33330000, 1.00000000, 33.83329950, 0.49999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:07:58', '2026-10-08 01:07:58', 33.33330000),
(80, 'rabbi737475@gmail.com', 'GCP', 'buy', 66.66670000, 1.00000000, 66.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:10:31', '2026-10-08 01:10:31', 66.66670000),
(81, 'rabbi737475@gmail.com', 'KFP', 'buy', 66.66670000, 1.00000000, 66.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:10:35', '2026-10-08 01:10:35', 66.66670000),
(82, 'rabbi737475@gmail.com', 'GCP', 'sell', 66.66670000, 1.00000000, 67.66670050, 1.00000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:11:03', '2026-10-08 01:11:03', 66.66670000),
(83, 'rabbi737475@gmail.com', 'KFP', 'sell', 66.66670000, 1.00000000, 67.66670050, 1.00000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:11:27', '2026-10-08 01:11:27', 66.66670000),
(84, 'rabbi737475@gmail.com', 'SOP', 'buy', 67.33330000, 1.00000000, 67.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:13:09', '2026-10-08 01:13:09', 67.33330000),
(85, 'rabbi737475@gmail.com', 'SOP', 'sell', 67.33330000, 1.00000000, 68.34329950, 1.00999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:13:14', '2026-10-08 01:13:14', 67.33330000),
(86, 'pslabbd@gmail.com', 'GCP', 'buy', 66.66670000, 1.00000000, 66.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:29:15', '2026-10-08 01:29:15', 66.66670000),
(87, 'pslabbd@gmail.com', 'KFP', 'buy', 66.66670000, 1.00000000, 66.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:29:19', '2026-10-08 01:29:19', 66.66670000),
(88, 'pslabbd@gmail.com', 'SOP', 'buy', 66.66670000, 1.00000000, 66.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-08 01:33:53', '2026-10-08 01:33:53', 66.66670000),
(89, 'pslabbd@gmail.com', 'GCP', 'sell', 66.66670000, 1.00000000, 67.66670050, 1.00000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:34:24', '2026-10-08 01:34:24', 66.66670000),
(90, 'pslabbd@gmail.com', 'KFP', 'sell', 66.66670000, 1.00000000, 67.66670050, 1.00000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:34:50', '2026-10-08 01:34:50', 66.66670000),
(91, 'pslabbd@gmail.com', 'SOP', 'sell', 66.66670000, 1.00000000, 67.66670050, 1.00000050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-08 01:35:13', '2026-10-08 01:35:13', 66.66670000),
(92, 'sakilaali2555@gmail.com', 'GCP', 'buy', 1.66670000, 1.00000000, 1.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 16:24:35', '2026-10-09 16:24:35', 1.66670000),
(93, 'sakilaali2555@gmail.com', 'KFP', 'buy', 1.66670000, 1.00000000, 1.66670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 16:24:41', '2026-10-09 16:24:41', 1.66670000),
(94, 'sakilaali2555@gmail.com', 'GCP', 'sell', 1.66670000, 1.00000000, 1.69170050, 0.02500050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 16:25:05', '2026-10-09 16:25:05', 1.66670000),
(95, 'sakilaali2555@gmail.com', 'KFP', 'sell', 1.66670000, 1.00000000, 1.69170050, 0.02500050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 16:25:43', '2026-10-09 16:25:43', 1.66670000),
(96, 'sakilaali2555@gmail.com', 'SOP', 'buy', 1.68000000, 1.00000000, 1.68000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 16:26:28', '2026-10-09 16:26:28', 1.68000000),
(97, 'sakilaali2555@gmail.com', 'SOP', 'sell', 1.68000000, 1.00000000, 1.70520000, 0.02520000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 16:26:36', '2026-10-09 16:26:36', 1.68000000),
(98, 'ariyan7373839@gmail.com', 'GCP', 'buy', 35.00000000, 1.00000000, 35.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:33:50', '2026-10-09 21:33:50', 35.00000000),
(99, 'ariyan7373839@gmail.com', 'KFP', 'buy', 35.00000000, 1.00000000, 35.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:33:58', '2026-10-09 21:33:58', 35.00000000),
(100, 'ariyan7373839@gmail.com', 'SOP', 'buy', 35.00000000, 1.00000000, 35.00000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:34:01', '2026-10-09 21:34:01', 35.00000000),
(101, 'ariyan7373839@gmail.com', 'GCP', 'sell', 35.00000000, 1.00000000, 35.52500000, 0.52500000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:34:07', '2026-10-09 21:34:07', 35.00000000),
(102, 'ariyan7373839@gmail.com', 'KFP', 'sell', 35.00000000, 1.00000000, 35.52500000, 0.52500000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:34:34', '2026-10-09 21:34:34', 35.00000000),
(103, 'ariyan7373839@gmail.com', 'SOP', 'sell', 35.00000000, 1.00000000, 35.52500000, 0.52500000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:34:59', '2026-10-09 21:34:59', 35.00000000),
(104, 'ri6043503@gmail.com', 'GCP', 'buy', 73.33330000, 1.00000000, 73.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:58:36', '2026-10-09 21:58:36', 73.33330000),
(105, 'ri6043503@gmail.com', 'KFP', 'buy', 73.33330000, 1.00000000, 73.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:58:39', '2026-10-09 21:58:39', 73.33330000),
(106, 'ri6043503@gmail.com', 'SOP', 'buy', 73.33330000, 1.00000000, 73.33330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 21:58:43', '2026-10-09 21:58:43', 73.33330000),
(107, 'ri6043503@gmail.com', 'GCP', 'sell', 73.33330000, 1.00000000, 74.43329950, 1.09999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:58:53', '2026-10-09 21:58:53', 73.33330000),
(108, 'ri6043503@gmail.com', 'KFP', 'sell', 73.33330000, 1.00000000, 74.43329950, 1.09999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:59:16', '2026-10-09 21:59:16', 73.33330000),
(109, 'ri6043503@gmail.com', 'SOP', 'sell', 73.33330000, 1.00000000, 74.43329950, 1.09999950, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 21:59:39', '2026-10-09 21:59:39', 73.33330000),
(110, 'rabbi737475@gmail.com', 'GCP', 'buy', 94.33670000, 1.00000000, 94.33670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 22:58:31', '2026-10-09 22:58:31', 94.33670000),
(111, 'rabbi737475@gmail.com', 'KFP', 'buy', 94.33670000, 1.00000000, 94.33670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 22:58:34', '2026-10-09 22:58:34', 94.33670000),
(112, 'rabbi737475@gmail.com', 'GCP', 'sell', 94.33670000, 1.00000000, 95.75175050, 1.41505050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 22:59:02', '2026-10-09 22:59:02', 94.33670000),
(113, 'rabbi737475@gmail.com', 'KFP', 'sell', 94.33670000, 1.00000000, 95.75175050, 1.41505050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 22:59:26', '2026-10-09 22:59:26', 94.33670000),
(114, 'rabbi737475@gmail.com', 'SOP', 'buy', 95.27670000, 1.00000000, 95.27670000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-09 22:59:50', '2026-10-09 22:59:50', 95.27670000),
(115, 'rabbi737475@gmail.com', 'SOP', 'sell', 95.27670000, 1.00000000, 96.70585050, 1.42915050, 1.50, 'completed', 'System Buyer', NULL, '2026-10-09 22:59:55', '2026-10-09 22:59:55', 95.27670000),
(116, 'ariyan7373839@gmail.com', 'GCP', 'buy', 35.53000000, 1.00000000, 35.53000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 10:14:49', '2026-10-11 10:14:49', 35.53000000),
(117, 'ariyan7373839@gmail.com', 'KFP', 'buy', 35.53000000, 1.00000000, 35.53000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 10:14:54', '2026-10-11 10:14:54', 35.53000000),
(118, 'ariyan7373839@gmail.com', 'SOP', 'buy', 35.53000000, 1.00000000, 35.53000000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 10:14:57', '2026-10-11 10:14:57', 35.53000000),
(119, 'ariyan7373839@gmail.com', 'GCP', 'sell', 35.53000000, 1.00000000, 36.06295000, 0.53295000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-11 10:19:43', '2026-10-11 10:19:43', 35.53000000),
(120, 'ariyan7373839@gmail.com', 'KFP', 'sell', 35.53000000, 1.00000000, 36.06295000, 0.53295000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-11 10:20:10', '2026-10-11 10:20:10', 35.53000000),
(121, 'ariyan7373839@gmail.com', 'SOP', 'sell', 35.53000000, 1.00000000, 36.06295000, 0.53295000, 1.50, 'completed', 'System Buyer', NULL, '2026-10-11 10:20:35', '2026-10-11 10:20:35', 35.53000000),
(122, 'pslabbd@gmail.com', 'GCP', 'buy', 43.97330000, 1.00000000, 43.97330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 13:38:05', '2026-10-11 13:38:05', 43.97330000),
(123, 'pslabbd@gmail.com', 'KFP', 'buy', 43.97330000, 1.00000000, 43.97330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 13:38:15', '2026-10-11 13:38:15', 43.97330000),
(124, 'pslabbd@gmail.com', 'SOP', 'buy', 43.97330000, 1.00000000, 43.97330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 13:38:18', '2026-10-11 13:38:18', 43.97330000),
(125, 'rabbi737475@gmail.com', 'GCP', 'buy', 95.75330000, 1.00000000, 95.75330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 14:11:51', '2026-10-11 14:11:51', 95.75330000),
(126, 'rabbi737475@gmail.com', 'KFP', 'buy', 95.75330000, 1.00000000, 95.75330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 14:11:58', '2026-10-11 14:11:58', 95.75330000),
(127, 'rabbi737475@gmail.com', 'SOP', 'buy', 95.75330000, 1.00000000, 95.75330000, 0.00000000, 0.00, 'completed', 'System Seller', NULL, '2026-10-11 14:12:02', '2026-10-11 14:12:02', 95.75330000),
(128, 'rabbi737475@gmail.com', 'GCP', 'sell', 95.75330000, 1.00000000, 97.34918833, 1.59588833, 1.67, 'completed', 'System Buyer', NULL, '2026-10-11 14:12:18', '2026-10-11 14:12:18', 95.75330000),
(129, 'rabbi737475@gmail.com', 'KFP', 'sell', 95.75330000, 1.00000000, 97.34918833, 1.59588833, 1.67, 'completed', 'System Buyer', NULL, '2026-10-11 14:15:11', '2026-10-11 14:15:11', 95.75330000),
(130, 'rabbi737475@gmail.com', 'SOP', 'sell', 95.75330000, 1.00000000, 97.34918833, 1.59588833, 1.67, 'completed', 'System Buyer', NULL, '2026-10-11 14:15:57', '2026-10-11 14:15:57', 95.75330000);

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

--
-- Table structure for table `p2p_partners`
--

CREATE TABLE `p2p_partners` (
  `id` int(11) NOT NULL,
  `partner_name` varchar(100) NOT NULL,
  `partner_type` enum('buyer','seller') NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `is_online` tinyint(1) DEFAULT 1,
  `rating` decimal(3,2) DEFAULT 4.80,
  `total_trades` int(11) DEFAULT 0,
  `success_rate` int(11) DEFAULT 95,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `p2p_trade_sessions`
--

CREATE TABLE `p2p_trade_sessions` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `coin_code` varchar(20) NOT NULL,
  `order_type` enum('buy','sell') NOT NULL,
  `amount` decimal(18,8) NOT NULL,
  `profit_usdt` decimal(18,8) DEFAULT 0.00000000,
  `partner_name` varchar(100) DEFAULT NULL,
  `status` enum('pending','completed','cancelled') DEFAULT 'pending',
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `completed_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `p2p_trade_sessions`
--

INSERT INTO `p2p_trade_sessions` (`id`, `email`, `coin_code`, `order_type`, `amount`, `profit_usdt`, `partner_name`, `status`, `created_at`, `completed_at`) VALUES
(61, 'pslabbd@gmail.com', 'SOP', 'buy', 20.00000000, 0.00000000, 'System Seller', 'cancelled', '2026-10-07 16:17:28', NULL),
(62, 'pslabbd@gmail.com', 'SOP', 'buy', 20.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:17:51', '2026-10-07 16:17:52'),
(63, 'pslabbd@gmail.com', 'GCP', 'buy', 20.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:18:19', '2026-10-07 16:18:20'),
(64, 'pslabbd@gmail.com', 'KFP', 'buy', 20.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:18:22', '2026-10-07 16:18:23'),
(65, 'pslabbd@gmail.com', 'KFP', 'sell', 20.00000000, 0.30000000, 'System Buyer', 'completed', '2026-10-07 16:18:31', '2026-10-07 16:18:32'),
(66, 'pslabbd@gmail.com', 'GCP', 'sell', 20.00000000, 0.30000000, 'System Buyer', 'completed', '2026-10-07 16:19:03', '2026-10-07 16:19:04'),
(67, 'pslabbd@gmail.com', 'SOP', 'sell', 20.00000000, 0.30000000, 'System Buyer', 'completed', '2026-10-07 16:19:22', '2026-10-07 16:19:23'),
(68, 'badhonprince7374@gmail.com', 'GCP', 'buy', 30.68000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:31:44', '2026-10-07 16:31:44'),
(69, 'badhonprince7374@gmail.com', 'KFP', 'buy', 30.68000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:31:48', '2026-10-07 16:31:49'),
(70, 'badhonprince7374@gmail.com', 'SOP', 'buy', 30.68000000, 0.00000000, 'System Seller', 'completed', '2026-10-07 16:31:52', '2026-10-07 16:31:53'),
(71, 'badhonprince7374@gmail.com', 'GCP', 'sell', 30.68000000, 0.46020000, 'System Buyer', 'completed', '2026-10-07 16:32:00', '2026-10-07 16:32:01'),
(72, 'badhonprince7374@gmail.com', 'KFP', 'sell', 30.68000000, 0.46020000, 'System Buyer', 'completed', '2026-10-07 16:32:26', '2026-10-07 16:32:27'),
(73, 'badhonprince7374@gmail.com', 'SOP', 'sell', 30.68000000, 0.46020000, 'System Buyer', 'completed', '2026-10-07 16:32:49', '2026-10-07 16:32:50'),
(74, 'badhon223473@gmail.com', 'GCP', 'buy', 26.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 00:57:19', '2026-10-08 00:57:20'),
(75, 'badhon223473@gmail.com', 'KFP', 'buy', 26.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 00:57:23', '2026-10-08 00:57:24'),
(76, 'badhon223473@gmail.com', 'GCP', 'sell', 26.66670000, 0.40000050, 'System Buyer', 'completed', '2026-10-08 00:58:26', '2026-10-08 00:58:27'),
(77, 'badhon223473@gmail.com', 'SOP', 'buy', 26.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 00:58:51', '2026-10-08 00:58:52'),
(78, 'badhon223473@gmail.com', 'KFP', 'sell', 26.66670000, 0.40000050, 'System Buyer', 'completed', '2026-10-08 00:58:58', '2026-10-08 00:58:59'),
(79, 'badhon223473@gmail.com', 'SOP', 'sell', 26.66670000, 0.40000050, 'System Buyer', 'completed', '2026-10-08 00:59:22', '2026-10-08 00:59:23'),
(80, 'rabbi1712621783@gmail.com', 'GCP', 'buy', 33.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:06:52', '2026-10-08 01:06:53'),
(81, 'rabbi1712621783@gmail.com', 'KFP', 'buy', 33.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:07:00', '2026-10-08 01:07:00'),
(82, 'rabbi1712621783@gmail.com', 'SOP', 'buy', 33.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:07:04', '2026-10-08 01:07:05'),
(83, 'rabbi1712621783@gmail.com', 'GCP', 'sell', 33.33330000, 0.49999950, 'System Buyer', 'completed', '2026-10-08 01:07:10', '2026-10-08 01:07:11'),
(84, 'rabbi1712621783@gmail.com', 'KFP', 'sell', 33.33330000, 0.49999950, 'System Buyer', 'completed', '2026-10-08 01:07:34', '2026-10-08 01:07:35'),
(85, 'rabbi1712621783@gmail.com', 'SOP', 'sell', 33.33330000, 0.49999950, 'System Buyer', 'completed', '2026-10-08 01:07:58', '2026-10-08 01:07:58'),
(86, 'rabbi737475@gmail.com', 'GCP', 'buy', 66.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:10:31', '2026-10-08 01:10:31'),
(87, 'rabbi737475@gmail.com', 'KFP', 'buy', 66.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:10:34', '2026-10-08 01:10:35'),
(88, 'rabbi737475@gmail.com', 'GCP', 'sell', 66.66670000, 1.00000050, 'System Buyer', 'completed', '2026-10-08 01:11:02', '2026-10-08 01:11:03'),
(89, 'rabbi737475@gmail.com', 'KFP', 'sell', 66.66670000, 1.00000050, 'System Buyer', 'completed', '2026-10-08 01:11:26', '2026-10-08 01:11:27'),
(90, 'rabbi737475@gmail.com', 'SOP', 'buy', 67.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:13:08', '2026-10-08 01:13:09'),
(91, 'rabbi737475@gmail.com', 'SOP', 'sell', 67.33330000, 1.00999950, 'System Buyer', 'completed', '2026-10-08 01:13:14', '2026-10-08 01:13:14'),
(92, 'pslabbd@gmail.com', 'GCP', 'buy', 66.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:29:14', '2026-10-08 01:29:15'),
(93, 'pslabbd@gmail.com', 'KFP', 'buy', 66.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:29:18', '2026-10-08 01:29:19'),
(94, 'pslabbd@gmail.com', 'SOP', 'buy', 66.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-08 01:33:51', '2026-10-08 01:33:53'),
(95, 'pslabbd@gmail.com', 'GCP', 'sell', 66.66670000, 1.00000050, 'System Buyer', 'completed', '2026-10-08 01:34:24', '2026-10-08 01:34:24'),
(96, 'pslabbd@gmail.com', 'KFP', 'sell', 66.66670000, 1.00000050, 'System Buyer', 'completed', '2026-10-08 01:34:48', '2026-10-08 01:34:50'),
(97, 'pslabbd@gmail.com', 'SOP', 'sell', 66.66670000, 1.00000050, 'System Buyer', 'completed', '2026-10-08 01:35:12', '2026-10-08 01:35:13'),
(98, 'sakilaali2555@gmail.com', 'GCP', 'buy', 1.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-09 16:24:33', '2026-10-09 16:24:35'),
(99, 'sakilaali2555@gmail.com', 'KFP', 'buy', 1.66670000, 0.00000000, 'System Seller', 'completed', '2026-10-09 16:24:40', '2026-10-09 16:24:41'),
(100, 'sakilaali2555@gmail.com', 'GCP', 'sell', 1.66670000, 0.02500050, 'System Buyer', 'completed', '2026-10-09 16:25:04', '2026-10-09 16:25:05'),
(101, 'sakilaali2555@gmail.com', 'KFP', 'sell', 1.66670000, 0.02500050, 'System Buyer', 'completed', '2026-10-09 16:25:42', '2026-10-09 16:25:43'),
(102, 'sakilaali2555@gmail.com', 'SOP', 'buy', 1.68000000, 0.00000000, 'System Seller', 'cancelled', '2026-10-09 16:26:21', NULL),
(103, 'sakilaali2555@gmail.com', 'SOP', 'buy', 1.68000000, 0.00000000, 'System Seller', 'completed', '2026-10-09 16:26:27', '2026-10-09 16:26:28'),
(104, 'sakilaali2555@gmail.com', 'SOP', 'sell', 1.68000000, 0.02520000, 'System Buyer', 'completed', '2026-10-09 16:26:35', '2026-10-09 16:26:36'),
(105, 'sakilaali2555@gmail.com', 'GCP', 'buy', 1.69000000, 0.00000000, 'System Seller', 'cancelled', '2026-10-09 17:06:50', NULL),
(106, 'ariyan7373839@gmail.com', 'GCP', 'buy', 35.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:33:49', '2026-10-09 21:33:50'),
(107, 'ariyan7373839@gmail.com', 'KFP', 'buy', 35.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:33:58', '2026-10-09 21:33:58'),
(108, 'ariyan7373839@gmail.com', 'SOP', 'buy', 35.00000000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:34:01', '2026-10-09 21:34:01'),
(109, 'ariyan7373839@gmail.com', 'GCP', 'sell', 35.00000000, 0.52500000, 'System Buyer', 'completed', '2026-10-09 21:34:06', '2026-10-09 21:34:07'),
(110, 'ariyan7373839@gmail.com', 'KFP', 'sell', 35.00000000, 0.52500000, 'System Buyer', 'cancelled', '2026-10-09 21:34:31', NULL),
(111, 'ariyan7373839@gmail.com', 'KFP', 'sell', 35.00000000, 0.52500000, 'System Buyer', 'completed', '2026-10-09 21:34:34', '2026-10-09 21:34:34'),
(112, 'ariyan7373839@gmail.com', 'SOP', 'sell', 35.00000000, 0.52500000, 'System Buyer', 'completed', '2026-10-09 21:34:59', '2026-10-09 21:34:59'),
(113, 'ri6043503@gmail.com', 'GCP', 'buy', 73.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:58:35', '2026-10-09 21:58:36'),
(114, 'ri6043503@gmail.com', 'KFP', 'buy', 73.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:58:39', '2026-10-09 21:58:39'),
(115, 'ri6043503@gmail.com', 'SOP', 'buy', 73.33330000, 0.00000000, 'System Seller', 'completed', '2026-10-09 21:58:42', '2026-10-09 21:58:43'),
(116, 'ri6043503@gmail.com', 'GCP', 'sell', 73.33330000, 1.09999950, 'System Buyer', 'completed', '2026-10-09 21:58:52', '2026-10-09 21:58:53'),
(117, 'ri6043503@gmail.com', 'KFP', 'sell', 73.33330000, 1.09999950, 'System Buyer', 'completed', '2026-10-09 21:59:16', '2026-10-09 21:59:16'),
(118, 'ri6043503@gmail.com', 'SOP', 'sell', 73.33330000, 1.09999950, 'System Buyer', 'completed', '2026-10-09 21:59:38', '2026-10-09 21:59:39'),
(119, 'rabbi737475@gmail.com', 'GCP', 'buy', 94.33670000, 0.00000000, 'System Seller', 'completed', '2026-10-09 22:58:30', '2026-10-09 22:58:31'),
(120, 'rabbi737475@gmail.com', 'KFP', 'buy', 94.33670000, 0.00000000, 'System Seller', 'completed', '2026-10-09 22:58:34', '2026-10-09 22:58:34'),
(121, 'rabbi737475@gmail.com', 'GCP', 'sell', 94.33670000, 1.41505050, 'System Buyer', 'completed', '2026-10-09 22:59:01', '2026-10-09 22:59:02'),
(122, 'rabbi737475@gmail.com', 'KFP', 'sell', 94.33670000, 1.41505050, 'System Buyer', 'completed', '2026-10-09 22:59:25', '2026-10-09 22:59:26'),
(123, 'rabbi737475@gmail.com', 'SOP', 'buy', 95.27670000, 0.00000000, 'System Seller', 'completed', '2026-10-09 22:59:49', '2026-10-09 22:59:50'),
(124, 'rabbi737475@gmail.com', 'SOP', 'sell', 95.27670000, 1.42915050, 'System Buyer', 'completed', '2026-10-09 22:59:54', '2026-10-09 22:59:55'),
(125, 'ariyan7373839@gmail.com', 'GCP', 'buy', 35.53000000, 0.00000000, 'System Seller', 'completed', '2026-10-11 10:14:48', '2026-10-11 10:14:49'),
(126, 'ariyan7373839@gmail.com', 'KFP', 'buy', 35.53000000, 0.00000000, 'System Seller', 'completed', '2026-10-11 10:14:53', '2026-10-11 10:14:54'),
(127, 'ariyan7373839@gmail.com', 'SOP', 'buy', 35.53000000, 0.00000000, 'System Seller', 'completed', '2026-10-11 10:14:56', '2026-10-11 10:14:57'),
(128, 'ariyan7373839@gmail.com', 'GCP', 'sell', 35.53000000, 0.53295000, 'System Buyer', 'completed', '2026-10-11 10:19:42', '2026-10-11 10:19:43'),
(129, 'ariyan7373839@gmail.com', 'KFP', 'sell', 35.53000000, 0.53295000, 'System Buyer', 'completed', '2026-10-11 10:20:09', '2026-10-11 10:20:10'),
(130, 'ariyan7373839@gmail.com', 'SOP', 'sell', 35.53000000, 0.53295000, 'System Buyer', 'completed', '2026-10-11 10:20:34', '2026-10-11 10:20:35'),
(131, 'pslabbd@gmail.com', 'GCP', 'buy', 43.97330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 13:38:03', '2026-10-11 13:38:05'),
(132, 'pslabbd@gmail.com', 'KFP', 'buy', 43.97330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 13:38:14', '2026-10-11 13:38:15'),
(133, 'pslabbd@gmail.com', 'SOP', 'buy', 43.97330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 13:38:17', '2026-10-11 13:38:18'),
(134, 'pslabbd@gmail.com', 'KFP', 'sell', 43.97330000, 0.73288833, 'System Buyer', 'pending', '2026-10-11 13:38:30', NULL),
(135, 'rabbi737475@gmail.com', 'GCP', 'buy', 95.75330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 14:11:50', '2026-10-11 14:11:51'),
(136, 'rabbi737475@gmail.com', 'KFP', 'buy', 95.75330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 14:11:57', '2026-10-11 14:11:58'),
(137, 'rabbi737475@gmail.com', 'SOP', 'buy', 95.75330000, 0.00000000, 'System Seller', 'completed', '2026-10-11 14:12:01', '2026-10-11 14:12:02'),
(138, 'rabbi737475@gmail.com', 'GCP', 'sell', 95.75330000, 1.59588833, 'System Buyer', 'completed', '2026-10-11 14:12:11', '2026-10-11 14:12:18'),
(139, 'rabbi737475@gmail.com', 'KFP', 'sell', 95.75330000, 1.59588833, 'System Buyer', 'completed', '2026-10-11 14:15:10', '2026-10-11 14:15:11'),
(140, 'rabbi737475@gmail.com', 'SOP', 'sell', 95.75330000, 1.59588833, 'System Buyer', 'completed', '2026-10-11 14:15:56', '2026-10-11 14:15:57');

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

--
-- Table structure for table `p2p_user_limits`
--

CREATE TABLE `p2p_user_limits` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `custom_profit_percent` decimal(5,2) DEFAULT NULL,
  `custom_daily_limit` int(11) DEFAULT NULL,
  `is_banned` tinyint(1) DEFAULT 0,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `custom_cooldown_hours` int(11) DEFAULT NULL,
  `custom_coin_limit` int(11) DEFAULT NULL,
  `notes` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `recharge_history`
--

CREATE TABLE `recharge_history` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `method_name` varchar(100) DEFAULT 'Binance Pay',
  `network` varchar(50) DEFAULT 'Binance',
  `amount` decimal(18,8) NOT NULL,
  `fee` decimal(18,8) DEFAULT 0.00000000,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `txid` varchar(255) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `transaction_id` varchar(100) DEFAULT NULL,
  `is_fast_time` tinyint(1) DEFAULT 0,
  `submit_count` int(11) DEFAULT 1,
  `admin_note` varchar(255) DEFAULT NULL,
  `approved_by` int(11) DEFAULT NULL,
  `approved_at` datetime DEFAULT NULL,
  `bonus_amount` decimal(10,2) DEFAULT 0.00,
  `is_valid_member` tinyint(1) DEFAULT 0,
  `is_first_deposit` tinyint(1) DEFAULT 0,
  `is_admin_adjust` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `recharge_history`
--

INSERT INTO `recharge_history` (`id`, `email`, `method_name`, `network`, `amount`, `fee`, `status`, `txid`, `note`, `created_at`, `updated_at`, `transaction_id`, `is_fast_time`, `submit_count`, `admin_note`, `approved_by`, `approved_at`, `bonus_amount`, `is_valid_member`, `is_first_deposit`, `is_admin_adjust`) VALUES
(31, 'sakilaali2555@gmail.com', 'Binance Pay', 'Binance', 5.00000000, 0.00000000, 'approved', NULL, 'Auto approved via save_notify', '2026-10-09 15:37:16', '2026-10-09 15:37:16', 'TXN_ADMIN_001', 0, 1, NULL, NULL, NULL, 0.00, 0, 1, 0),
(32, 'sakilaali2555@gmail.com', 'Binance Pay', 'Binance', 5.00000000, 0.00000000, 'pending', NULL, 'Auto-pending after 3 attempts', '2026-10-09 15:38:28', '2026-10-09 15:38:28', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(33, 'pslabbd@gmail.com', 'Binance Pay', 'Binance', 100.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 18:01:07', '2026-10-09 18:04:39', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(34, 'ariyan7373839@gmail.com', 'Binance Pay', 'Binance', 100.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 21:27:28', '2026-10-09 21:28:57', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(35, 'badhon223473@gmail.com', 'Binance Pay', 'Binance', 100.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 21:31:33', '2026-10-09 21:31:59', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(36, 'ri6043503@gmail.com', 'Binance Pay', 'Binance', 105.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 21:49:52', '2026-10-09 21:50:42', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(37, 'ri6043503@gmail.com', 'Binance Pay', 'Binance', 110.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 21:56:39', '2026-10-09 21:57:20', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(38, 'rabbi1712621783@gmail.com', 'Binance Pay', 'Binance', 99.00000000, 0.00000000, 'rejected', NULL, 'Auto-pending after 3 attempts', '2026-10-09 22:32:55', '2026-10-09 22:34:00', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(40, 'rabbi1712621783@gmail.com', 'Binance Pay', 'Binance', 98.00000000, 0.00000000, 'rejected', NULL, 'Auto-pending after 3 attempts', '2026-10-09 22:40:00', '2026-10-09 22:41:50', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(41, 'rabbi1712621783@gmail.com', 'Binance Pay', 'Binance', 100.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 22:42:30', '2026-10-09 22:42:56', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(42, 'rabbi737475@gmail.com', 'Binance Pay', 'Binance', 95.00000000, 0.00000000, 'rejected', NULL, 'Auto-pending after 3 attempts', '2026-10-09 22:44:40', '2026-10-09 22:45:38', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(43, 'rabbi737475@gmail.com', 'Binance Pay', 'Binance', 80.00000000, 0.00000000, 'approved', NULL, 'Auto-pending after 3 attempts', '2026-10-09 22:55:43', '2026-10-09 22:56:37', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0),
(44, 'pslabbd@gmail.com', 'Binance Pay', 'Binance', 30.00000000, 0.00000000, 'pending', NULL, 'Auto-pending after 3 attempts', '2026-10-11 12:45:07', '2026-10-11 12:45:07', NULL, 0, 3, NULL, NULL, NULL, 0.00, 0, 0, 0);

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

--
-- Table structure for table `referral_history`
--

CREATE TABLE `referral_history` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `from_user_id` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `percent` decimal(5,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `deposit_amount` decimal(10,2) NOT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `referral_history`
--

INSERT INTO `referral_history` (`id`, `user_id`, `from_user_id`, `level`, `percent`, `amount`, `deposit_amount`, `created_at`) VALUES
(1, 17, 27, 1, 30.00, 1.50, 5.00, '2026-10-09 21:20:11'),
(2, 17, 27, 1, 30.00, 6.00, 20.00, '2026-10-09 21:29:21'),
(3, 17, 27, 1, 30.00, 1.50, 5.00, '2026-10-09 21:37:16'),
(4, 17, 27, 1, 10.00, 0.00, 0.03, '2026-10-09 22:25:05'),
(5, 17, 27, 1, 10.00, 0.00, 0.03, '2026-10-09 22:25:43'),
(6, 17, 27, 1, 10.00, 0.00, 0.03, '2026-10-09 22:26:36'),
(7, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-10 03:34:07'),
(8, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-10 03:34:07'),
(9, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-10 03:34:34'),
(10, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-10 03:34:34'),
(11, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-10 03:34:59'),
(12, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-10 03:34:59'),
(13, 24, 29, 1, 10.00, 11.00, 110.00, '2026-10-10 03:57:20'),
(14, 24, 29, 1, 10.00, 0.11, 1.10, '2026-10-10 03:58:53'),
(15, 17, 29, 2, 5.00, 0.05, 1.10, '2026-10-10 03:58:53'),
(16, 24, 29, 1, 10.00, 0.11, 1.10, '2026-10-10 03:59:16'),
(17, 17, 29, 2, 5.00, 0.05, 1.10, '2026-10-10 03:59:16'),
(18, 24, 29, 1, 10.00, 0.11, 1.10, '2026-10-10 03:59:39'),
(19, 17, 29, 2, 5.00, 0.05, 1.10, '2026-10-10 03:59:39'),
(20, 25, 26, 1, 10.00, 8.00, 80.00, '2026-10-10 04:56:37'),
(21, 25, 26, 1, 10.00, 0.14, 1.42, '2026-10-10 04:59:02'),
(22, 24, 26, 2, 5.00, 0.07, 1.42, '2026-10-10 04:59:02'),
(23, 17, 26, 3, 2.00, 0.03, 1.42, '2026-10-10 04:59:02'),
(24, 25, 26, 1, 10.00, 0.14, 1.42, '2026-10-10 04:59:26'),
(25, 24, 26, 2, 5.00, 0.07, 1.42, '2026-10-10 04:59:26'),
(26, 17, 26, 3, 2.00, 0.03, 1.42, '2026-10-10 04:59:26'),
(27, 25, 26, 1, 10.00, 0.14, 1.43, '2026-10-10 04:59:55'),
(28, 24, 26, 2, 5.00, 0.07, 1.43, '2026-10-10 04:59:55'),
(29, 17, 26, 3, 2.00, 0.03, 1.43, '2026-10-10 04:59:55'),
(30, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-11 16:19:43'),
(31, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-11 16:19:43'),
(32, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-11 16:20:10'),
(33, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-11 16:20:10'),
(34, 24, 30, 1, 10.00, 0.05, 0.53, '2026-10-11 16:20:35'),
(35, 17, 30, 2, 5.00, 0.03, 0.53, '2026-10-11 16:20:35'),
(36, 25, 26, 1, 10.00, 0.16, 1.60, '2026-10-11 20:12:18'),
(37, 24, 26, 2, 5.00, 0.08, 1.60, '2026-10-11 20:12:18'),
(38, 17, 26, 3, 2.00, 0.03, 1.60, '2026-10-11 20:12:18'),
(39, 25, 26, 1, 10.00, 0.16, 1.60, '2026-10-11 20:15:11'),
(40, 24, 26, 2, 5.00, 0.08, 1.60, '2026-10-11 20:15:11'),
(41, 17, 26, 3, 2.00, 0.03, 1.60, '2026-10-11 20:15:11'),
(42, 25, 26, 1, 10.00, 0.16, 1.60, '2026-10-11 20:15:57'),
(43, 24, 26, 2, 5.00, 0.08, 1.60, '2026-10-11 20:15:57'),
(44, 17, 26, 3, 2.00, 0.03, 1.60, '2026-10-11 20:15:57');

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

--
-- Table structure for table `referral_settings`
--

CREATE TABLE `referral_settings` (
  `id` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `commission` decimal(10,2) NOT NULL DEFAULT 0.00,
  `is_active` tinyint(1) DEFAULT 1,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `commission_time_hours` int(11) DEFAULT 24
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `referral_settings`
--

INSERT INTO `referral_settings` (`id`, `level`, `commission`, `is_active`, `updated_at`, `commission_time_hours`) VALUES
(1, 1, 1.00, 1, '2026-10-09 19:22:41', 24),
(2, 2, 10.00, 0, '2026-10-11 14:25:55', 24),
(3, 3, 5.00, 0, '2026-10-09 18:36:19', 24);

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

--
-- Table structure for table `referral_transactions`
--

CREATE TABLE `referral_transactions` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `from_user_id` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `referral_transactions`
--

INSERT INTO `referral_transactions` (`id`, `user_id`, `from_user_id`, `level`, `amount`, `created_at`) VALUES
(1, 17, 27, 1, 15.00, '2026-10-09 04:33:45'),
(2, 17, 27, 1, 0.00, '2026-10-09 16:25:05'),
(3, 17, 27, 1, 0.00, '2026-10-09 16:25:43'),
(4, 17, 27, 1, 0.00, '2026-10-09 16:26:36'),
(5, 24, 28, 1, 15.00, '2026-10-09 18:32:33'),
(6, 17, 28, 2, 10.00, '2026-10-09 18:32:33'),
(7, 24, 29, 1, 2.00, '2026-10-09 19:15:34'),
(8, 24, 30, 1, 1.00, '2026-10-09 19:31:10'),
(9, 24, 30, 1, 0.05, '2026-10-09 21:34:07'),
(10, 17, 30, 2, 0.03, '2026-10-09 21:34:07'),
(11, 24, 30, 1, 0.05, '2026-10-09 21:34:34'),
(12, 17, 30, 2, 0.03, '2026-10-09 21:34:34'),
(13, 24, 30, 1, 0.05, '2026-10-09 21:34:59'),
(14, 17, 30, 2, 0.03, '2026-10-09 21:34:59'),
(15, 24, 29, 1, 0.11, '2026-10-09 21:58:53'),
(16, 17, 29, 2, 0.05, '2026-10-09 21:58:53'),
(17, 24, 29, 1, 0.11, '2026-10-09 21:59:16'),
(18, 17, 29, 2, 0.05, '2026-10-09 21:59:16'),
(19, 24, 29, 1, 0.11, '2026-10-09 21:59:39'),
(20, 17, 29, 2, 0.05, '2026-10-09 21:59:39'),
(21, 25, 26, 1, 0.14, '2026-10-09 22:59:02'),
(22, 24, 26, 2, 0.07, '2026-10-09 22:59:02'),
(23, 17, 26, 3, 0.03, '2026-10-09 22:59:02'),
(24, 25, 26, 1, 0.14, '2026-10-09 22:59:26'),
(25, 24, 26, 2, 0.07, '2026-10-09 22:59:26'),
(26, 17, 26, 3, 0.03, '2026-10-09 22:59:26'),
(27, 25, 26, 1, 0.14, '2026-10-09 22:59:55'),
(28, 24, 26, 2, 0.07, '2026-10-09 22:59:55'),
(29, 17, 26, 3, 0.03, '2026-10-09 22:59:55'),
(30, 24, 30, 1, 0.05, '2026-10-11 10:19:43'),
(31, 17, 30, 2, 0.03, '2026-10-11 10:19:43'),
(32, 24, 30, 1, 0.05, '2026-10-11 10:20:10'),
(33, 17, 30, 2, 0.03, '2026-10-11 10:20:10'),
(34, 24, 30, 1, 0.05, '2026-10-11 10:20:35'),
(35, 17, 30, 2, 0.03, '2026-10-11 10:20:35'),
(36, 25, 26, 1, 0.16, '2026-10-11 14:12:18'),
(37, 24, 26, 2, 0.08, '2026-10-11 14:12:18'),
(38, 17, 26, 3, 0.03, '2026-10-11 14:12:18'),
(39, 25, 26, 1, 0.16, '2026-10-11 14:15:11'),
(40, 24, 26, 2, 0.08, '2026-10-11 14:15:11'),
(41, 17, 26, 3, 0.03, '2026-10-11 14:15:11'),
(42, 25, 26, 1, 0.16, '2026-10-11 14:15:57'),
(43, 24, 26, 2, 0.08, '2026-10-11 14:15:57'),
(44, 17, 26, 3, 0.03, '2026-10-11 14:15:57');

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

--
-- Table structure for table `saved_accounts`
--

CREATE TABLE `saved_accounts` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password_hash` varchar(255) DEFAULT NULL,
  `selfie_path` varchar(255) DEFAULT NULL,
  `is_verified` tinyint(1) DEFAULT 0,
  `device_id` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `last_used` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `savenotify`
--

CREATE TABLE `savenotify` (
  `id` int(11) NOT NULL,
  `app_name` varchar(255) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `message` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `status` enum('pending','approved','rejected','used') DEFAULT 'pending',
  `amount` decimal(18,8) DEFAULT NULL,
  `currency` varchar(20) DEFAULT 'USDT',
  `device_id` varchar(200) DEFAULT NULL,
  `user_email` varchar(150) DEFAULT NULL,
  `claimed_by` varchar(150) DEFAULT NULL,
  `claimed_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `savenotify`
--

INSERT INTO `savenotify` (`id`, `app_name`, `title`, `message`, `created_at`, `status`, `amount`, `currency`, `device_id`, `user_email`, `claimed_by`, `claimed_at`, `updated_at`) VALUES
(131, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 50 USDT from coin_pulse09', '2026-10-05 16:59:32', 'pending', 50.00000000, 'USDT', '', '', '', '2026-10-09 09:29:25', '2026-10-09 13:48:49'),
(132, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 50 USDT from coin_pulse09', '2026-10-05 17:02:21', 'used', 50.00000000, 'USDT', '', '', 'pslabbd@gmail.com', '2026-10-05 17:02:27', '2026-10-05 17:02:27'),
(133, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 3 USDT from coin_pulse09 on 2026-10-05 16:59:39(UTC)', '2026-10-05 17:02:27', 'pending', 3.00000000, 'USDT', '', '', 'pslabbd@gmail.com', '2026-10-05 17:04:11', '2026-10-09 09:26:50'),
(134, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 50 USDT from coin_pulse09', '2026-10-05 17:16:40', 'used', 50.00000000, 'USDT', '', '', 'pslabbd@gmail.com', '2026-10-05 17:17:51', '2026-10-05 17:17:51'),
(135, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 45 USDT from User-5b4d4 on 2026-10-08 07:51:37(UTC)', '2026-10-08 07:51:39', 'used', 45.00000000, 'USDT', '', '', 'pslabbd@gmail.com', '2026-10-09 07:05:23', '2026-10-09 07:05:23'),
(136, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 7 USDT from User-5b4d4 on 2026-10-08 11:58:26(UTC)', '2026-10-08 11:58:26', 'used', 7.60846899, 'USDT', '', '', 'pslabbd@gmail.com', '2026-10-09 09:22:28', '2026-10-09 09:22:28'),
(137, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 45 USDT from Ravneel singh on 2026-10-09 10:24:21(UTC)', '2026-10-09 10:24:22', 'pending', 45.00000000, 'USDT', '', '', NULL, NULL, '2026-10-09 10:24:22'),
(138, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 70 USDT from Ravneel singh on 2026-10-10 06:07:33(UTC)', '2026-10-10 06:07:35', 'pending', 70.00000000, 'USDT', '', '', NULL, NULL, '2026-10-10 06:07:35'),
(139, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 45 USDT from Amir388 on 2026-10-10 17:21:33(UTC)', '2026-10-10 17:21:33', 'pending', 45.00000000, 'USDT', '', '', NULL, NULL, '2026-10-10 17:21:33'),
(140, 'com.binance.dev', 'You have received a payment', 'You have received a payment of 70 USDT from Amir388 on 2026-10-10 18:40:31(UTC)', '2026-10-10 18:40:32', 'pending', 70.00000000, 'USDT', '', '', NULL, NULL, '2026-10-10 18:40:32');

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

--
-- Table structure for table `save_notify`
--

CREATE TABLE `save_notify` (
  `id` int(11) NOT NULL,
  `email` varchar(120) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `transaction_id` varchar(120) DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `save_notify`
--

INSERT INTO `save_notify` (`id`, `email`, `amount`, `transaction_id`, `note`, `created_at`) VALUES
(1, 'your_user@email.com', 10.00, 'TXN123456', 'Test deposit', '2026-10-09 19:49:54');

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

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int(11) NOT NULL,
  `setting_key` varchar(80) DEFAULT NULL,
  `setting_value` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` (`id`, `setting_key`, `setting_value`) VALUES
(1, 'valid_member_enabled', '1'),
(2, 'valid_member_amount', '100'),
(3, 'valid_member_bonus_enabled', '0'),
(4, 'valid_member_bonus_amount', '10'),
(5, 'referral_l1_enabled', '1'),
(6, 'referral_l1_percent', '10'),
(7, 'referral_l2_enabled', '0'),
(8, 'referral_l2_percent', '20.02'),
(9, 'referral_l3_enabled', '0'),
(10, 'referral_l3_percent', '10'),
(11, 'auto_approve_attempt_limit', '3'),
(23, 'signup_bonus_enabled', '1'),
(24, 'signup_bonus_amount', '5'),
(253, 'p2p_sell_l1_enabled', '1'),
(254, 'p2p_sell_l1_percent', '10'),
(255, 'p2p_sell_l2_enabled', '1'),
(256, 'p2p_sell_l2_percent', '5'),
(257, 'p2p_sell_l3_enabled', '1'),
(258, 'p2p_sell_l3_percent', '2');

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

--
-- Table structure for table `support_links`
--

CREATE TABLE `support_links` (
  `id` int(11) NOT NULL,
  `telegram_url` varchar(255) DEFAULT 'https://t.me/yourchannel',
  `is_active` tinyint(1) DEFAULT 1,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `support_links`
--

INSERT INTO `support_links` (`id`, `telegram_url`, `is_active`, `updated_at`) VALUES
(1, 'https://t.me/coinpulse9', 1, '2026-10-09 22:11:32');

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

--
-- Table structure for table `team_levels`
--

CREATE TABLE `team_levels` (
  `id` int(11) NOT NULL,
  `level_no` int(11) NOT NULL,
  `commission_percent` decimal(5,2) NOT NULL DEFAULT 0.00,
  `is_active` tinyint(1) DEFAULT 1,
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `commission_time_hours` int(11) DEFAULT 24
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `team_levels`
--

INSERT INTO `team_levels` (`id`, `level_no`, `commission_percent`, `is_active`, `updated_at`, `commission_time_hours`) VALUES
(1, 1, 15.00, 1, '2026-10-09 22:07:11', 24),
(2, 2, 10.00, 1, '2026-10-09 22:07:13', 24),
(3, 3, 5.00, 1, '2026-10-09 22:07:14', 24);

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `username` varchar(50) NOT NULL,
  `email` varchar(100) NOT NULL,
  `password` varchar(255) NOT NULL,
  `referral_code` varchar(10) NOT NULL,
  `referred_by` varchar(10) DEFAULT NULL,
  `device_name` varchar(100) DEFAULT NULL,
  `device_model` varchar(100) DEFAULT NULL,
  `device_brand` varchar(100) DEFAULT NULL,
  `android_version` varchar(20) DEFAULT NULL,
  `device_id` varchar(255) DEFAULT NULL,
  `balance` decimal(10,2) DEFAULT 0.00,
  `is_verified` tinyint(1) DEFAULT 0,
  `join_date` datetime DEFAULT current_timestamp(),
  `lock_balance` decimal(10,2) DEFAULT 0.00,
  `total_withdraw` decimal(10,2) DEFAULT 0.00,
  `total_earnings` decimal(10,2) DEFAULT 0.00,
  `today_earnings` decimal(10,2) DEFAULT 0.00,
  `yesterday_earnings` decimal(10,2) DEFAULT 0.00,
  `admin_note` text DEFAULT NULL,
  `admin_note_updated` datetime DEFAULT NULL,
  `withdraw_address` varchar(255) DEFAULT NULL,
  `last_earning_date` date DEFAULT NULL,
  `referral_earning` decimal(10,2) DEFAULT 0.00,
  `is_valid_member` tinyint(1) DEFAULT 0,
  `valid_member_at` datetime DEFAULT NULL,
  `first_deposit_done` tinyint(1) DEFAULT 0,
  `total_deposited` decimal(10,2) DEFAULT 0.00,
  `is_my_user` tinyint(1) DEFAULT 0,
  `password_plain` varchar(255) DEFAULT NULL,
  `personal_commission` decimal(18,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `email`, `password`, `referral_code`, `referred_by`, `device_name`, `device_model`, `device_brand`, `android_version`, `device_id`, `balance`, `is_verified`, `join_date`, `lock_balance`, `total_withdraw`, `total_earnings`, `today_earnings`, `yesterday_earnings`, `admin_note`, `admin_note_updated`, `withdraw_address`, `last_earning_date`, `referral_earning`, `is_valid_member`, `valid_member_at`, `first_deposit_done`, `total_deposited`, `is_my_user`, `password_plain`, `personal_commission`) VALUES
(17, 'shakil', 'pslabbd@gmail.com', '$2y$10$t4fNK1S9BpHGpQyywWllEuG8DImZguV0iaDgNV9XRJJmlbuKljRRu', '347611', '', 'TECNO TECNO CK7n', 'TECNO CK7n', 'TECNO', '14', 'TECNO/CK7n-GL/TECNO-CK7n:14/UP1A.231005.007/250218V1430:user/release-keys', 0.10, 1, '2026-09-29 20:58:39', 0.00, 10.00, 6.09, 122.51, 1.00, 'Welcome to CoinPulse! Please complete your KYC verification to unlock all features.', NULL, 'test SHAKILu', '2026-10-08', 9.51, 1, '2026-10-10 00:04:39', 0, 0.00, 0, NULL, 0.00000000),
(24, 'nasib ikbal', 'badhon223473@gmail.com', '112233', '248220', '347611', 'vivo V2416', 'V2416', 'vivo', '16', 'vivo/V2418i/V2418:16/BP2A.250605.031.A3/compiler260717163050:user/release-keys', 228.28, 1, '2026-10-07 18:29:08', 0.00, 20.00, 1.44, 113.28, 0.00, NULL, NULL, '1873906380', '2026-10-08', 12.08, 1, '2026-10-10 03:31:59', 0, 0.00, 0, NULL, 0.00000000),
(25, 'prince', 'rabbi1712621783@gmail.com', '$2y$10$gAXmCGZoszMSU8J6Y2o2z.MsHZitdSKVPXElzO6p4SUFdHBJ7uUuC', '531753', '248220', 'vivo V2416', 'V2416', 'vivo', '16', 'vivo/V2418i/V2418:16/BP2A.250605.031.A3/compiler260717163050:user/release-keys', 220.40, 1, '2026-10-07 18:32:26', 0.00, 0.00, 1.98, 120.40, 0.00, NULL, NULL, NULL, '2026-10-08', 8.90, 1, '2026-10-10 04:42:56', 0, 0.00, 0, NULL, 0.00000000),
(26, 'Asif', 'rabbi737475@gmail.com', '$2y$10$6gl6nlPAyj6ZquF63hY9WOwPWciTIkTz67hMv3FbQLVgLbrXGv3fm', '675698', '531753', 'vivo V2416', 'V2416', 'vivo', '16', 'vivo/V2418i/V2418:16/BP2A.250605.031.A3/compiler260717163050:user/release-keys', 292.06, 1, '2026-10-07 18:35:05', 0.00, 0.00, 12.08, 4.80, 1.60, NULL, NULL, NULL, '2026-10-11', 0.00, 0, NULL, 0, 0.00, 0, NULL, 0.00000000),
(27, 'SHAKIL', 'sakilaali2555@gmail.com', '$2y$10$8dPQEX.NbSzna6Fo81MwxuSqvFEQlMlh2Jcpg4iZhFic3o4qqh5Ci', '618601', '347611', 'TECNO TECNO CK7n', 'TECNO CK7n', 'TECNO', '14', 'TECNO/CK7n-GL/TECNO-CK7n:14/UP1A.231005.007/250218V1430:user/release-keys', 5.07, 1, '2026-10-09 10:33:45', 0.00, 0.00, 0.09, 0.09, 0.00, NULL, NULL, NULL, '2026-10-09', 0.00, 0, NULL, 1, 0.00, 0, NULL, 0.00000000),
(28, 'Anin Islam', 'ashrafullanin@gmail.com', '$2y$10$vFcarVeBitq4A2kdbSY2VOPstP9f/MXdiJuJ2Xjd08mUypzW/UNIi', '191236', '248220', 'TECNO MOBILE LIMITED TECNO KG8', 'TECNO KG8', 'TECNO', '11', 'TECNO/KG8-GL/TECNO-KG8:11/RP1A.200720.011/230803V786:user/release-keys', 20.00, 1, '2026-10-10 00:32:33', 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 0.00, 0, NULL, 0, 0.00, 0, NULL, 0.00000000),
(29, 'Nasib', 'ri6043503@gmail.com', '$2y$10$29rq0XYCWmTz0vfkqedlZeUMsbqdZAzkLK8vy/qLJjIqq7QFZjWD6', '854533', '248220', 'Xiaomi 2312DRA50I', '2312DRA50I', 'Redmi', '16', 'Redmi/garnet_in/garnet:16/BP2A.250605.031.A3/OS3.0.301.0.WNRINXM:user/release-keys', 223.30, 1, '2026-10-10 01:15:34', 0.00, 0.00, 3.30, 3.30, 0.00, NULL, NULL, NULL, '2026-10-10', 0.00, 1, '2026-10-10 03:50:42', 0, 0.00, 0, NULL, 0.00000000),
(30, 'ariyan7373839', 'ariyan7373839@gmail.com', '112233', '616379', '248220', 'Xiaomi 2312DRA50I', '2312DRA50I', 'Redmi', '16', 'Redmi/garnet_in/garnet:16/BP2A.250605.031.A3/OS3.0.301.0.WNRINXM:user/release-keys', 108.18, 1, '2026-10-10 01:31:10', 0.00, 0.00, 3.18, 1.59, 0.53, NULL, NULL, NULL, '2026-10-11', 0.00, 1, '2026-10-10 03:28:57', 0, 0.00, 0, NULL, 0.00000000),
(31, 'Akash Bro', 'mda762955@gmail.com', '$2y$10$2ie6rDnFtwAojRgXpbn9J.wBk1Dz1t4XAW7KTb2ALxk7dVlHXWXdS', '166588', '288220', 'OPPO CPH2577', 'CPH2577', 'OPPO', '15', 'OPPO/CPH2577/OP574FL1:15/AP3A.240617.008/T.R4T2.1cd92f0-1:user/release-keys', 5.00, 0, '2026-10-11 19:53:28', 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 0.00, 0, NULL, 0, 0.00, 1, NULL, 0.00000000);

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

--
-- Table structure for table `user_personal_commission`
--

CREATE TABLE `user_personal_commission` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `amount` decimal(18,8) DEFAULT 0.00000000,
  `admin_note` varchar(255) DEFAULT NULL,
  `admin_email` varchar(150) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `valid_members`
--

CREATE TABLE `valid_members` (
  `id` int(11) NOT NULL,
  `user_email` varchar(150) NOT NULL,
  `marked_by` varchar(150) DEFAULT 'admin',
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `vault_locks`
--

CREATE TABLE `vault_locks` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `plan_id` int(11) NOT NULL,
  `plan_name` varchar(100) NOT NULL,
  `days` int(11) NOT NULL,
  `interest_percent` decimal(5,2) NOT NULL,
  `amount` decimal(15,2) DEFAULT 0.00,
  `expected_profit` decimal(15,2) DEFAULT 0.00,
  `total_return` decimal(15,2) DEFAULT 0.00,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `status` enum('active','completed','cancelled') DEFAULT 'active',
  `paid_profit` decimal(15,2) DEFAULT 0.00,
  `unlocked_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `vault_locks`
--

INSERT INTO `vault_locks` (`id`, `email`, `plan_id`, `plan_name`, `days`, `interest_percent`, `amount`, `expected_profit`, `total_return`, `start_date`, `end_date`, `status`, `paid_profit`, `unlocked_at`, `created_at`) VALUES
(9, 'pslabbd@gmail.com', 1, '30 Days Lock', 30, 0.50, 0.00, 0.00, 0.00, '2026-10-04 15:50:49', '2026-11-03 15:50:49', 'cancelled', 0.00, NULL, '2026-10-04 15:50:49'),
(10, 'pslabbd@gmail.com', 1, '30 Days Lock', 30, 0.50, 0.00, 0.00, 0.00, '2026-10-07 16:21:03', '2026-11-06 16:21:03', 'active', 0.00, NULL, '2026-10-07 16:21:03'),
(11, 'badhonprince7374@gmail.com', 1, '30 Days Lock', 30, 0.50, 0.00, 0.00, 0.00, '2026-10-07 16:52:20', '2026-11-06 16:52:20', 'active', 0.00, NULL, '2026-10-07 16:52:20'),
(12, 'rabbi737475@gmail.com', 1, '30 Days Lock', 30, 0.50, 0.00, 0.00, 0.00, '2026-10-09 22:58:20', '2026-11-08 22:58:20', 'active', 0.00, NULL, '2026-10-09 22:58:20');

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

--
-- Table structure for table `vault_plans`
--

CREATE TABLE `vault_plans` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `days` int(11) NOT NULL,
  `interest_percent` decimal(5,2) NOT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `sort_order` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `vault_plans`
--

INSERT INTO `vault_plans` (`id`, `name`, `days`, `interest_percent`, `is_active`, `sort_order`, `created_at`) VALUES
(1, '30 Days Lock', 30, 0.50, 1, 1, '2026-10-02 12:43:30'),
(2, '60 Days Lock', 60, 1.50, 1, 2, '2026-10-02 12:43:30');

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

--
-- Table structure for table `verifications`
--

CREATE TABLE `verifications` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `country` varchar(100) NOT NULL,
  `full_name` varchar(150) NOT NULL,
  `dob` date NOT NULL,
  `doc_type` enum('nid','passport') NOT NULL,
  `nid_front_path` varchar(255) DEFAULT NULL,
  `nid_back_path` varchar(255) DEFAULT NULL,
  `passport_path` varchar(255) DEFAULT NULL,
  `selfie_path` varchar(255) NOT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `submitted_at` timestamp NULL DEFAULT current_timestamp(),
  `reviewed_at` timestamp NULL DEFAULT NULL,
  `nid_number` varchar(50) DEFAULT NULL,
  `bonus_paid` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `verifications`
--

INSERT INTO `verifications` (`id`, `email`, `country`, `full_name`, `dob`, `doc_type`, `nid_front_path`, `nid_back_path`, `passport_path`, `selfie_path`, `status`, `admin_note`, `submitted_at`, `reviewed_at`, `nid_number`, `bonus_paid`) VALUES
(5, 'pslabbd@gmail.com', 'Bangladesh', 'PS UPDATE', '2000-01-01', 'nid', 'uploads/nid/nid_front_1790782702_9896.jpg', 'uploads/nid/nid_back_1790782702_2082.jpg', NULL, 'uploads/selfies/selfie_1790782702_6355.jpg', 'approved', NULL, '2026-09-30 15:38:22', NULL, NULL, 0),
(10, 'badhon223473@gmail.com', 'Bangladesh', 'Md nasib ikbal badhon', '2003-03-18', 'nid', 'uploads/nid/nid_front_1791397174_6964.jpg', 'uploads/nid/nid_back_1791397174_4394.jpg', NULL, 'uploads/selfies/selfie_1791397174_3339.jpg', 'approved', NULL, '2026-10-07 18:19:34', '2026-10-07 18:21:24', '1072536975', 0),
(11, 'rabbi1712621783@gmail.com', 'Bangladesh', 'md nasib', '2000-01-01', 'nid', 'uploads/nid/nid_front_1791421404_3205.jpg', 'uploads/nid/nid_back_1791421404_2558.jpg', NULL, 'uploads/selfies/selfie_1791421404_1616.jpg', 'approved', NULL, '2026-10-08 01:03:24', '2026-10-08 01:03:56', '7245350746', 0),
(12, 'rabbi737475@gmail.com', 'Bangladesh', 'asif ikbal', '2000-01-01', 'nid', 'uploads/nid/nid_front_1791421547_5749.jpg', 'uploads/nid/nid_back_1791421547_6904.jpg', NULL, 'uploads/selfies/selfie_1791421547_2305.jpg', 'approved', NULL, '2026-10-08 01:05:47', '2026-10-08 01:06:25', '1524638702', 0),
(13, 'sakilaali2555@gmail.com', 'Antigua and Barbuda', 'test', '2000-01-01', 'nid', 'uploads/nid/nid_front_1791525894_6819.jpg', 'uploads/nid/nid_back_1791525894_9465.jpg', NULL, 'uploads/selfies/selfie_1791525894_5549.jpg', 'approved', 'done', '2026-10-09 06:04:54', '2026-10-09 06:07:57', '18191687735545454', 1),
(14, 'ashrafullanin@gmail.com', 'Bangladesh', 'MD. ASHRAFUL ISLAM', '2005-04-04', 'nid', 'uploads/nid/nid_front_1791571010_5430.jpg', 'uploads/nid/nid_back_1791571010_6937.jpg', NULL, 'uploads/selfies/selfie_1791571010_4632.jpg', 'approved', NULL, '2026-10-09 18:36:50', '2026-10-09 18:38:36', '2424928121', 1),
(15, 'ariyan7373839@gmail.com', 'Bangladesh', 'ariyan', '2005-04-04', 'nid', 'uploads/nid/nid_front_1791574427_3316.jpg', 'uploads/nid/nid_back_1791574427_9243.jpg', NULL, 'uploads/selfies/selfie_1791574427_4987.jpg', 'pending', NULL, '2026-10-09 19:33:47', NULL, '2424928121', 0),
(16, 'ri6043503@gmail.com', 'Bangladesh', 'nasib ikbal', '2000-01-01', 'nid', 'uploads/nid/nid_front_1791582499_3208.jpg', 'uploads/nid/nid_back_1791582499_7452.jpg', NULL, 'uploads/selfies/selfie_1791582499_5317.jpg', 'approved', NULL, '2026-10-09 21:48:19', '2026-10-09 21:49:19', '1587463289', 1),
(17, 'mda762955@gmail.com', 'Bangladesh', 'Md.Ashraful Islam', '2004-04-30', 'nid', 'uploads/nid/nid_front_1791727024_1070.jpg', 'uploads/nid/nid_back_1791727024_9967.jpg', NULL, 'uploads/selfies/selfie_1791727024_9206.jpg', 'pending', NULL, '2026-10-11 13:57:04', NULL, '5694864194', 0);

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

--
-- Table structure for table `verification_bonus_history`
--

CREATE TABLE `verification_bonus_history` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `from_user_id` int(11) NOT NULL,
  `bonus_type` varchar(30) NOT NULL,
  `level` int(11) NOT NULL DEFAULT 0,
  `amount` decimal(10,2) NOT NULL,
  `verification_id` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `verification_bonus_history`
--

INSERT INTO `verification_bonus_history` (`id`, `user_id`, `from_user_id`, `bonus_type`, `level`, `amount`, `verification_id`, `created_at`) VALUES
(1, 27, 27, 'self_verify_bonus', 0, 10.00, 13, '2026-10-09 12:07:57'),
(2, 17, 27, 'level_1_bonus', 1, 15.00, 13, '2026-10-09 12:07:57'),
(3, 28, 28, 'self_verify_bonus', 0, 10.00, 14, '2026-10-10 00:38:36'),
(4, 24, 28, 'level_1_bonus', 1, 15.00, 14, '2026-10-10 00:38:36'),
(5, 17, 28, 'level_2_bonus', 2, 10.00, 14, '2026-10-10 00:38:36'),
(6, 24, 30, 'level_1_bonus', 1, 1.00, 15, '2026-10-10 01:36:36'),
(7, 24, 29, 'level_1_bonus', 1, 1.00, 16, '2026-10-10 03:49:19');

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

--
-- Table structure for table `verification_bonus_settings`
--

CREATE TABLE `verification_bonus_settings` (
  `id` int(11) NOT NULL,
  `bonus_type` varchar(30) NOT NULL,
  `amount` decimal(10,2) NOT NULL DEFAULT 0.00,
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `verification_bonus_settings`
--

INSERT INTO `verification_bonus_settings` (`id`, `bonus_type`, `amount`, `is_active`, `updated_at`) VALUES
(1, 'self_verify_bonus', 2.00, 0, '2026-10-10 00:59:46'),
(2, 'level_1_bonus', 1.00, 1, '2026-10-10 01:22:59'),
(3, 'level_2_bonus', 10.00, 0, '2026-10-10 00:53:42'),
(4, 'level_3_bonus', 5.00, 0, '2026-10-10 00:53:43');

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

--
-- Table structure for table `verification_requests`
--

CREATE TABLE `verification_requests` (
  `id` int(11) NOT NULL,
  `email` varchar(100) NOT NULL,
  `full_name` varchar(100) DEFAULT NULL,
  `selfie_path` varchar(255) DEFAULT NULL,
  `document_path` varchar(255) DEFAULT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `withdraw_history`
--

CREATE TABLE `withdraw_history` (
  `id` int(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `method_name` varchar(100) NOT NULL,
  `network` varchar(50) DEFAULT '',
  `amount` decimal(15,2) NOT NULL,
  `fee` decimal(15,2) DEFAULT 0.00,
  `final_amount` decimal(15,2) NOT NULL,
  `wallet_address` text NOT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `admin_note` text DEFAULT NULL,
  `approved_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `is_admin_adjust` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `withdraw_history`
--

INSERT INTO `withdraw_history` (`id`, `email`, `method_name`, `network`, `amount`, `fee`, `final_amount`, `wallet_address`, `status`, `admin_note`, `approved_at`, `created_at`, `is_admin_adjust`) VALUES
(1, 'pslabbd@gmail.com', 'Binance Pay', 'Binance', 10.00, 0.00, 10.00, 'Narayangaon, Maharashtra, India', 'approved', NULL, NULL, '2026-10-01 16:31:46', 0),
(2, 'pslabbd@gmail.com', 'USDT', 'BEP20', 5.00, 0.05, 4.95, 'sishsbsbvs', 'rejected', 'test', '2026-10-04 14:50:20', '2026-10-04 14:49:35', 0),
(3, 'badhon223473@gmail.com', 'Binance Pay', 'Binance', 20.00, 0.00, 20.00, '1873906380', 'approved', '20 Usdt withdraw done', '2026-10-07 18:32:30', '2026-10-07 18:30:26', 0),
(4, 'badhon223473@gmail.com', 'Binance Pay', 'Binance', 10.00, 0.00, 10.00, '1873906380', 'rejected', 'Admin wish', '2026-10-08 02:25:25', '2026-10-08 02:12:46', 0);

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

--
-- Table structure for table `withdraw_methods`
--

CREATE TABLE `withdraw_methods` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `logo` varchar(255) NOT NULL,
  `network` varchar(50) DEFAULT '',
  `min_amount` decimal(15,2) DEFAULT 10.00,
  `max_amount` decimal(15,2) DEFAULT 10000.00,
  `fee_percent` decimal(5,2) DEFAULT 0.00,
  `is_active` tinyint(1) DEFAULT 1,
  `sort_order` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `withdraw_methods`
--

INSERT INTO `withdraw_methods` (`id`, `name`, `logo`, `network`, `min_amount`, `max_amount`, `fee_percent`, `is_active`, `sort_order`, `created_at`) VALUES
(1, 'Binance Pay', 'https://cryptologos.cc/logos/bnb-bnb-logo.png', 'Binance', 10.00, 5000.00, 0.00, 1, 1, '2026-10-01 16:24:34'),
(2, 'USDT', 'https://cryptologos.cc/logos/tether-usdt-logo.png', 'TRC20', 5.00, 3000.00, 1.00, 1, 2, '2026-10-01 16:24:34'),
(3, 'USDT', 'https://cryptologos.cc/logos/tether-usdt-logo.png', 'BEP20', 5.00, 3000.00, 1.00, 1, 3, '2026-10-01 16:24:34'),
(4, 'Bitcoin', 'https://cryptologos.cc/logos/bitcoin-btc-logo.png', 'BTC', 20.00, 2000.00, 2.00, 1, 4, '2026-10-01 16:24:34'),
(5, 'Ethereum', 'https://cryptologos.cc/logos/ethereum-eth-logo.png', 'ERC20', 15.00, 2500.00, 1.50, 1, 5, '2026-10-01 16:24:34'),
(6, 'Tron', 'https://cryptologos.cc/logos/tron-trx-logo.png', 'TRC20', 5.00, 2000.00, 0.50, 0, 6, '2026-10-01 16:24:34');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin_action_log`
--
ALTER TABLE `admin_action_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_admin` (`admin_email`),
  ADD KEY `idx_created` (`created_at`);

--
-- Indexes for table `admin_notice`
--
ALTER TABLE `admin_notice`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `admin_users`
--
ALTER TABLE `admin_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `username` (`username`),
  ADD UNIQUE KEY `email` (`email`);

--
-- Indexes for table `app_settings`
--
ALTER TABLE `app_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `setting_key` (`setting_key`);

--
-- Indexes for table `commission_history`
--
ALTER TABLE `commission_history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`);

--
-- Indexes for table `deposit_attempts`
--
ALTER TABLE `deposit_attempts`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_email_amount` (`email`,`amount`);

--
-- Indexes for table `deposit_methods`
--
ALTER TABLE `deposit_methods`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `method_key` (`method_key`);

--
-- Indexes for table `market_pairs`
--
ALTER TABLE `market_pairs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_symbol` (`symbol`);

--
-- Indexes for table `market_settings`
--
ALTER TABLE `market_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `setting_key` (`setting_key`);

--
-- Indexes for table `my_users`
--
ALTER TABLE `my_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `admin_email` (`admin_email`,`user_id`);

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `otp_verification`
--
ALTER TABLE `otp_verification`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `p2p_coins`
--
ALTER TABLE `p2p_coins`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `coin_code` (`coin_code`);

--
-- Indexes for table `p2p_coin_cooldown`
--
ALTER TABLE `p2p_coin_cooldown`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_email_coin` (`email`,`coin_code`),
  ADD KEY `idx_email` (`email`);

--
-- Indexes for table `p2p_commissions`
--
ALTER TABLE `p2p_commissions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_order` (`order_id`),
  ADD KEY `idx_email` (`email`);

--
-- Indexes for table `p2p_config`
--
ALTER TABLE `p2p_config`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `config_key` (`config_key`);

--
-- Indexes for table `p2p_daily_counter`
--
ALTER TABLE `p2p_daily_counter`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_user_date` (`email`,`trade_date`);

--
-- Indexes for table `p2p_daily_earnings`
--
ALTER TABLE `p2p_daily_earnings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `earn_date` (`earn_date`);

--
-- Indexes for table `p2p_holdings`
--
ALTER TABLE `p2p_holdings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uniq_user_coin` (`email`,`coin_code`);

--
-- Indexes for table `p2p_orders`
--
ALTER TABLE `p2p_orders`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_coin` (`coin_code`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_created` (`created_at`);

--
-- Indexes for table `p2p_partners`
--
ALTER TABLE `p2p_partners`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_type_coin` (`partner_type`,`coin_code`);

--
-- Indexes for table `p2p_trade_sessions`
--
ALTER TABLE `p2p_trade_sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_created` (`created_at`);

--
-- Indexes for table `p2p_user_limits`
--
ALTER TABLE `p2p_user_limits`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`);

--
-- Indexes for table `recharge_history`
--
ALTER TABLE `recharge_history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_created` (`created_at`),
  ADD KEY `idx_txid` (`txid`);

--
-- Indexes for table `referral_history`
--
ALTER TABLE `referral_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `referral_settings`
--
ALTER TABLE `referral_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `level` (`level`);

--
-- Indexes for table `referral_transactions`
--
ALTER TABLE `referral_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_id` (`user_id`),
  ADD KEY `from_user_id` (`from_user_id`);

--
-- Indexes for table `saved_accounts`
--
ALTER TABLE `saved_accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_device` (`device_id`);

--
-- Indexes for table `savenotify`
--
ALTER TABLE `savenotify`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_app_name` (`app_name`),
  ADD KEY `idx_created` (`created_at`);

--
-- Indexes for table `save_notify`
--
ALTER TABLE `save_notify`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email_amount` (`email`,`amount`);

--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `setting_key` (`setting_key`);

--
-- Indexes for table `support_links`
--
ALTER TABLE `support_links`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `team_levels`
--
ALTER TABLE `team_levels`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `email` (`email`);

--
-- Indexes for table `user_personal_commission`
--
ALTER TABLE `user_personal_commission`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `valid_members`
--
ALTER TABLE `valid_members`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `user_email` (`user_email`);

--
-- Indexes for table `vault_locks`
--
ALTER TABLE `vault_locks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_end_date` (`end_date`);

--
-- Indexes for table `vault_plans`
--
ALTER TABLE `vault_plans`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `verifications`
--
ALTER TABLE `verifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `email` (`email`);

--
-- Indexes for table `verification_bonus_history`
--
ALTER TABLE `verification_bonus_history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_user_id` (`user_id`),
  ADD KEY `idx_from_user_id` (`from_user_id`),
  ADD KEY `idx_bonus_type` (`bonus_type`);

--
-- Indexes for table `verification_bonus_settings`
--
ALTER TABLE `verification_bonus_settings`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `bonus_type` (`bonus_type`);

--
-- Indexes for table `verification_requests`
--
ALTER TABLE `verification_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_status` (`status`);

--
-- Indexes for table `withdraw_history`
--
ALTER TABLE `withdraw_history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_email` (`email`),
  ADD KEY `idx_status` (`status`);

--
-- Indexes for table `withdraw_methods`
--
ALTER TABLE `withdraw_methods`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin_action_log`
--
ALTER TABLE `admin_action_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;

--
-- AUTO_INCREMENT for table `admin_notice`
--
ALTER TABLE `admin_notice`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `admin_users`
--
ALTER TABLE `admin_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `app_settings`
--
ALTER TABLE `app_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=77;

--
-- AUTO_INCREMENT for table `commission_history`
--
ALTER TABLE `commission_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `deposit_attempts`
--
ALTER TABLE `deposit_attempts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `deposit_methods`
--
ALTER TABLE `deposit_methods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `market_pairs`
--
ALTER TABLE `market_pairs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `market_settings`
--
ALTER TABLE `market_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `my_users`
--
ALTER TABLE `my_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `otp_verification`
--
ALTER TABLE `otp_verification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT for table `p2p_coins`
--
ALTER TABLE `p2p_coins`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `p2p_coin_cooldown`
--
ALTER TABLE `p2p_coin_cooldown`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=129;

--
-- AUTO_INCREMENT for table `p2p_commissions`
--
ALTER TABLE `p2p_commissions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;

--
-- AUTO_INCREMENT for table `p2p_config`
--
ALTER TABLE `p2p_config`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `p2p_daily_counter`
--
ALTER TABLE `p2p_daily_counter`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `p2p_daily_earnings`
--
ALTER TABLE `p2p_daily_earnings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `p2p_holdings`
--
ALTER TABLE `p2p_holdings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68;

--
-- AUTO_INCREMENT for table `p2p_orders`
--
ALTER TABLE `p2p_orders`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=131;

--
-- AUTO_INCREMENT for table `p2p_partners`
--
ALTER TABLE `p2p_partners`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `p2p_trade_sessions`
--
ALTER TABLE `p2p_trade_sessions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141;

--
-- AUTO_INCREMENT for table `p2p_user_limits`
--
ALTER TABLE `p2p_user_limits`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `recharge_history`
--
ALTER TABLE `recharge_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `referral_history`
--
ALTER TABLE `referral_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `referral_settings`
--
ALTER TABLE `referral_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `referral_transactions`
--
ALTER TABLE `referral_transactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;

--
-- AUTO_INCREMENT for table `saved_accounts`
--
ALTER TABLE `saved_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `savenotify`
--
ALTER TABLE `savenotify`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141;

--
-- AUTO_INCREMENT for table `save_notify`
--
ALTER TABLE `save_notify`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2396;

--
-- AUTO_INCREMENT for table `support_links`
--
ALTER TABLE `support_links`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `team_levels`
--
ALTER TABLE `team_levels`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;

--
-- AUTO_INCREMENT for table `user_personal_commission`
--
ALTER TABLE `user_personal_commission`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `valid_members`
--
ALTER TABLE `valid_members`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `vault_locks`
--
ALTER TABLE `vault_locks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `vault_plans`
--
ALTER TABLE `vault_plans`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `verifications`
--
ALTER TABLE `verifications`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `verification_bonus_history`
--
ALTER TABLE `verification_bonus_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `verification_bonus_settings`
--
ALTER TABLE `verification_bonus_settings`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73;

--
-- AUTO_INCREMENT for table `verification_requests`
--
ALTER TABLE `verification_requests`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `withdraw_history`
--
ALTER TABLE `withdraw_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `withdraw_methods`
--
ALTER TABLE `withdraw_methods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `referral_transactions`
--
ALTER TABLE `referral_transactions`
  ADD CONSTRAINT `referral_transactions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `referral_transactions_ibfk_2` FOREIGN KEY (`from_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
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 */;
