-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 03, 2026 at 12:05 PM
-- Server version: 10.11.19-MariaDB-cll-lve
-- PHP Version: 8.4.20

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: `sparksavings_newjustin`
--

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

--
-- Table structure for table `admin_config`
--

CREATE TABLE `admin_config` (
  `id` int(11) NOT NULL,
  `key_name` varchar(255) NOT NULL,
  `value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `admin_settings`
--

CREATE TABLE `admin_settings` (
  `id` int(11) NOT NULL,
  `setting_name` varchar(50) NOT NULL,
  `setting_value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `checking_transactions`
--

CREATE TABLE `checking_transactions` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `type` enum('credit','debit') NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `description` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `crypto_wallets`
--

CREATE TABLE `crypto_wallets` (
  `id` int(11) NOT NULL,
  `coin_name` varchar(50) NOT NULL,
  `address` varchar(255) NOT NULL,
  `network` varchar(50) DEFAULT NULL,
  `qr_code_url` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `crypto_wallets`
--

INSERT INTO `crypto_wallets` (`id`, `coin_name`, `address`, `network`, `qr_code_url`, `is_active`, `created_at`) VALUES
(4, 'usdt', 'TMZ97oCmCfuHeA2YKgyojpHmCzHzccv3Ji', '', 'uploads/qrcodes/6a522ebfcf041_WhatsApp Image 2026-07-11 at 4.47.58 AM.jpeg', 1, '2026-07-11 11:53:35');

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

--
-- Table structure for table `flight_bookings`
--

CREATE TABLE `flight_bookings` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `ticket_number` varchar(50) NOT NULL,
  `trip_type` enum('one-way','round-trip','multiple-city') NOT NULL,
  `passengers` int(11) NOT NULL,
  `price` decimal(15,2) NOT NULL,
  `proof_of_payment` varchar(255) DEFAULT NULL,
  `payment_status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `booking_details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`booking_details`)),
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `funding_requests`
--

CREATE TABLE `funding_requests` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `amount` decimal(15,2) NOT NULL,
  `method` enum('crypto','bank_transfer','card_payment') NOT NULL,
  `proof_of_payment` varchar(255) DEFAULT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `kyc_details`
--

CREATE TABLE `kyc_details` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `address` text NOT NULL,
  `dob` date NOT NULL,
  `id_type` varchar(50) NOT NULL,
  `id_number` varchar(100) NOT NULL,
  `photo_url` varchar(255) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `zip_code` varchar(20) DEFAULT NULL,
  `submitted_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `live_chats`
--

CREATE TABLE `live_chats` (
  `id` int(11) NOT NULL,
  `label` varchar(100) NOT NULL COMMENT 'Display name, e.g. WhatsApp Support',
  `url` text NOT NULL COMMENT 'Full chat URL or embed script src',
  `is_active` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = show on public pages, 0 = hidden',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `live_chats`
--

INSERT INTO `live_chats` (`id`, `label`, `url`, `is_active`, `created_at`) VALUES
(1, 'Chatway', '<!-- Smartsupp Live Chat script -->\r\n<script type=\"text/javascript\">\r\nvar _smartsupp = _smartsupp || {};\r\n_smartsupp.key = \'dbc251edc3fc91871ab5ea4c6b71f475ef1a5480\';\r\nwindow.smartsupp||(function(d) {\r\n  var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];\r\n  s=d.getElementsByTagName(\'script\')[0];c=d.createElement(\'script\');\r\n  c.type=\'text/javascript\';c.charset=\'utf-8\';c.async=true;\r\n  c.src=\'https://www.smartsuppchat.com/loader.js?\';s.parentNode.insertBefore(c,s);\r\n})(document);\r\n</script>\r\n<noscript>Powered by <a href=\"https://www.smartsupp.com\" target=\"_blank\">Smartsupp</a></noscript>', 1, '2026-06-12 23:26:54');

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

--
-- Table structure for table `loan_requests`
--

CREATE TABLE `loan_requests` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `amount` decimal(15,2) NOT NULL,
  `duration` varchar(100) NOT NULL,
  `reason` text NOT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `payment_methods`
--

CREATE TABLE `payment_methods` (
  `id` int(11) NOT NULL,
  `type` enum('bank_account','crypto_wallet') NOT NULL,
  `name` varchar(255) NOT NULL,
  `account_number` varchar(255) DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `crypto_address` varchar(255) DEFAULT NULL,
  `crypto_network` varchar(50) DEFAULT NULL,
  `coin_type` varchar(50) DEFAULT NULL,
  `qr_code_url` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

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

CREATE TABLE `settings` (
  `id` int(11) NOT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `account_name` varchar(255) DEFAULT NULL,
  `account_number` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `settings` (`id`, `bank_name`, `account_name`, `account_number`) VALUES
(1, 'James', 'Hilary', '12345678900');

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

--
-- Table structure for table `stocks`
--

CREATE TABLE `stocks` (
  `id` int(11) NOT NULL,
  `symbol` varchar(10) NOT NULL,
  `company_name` varchar(100) NOT NULL,
  `current_price` decimal(15,2) NOT NULL,
  `change_percent` decimal(5,2) DEFAULT 0.00,
  `logo_url` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `stocks`
--

INSERT INTO `stocks` (`id`, `symbol`, `company_name`, `current_price`, `change_percent`, `logo_url`) VALUES
(1, 'AAPL', 'Apple Inc.', 185.92, 1.20, NULL),
(2, 'TSLA', 'Tesla, Inc.', 238.45, -0.50, NULL),
(3, 'NVDA', 'NVIDIA Corp.', 495.22, 3.40, NULL),
(4, 'MSFT', 'Microsoft', 378.85, 0.80, NULL),
(5, 'AMZN', 'Amazon.com', 153.42, -1.10, NULL);

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

--
-- Table structure for table `stock_sell_requests`
--

CREATE TABLE `stock_sell_requests` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `stock_id` int(11) NOT NULL,
  `shares_to_sell` decimal(15,8) NOT NULL,
  `sell_amount_usd` decimal(15,2) NOT NULL,
  `tax_amount_required` decimal(15,2) NOT NULL,
  `proof_of_tax_payment` varchar(255) DEFAULT NULL,
  `status` enum('awaiting_payment','pending_admin','completed','rejected') DEFAULT 'awaiting_payment',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `stock_sell_requests`
--

INSERT INTO `stock_sell_requests` (`id`, `user_id`, `stock_id`, `shares_to_sell`, `sell_amount_usd`, `tax_amount_required`, `proof_of_tax_payment`, `status`, `created_at`) VALUES
(1, 37, 1, 2.68932874, 500.00, 75.00, 'tax_1768771362.png', 'pending_admin', '2026-01-18 21:22:43'),
(2, 37, 1, 2.68932874, 500.00, 75.00, 'tax_37_1768771662.png', 'pending_admin', '2026-01-18 21:27:42');

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `type` enum('debit','credit') NOT NULL,
  `transaction_type` enum('credit','debit') NOT NULL,
  `swift_code` varchar(500) NOT NULL,
  `receiver_country` varchar(500) NOT NULL,
  `amount` decimal(15,2) NOT NULL,
  `description` text DEFAULT NULL,
  `cot_code` varchar(20) DEFAULT NULL,
  `tac_code` varchar(20) DEFAULT NULL,
  `imf_code` varchar(20) DEFAULT NULL,
  `status` enum('pending','completed','failed') DEFAULT 'completed',
  `recipient_details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`recipient_details`)),
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `transaction_id` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `transactions`
--

INSERT INTO `transactions` (`id`, `user_id`, `type`, `transaction_type`, `swift_code`, `receiver_country`, `amount`, `description`, `cot_code`, `tac_code`, `imf_code`, `status`, `recipient_details`, `created_at`, `transaction_id`) VALUES
(1, 99, 'credit', 'credit', '', '', 50000.00, 'salary', NULL, NULL, NULL, 'completed', NULL, '2026-09-29 00:00:00', 'TXN6ABC294D2AE178.39263922'),
(2, 99, 'debit', 'debit', '42394524', 'Nigeria', 500.00, 'testing', NULL, NULL, NULL, 'completed', '{\"recipient_name\":\"ggg\",\"account_number\":\"42394524\",\"bank_name\":\"bank of london\"}', '2026-09-29 21:39:00', 'LYRe4r6njioQ'),
(3, 82, 'credit', 'credit', '', '', 2922.00, 'Transfer from Jennifer Williams - DZ Bank 9846275311', NULL, NULL, NULL, 'completed', NULL, '2026-05-09 04:39:28', 'TXN-6ac45c962a58f4.70674234'),
(4, 82, 'debit', 'debit', '', '', 2383.00, 'Transfer to Mary Miller - Wells Fargo 7730313065', NULL, NULL, NULL, 'completed', NULL, '2026-05-22 23:28:19', 'TXN-6ac45c962b0092.94422920'),
(5, 82, 'credit', 'credit', '', '', 296.00, 'Transfer from William Williams - DBS Bank 4693743039', NULL, NULL, NULL, 'completed', NULL, '2026-06-14 12:32:49', 'TXN-6ac45c962b2824.55804675'),
(6, 82, 'debit', 'debit', '', '', 1250.00, 'Transfer to Mary Jones - Scotiabank 4561421228', NULL, NULL, NULL, 'completed', NULL, '2026-02-27 23:36:50', 'TXN-6ac45c962b4420.78098163'),
(7, 82, 'credit', 'credit', '', '', 1186.00, 'Transfer from Jennifer Miller - Wells Fargo 5428649207', NULL, NULL, NULL, 'completed', NULL, '2026-06-22 21:25:59', 'TXN-6ac45c962ba4d9.09884199'),
(8, 82, 'debit', 'debit', '', '', 483.00, 'Transfer to Jennifer Smith - Deutsche Bank 4387026808', NULL, NULL, NULL, 'completed', NULL, '2026-04-27 17:03:49', 'TXN-6ac45c962c01f4.47589191'),
(9, 82, 'credit', 'credit', '', '', 2369.00, 'Transfer from Robert Miller - UOB 3813630480', NULL, NULL, NULL, 'completed', NULL, '2026-07-01 20:23:58', 'TXN-6ac45c962c5e87.67293776'),
(10, 82, 'debit', 'debit', '', '', 2762.00, 'Transfer to John Smith - DZ Bank 5216634987', NULL, NULL, NULL, 'completed', NULL, '2026-07-29 10:09:03', 'TXN-6ac45c962c7b18.74988872'),
(11, 82, 'credit', 'credit', '', '', 1009.00, 'Transfer from James Johnson - Westpac 7304730128', NULL, NULL, NULL, 'completed', NULL, '2026-06-14 13:16:43', 'TXN-6ac45c962c9489.15865208'),
(12, 82, 'debit', 'debit', '', '', 1005.00, 'Transfer to William Johnson - ANZ 7965378882', NULL, NULL, NULL, 'completed', NULL, '2026-05-08 02:48:05', 'TXN-6ac45c962cab19.75358268'),
(13, 82, 'credit', 'credit', '', '', 1791.00, 'Transfer from James Rodriguez - Westpac 9314261785', NULL, NULL, NULL, 'completed', NULL, '2026-05-29 00:02:15', 'TXN-6ac45c962cbf02.52904067'),
(14, 82, 'debit', 'debit', '', '', 698.00, 'Transfer to James Rodriguez - KfW 6023260836', NULL, NULL, NULL, 'completed', NULL, '2026-04-22 11:46:26', 'TXN-6ac45c962cd441.77487668'),
(15, 82, 'credit', 'credit', '', '', 2308.00, 'Transfer from Elizabeth Johnson - NatWest 3907242920', NULL, NULL, NULL, 'completed', NULL, '2026-04-16 06:15:23', 'TXN-6ac45c962ce5e3.71468750'),
(16, 82, 'debit', 'debit', '', '', 778.00, 'Transfer to Mary Jones - Royal Bank of Canada (RBC) 4910760869', NULL, NULL, NULL, 'completed', NULL, '2026-01-25 11:01:00', 'TXN-6ac45c962cfad6.81466943'),
(17, 82, 'credit', 'credit', '', '', 2663.00, 'Transfer from William Johnson - DZ Bank 6443020796', NULL, NULL, NULL, 'completed', NULL, '2026-04-06 07:25:27', 'TXN-6ac45c962d0fc9.20095326'),
(18, 82, 'debit', 'debit', '', '', 1446.00, 'Transfer to Jennifer Smith - HSBC 8661353934', NULL, NULL, NULL, 'completed', NULL, '2026-05-15 01:47:02', 'TXN-6ac45c962d2147.62435510'),
(19, 82, 'credit', 'credit', '', '', 1129.00, 'Transfer from Elizabeth Johnson - DZ Bank 3547210298', NULL, NULL, NULL, 'completed', NULL, '2026-06-16 11:59:19', 'TXN-6ac45c962d32f9.83754562'),
(20, 82, 'debit', 'debit', '', '', 882.00, 'Transfer to Elizabeth Williams - ANZ 5001209137', NULL, NULL, NULL, 'completed', NULL, '2026-07-11 22:36:34', 'TXN-6ac45c962d4807.82719260'),
(21, 82, 'credit', 'credit', '', '', 808.00, 'Transfer from William Johnson - Deutsche Bank 3890807461', NULL, NULL, NULL, 'completed', NULL, '2026-02-05 10:41:49', 'TXN-6ac45c962d5969.09117947'),
(22, 82, 'debit', 'debit', '', '', 1945.00, 'Transfer to Jennifer Smith - JPMorgan Chase 2940955948', NULL, NULL, NULL, 'completed', NULL, '2026-07-22 05:53:11', 'TXN-6ac45c962d6fe1.94805235'),
(23, 82, 'credit', 'credit', '', '', 1258.00, 'Transfer from Robert Rodriguez - Wells Fargo 5470468688', NULL, NULL, NULL, 'completed', NULL, '2026-07-06 17:38:41', 'TXN-6ac45c962d8210.82775265'),
(24, 82, 'debit', 'debit', '', '', 727.00, 'Transfer to Michael Williams - HSBC 2460710087', NULL, NULL, NULL, 'completed', NULL, '2026-04-09 16:11:41', 'TXN-6ac45c962d9690.05907465'),
(25, 82, 'credit', 'credit', '', '', 3004.00, 'Transfer from Robert Garcia - Royal Bank of Canada (RBC) 6833268880', NULL, NULL, NULL, 'completed', NULL, '2026-07-12 02:13:13', 'TXN-6ac45c962da7f5.66648629'),
(26, 82, 'debit', 'debit', '', '', 816.00, 'Transfer to William Garcia - Royal Bank of Canada (RBC) 6177760969', NULL, NULL, NULL, 'completed', NULL, '2026-06-26 11:58:47', 'TXN-6ac45c962db9a1.59134926'),
(27, 82, 'credit', 'credit', '', '', 2950.00, 'Transfer from Michael Smith - DZ Bank 8923916790', NULL, NULL, NULL, 'completed', NULL, '2026-08-03 14:55:58', 'TXN-6ac45c962dd617.17437446'),
(28, 82, 'debit', 'debit', '', '', 1230.00, 'Transfer to John Garcia - Standard Chartered 5948629860', NULL, NULL, NULL, 'completed', NULL, '2026-04-27 10:39:32', 'TXN-6ac45c962de952.94996880'),
(29, 82, 'credit', 'credit', '', '', 1614.00, 'Transfer from Michael Davis - DZ Bank 4565188646', NULL, NULL, NULL, 'completed', NULL, '2026-04-12 14:44:42', 'TXN-6ac45c962dfd50.39813303'),
(30, 82, 'debit', 'debit', '', '', 578.00, 'Transfer to Patricia Smith - DBS Bank 8003255475', NULL, NULL, NULL, 'completed', NULL, '2026-07-26 06:55:52', 'TXN-6ac45c962e11a8.32297469'),
(31, 82, 'credit', 'credit', '', '', 1929.00, 'Transfer from Elizabeth Smith - JPMorgan Chase 5273757918', NULL, NULL, NULL, 'completed', NULL, '2026-01-22 10:58:24', 'TXN-6ac45c962e2310.53744895'),
(32, 82, 'debit', 'debit', '', '', 2204.00, 'Transfer to James Davis - Westpac 1193433872', NULL, NULL, NULL, 'completed', NULL, '2026-02-05 21:48:24', 'TXN-6ac45c962e3996.01335523'),
(33, 82, 'credit', 'credit', '', '', 1107.00, 'Transfer from Linda Garcia - NAB 3268105546', NULL, NULL, NULL, 'completed', NULL, '2026-08-08 07:09:25', 'TXN-6ac45c962e5028.50862452'),
(34, 82, 'debit', 'debit', '', '', 813.00, 'Transfer to James Rodriguez - Toronto-Dominion Bank (TD) 4775636159', NULL, NULL, NULL, 'completed', NULL, '2026-07-06 10:07:25', 'TXN-6ac45c962e6341.47342648'),
(35, 82, 'credit', 'credit', '', '', 2503.00, 'Transfer from Mary Johnson - HSBC 1114573495', NULL, NULL, NULL, 'completed', NULL, '2026-03-05 10:33:45', 'TXN-6ac45c962e72a8.07375934'),
(36, 82, 'debit', 'debit', '', '', 1550.00, 'Transfer to Mary Smith - Commonwealth Bank 2596170401', NULL, NULL, NULL, 'completed', NULL, '2026-06-02 09:20:14', 'TXN-6ac45c962e8388.74176569'),
(37, 82, 'credit', 'credit', '', '', 2886.00, 'Transfer from Robert Jones - NatWest 6229539165', NULL, NULL, NULL, 'completed', NULL, '2026-03-11 05:17:17', 'TXN-6ac45c962e92e8.39903253'),
(38, 82, 'debit', 'debit', '', '', 1285.00, 'Transfer to Michael Williams - Royal Bank of Canada (RBC) 7796674428', NULL, NULL, NULL, 'completed', NULL, '2026-05-20 00:14:35', 'TXN-6ac45c962ea137.45062691'),
(39, 82, 'credit', 'credit', '', '', 1880.00, 'Transfer from Jennifer Brown - OCBC Bank 9530075298', NULL, NULL, NULL, 'completed', NULL, '2026-05-11 08:50:22', 'TXN-6ac45c962eb174.53504986'),
(40, 82, 'debit', 'debit', '', '', 1383.00, 'Transfer to John Smith - HSBC 3022421779', NULL, NULL, NULL, 'completed', NULL, '2026-04-15 10:55:14', 'TXN-6ac45c962ec2c1.46485947'),
(41, 82, 'credit', 'credit', '', '', 465.00, 'Transfer from Jennifer Johnson - Deutsche Bank 3610795141', NULL, NULL, NULL, 'completed', NULL, '2026-07-24 07:39:04', 'TXN-6ac45c962edae4.48621874'),
(42, 82, 'debit', 'debit', '', '', 32.00, 'Transfer to Elizabeth Brown - KfW 2619054980', NULL, NULL, NULL, 'completed', NULL, '2026-03-03 10:04:45', 'TXN-6ac45c962eebd1.03902557'),
(43, 82, 'credit', 'credit', '', '', 2651.00, 'Transfer from Robert Smith - Standard Chartered 2154630188', NULL, NULL, NULL, 'completed', NULL, '2026-04-20 03:20:41', 'TXN-6ac45c962efc09.67382305'),
(44, 82, 'debit', 'debit', '', '', 2018.00, 'Transfer to Michael Rodriguez - Standard Chartered 1983762011', NULL, NULL, NULL, 'completed', NULL, '2026-03-23 04:47:19', 'TXN-6ac45c962f0c52.19055169'),
(45, 82, 'credit', 'credit', '', '', 785.00, 'Transfer from Mary Brown - Westpac 1572471537', NULL, NULL, NULL, 'completed', NULL, '2026-08-08 10:30:46', 'TXN-6ac45c962f1af0.01994852'),
(46, 82, 'debit', 'debit', '', '', 46.00, 'Transfer to Linda Miller - OCBC Bank 1890597150', NULL, NULL, NULL, 'completed', NULL, '2026-06-15 22:32:25', 'TXN-6ac45c962f2ea7.55961036'),
(47, 82, 'credit', 'credit', '', '', 1662.00, 'Transfer from Elizabeth Garcia - Scotiabank 2009813477', NULL, NULL, NULL, 'completed', NULL, '2026-06-03 20:45:54', 'TXN-6ac45c962f4342.93368125'),
(48, 82, 'debit', 'debit', '', '', 2746.00, 'Transfer to Patricia Jones - Scotiabank 6302361406', NULL, NULL, NULL, 'completed', NULL, '2026-02-21 23:39:43', 'TXN-6ac45c962f5390.75258756'),
(49, 82, 'credit', 'credit', '', '', 266.00, 'Transfer from Robert Davis - HSBC 2927379391', NULL, NULL, NULL, 'completed', NULL, '2026-05-25 20:30:04', 'TXN-6ac45c962f66f4.11251873'),
(50, 82, 'debit', 'debit', '', '', 26.00, 'Transfer to Patricia Davis - DBS Bank 8515167858', NULL, NULL, NULL, 'completed', NULL, '2026-07-24 06:08:27', 'TXN-6ac45c962f75e4.98099789'),
(51, 82, 'credit', 'credit', '', '', 2943.00, 'Transfer from Mary Rodriguez - DBS Bank 3745554938', NULL, NULL, NULL, 'completed', NULL, '2026-03-23 09:48:02', 'TXN-6ac45c962f89a0.45556758'),
(52, 82, 'debit', 'debit', '', '', 289.00, 'Transfer to Patricia Rodriguez - Toronto-Dominion Bank (TD) 9683493985', NULL, NULL, NULL, 'completed', NULL, '2026-04-29 18:50:08', 'TXN-6ac45c962f96c0.87496531'),
(53, 82, 'credit', 'credit', '', '', 621.00, 'Transfer from Michael Davis - Commonwealth Bank 6504890181', NULL, NULL, NULL, 'completed', NULL, '2026-02-02 02:02:54', 'TXN-6ac45c962fa533.10386412'),
(54, 82, 'debit', 'debit', '', '', 1064.00, 'Transfer to Mary Rodriguez - UOB 2651256994', NULL, NULL, NULL, 'completed', NULL, '2026-02-06 14:04:59', 'TXN-6ac45c962fb306.77899780'),
(55, 82, 'credit', 'credit', '', '', 2103.00, 'Transfer from Mary Davis - Citibank 1660643896', NULL, NULL, NULL, 'completed', NULL, '2026-05-26 12:32:48', 'TXN-6ac45c962fc332.51725625'),
(56, 82, 'debit', 'debit', '', '', 1097.00, 'Transfer to John Johnson - DZ Bank 1193860361', NULL, NULL, NULL, 'completed', NULL, '2026-06-16 08:20:46', 'TXN-6ac45c962fd0e5.79195531'),
(57, 82, 'credit', 'credit', '', '', 2348.00, 'Transfer from Elizabeth Garcia - Royal Bank of Canada (RBC) 7410299742', NULL, NULL, NULL, 'completed', NULL, '2026-03-17 08:46:26', 'TXN-6ac45c962fe6e6.58457278'),
(58, 82, 'debit', 'debit', '', '', 399.00, 'Transfer to James Smith - Citibank 5401723034', NULL, NULL, NULL, 'completed', NULL, '2026-07-10 00:51:05', 'TXN-6ac45c962fff04.38892086'),
(59, 82, 'credit', 'credit', '', '', 2066.00, 'Transfer from Elizabeth Johnson - Royal Bank of Canada (RBC) 7917828757', NULL, NULL, NULL, 'completed', NULL, '2026-08-10 04:25:39', 'TXN-6ac45c96301a62.84745579'),
(60, 82, 'debit', 'debit', '', '', 796.00, 'Transfer to Jennifer Rodriguez - Toronto-Dominion Bank (TD) 6174215989', NULL, NULL, NULL, 'completed', NULL, '2026-01-24 21:34:47', 'TXN-6ac45c96303e09.22663807'),
(61, 82, 'credit', 'credit', '', '', 3496.00, 'Transfer from Elizabeth Garcia - Toronto-Dominion Bank (TD) 6014725803', NULL, NULL, NULL, 'completed', NULL, '2026-06-01 03:56:16', 'TXN-6ac45c96305e03.10176865'),
(62, 82, 'debit', 'debit', '', '', 2251.00, 'Transfer to Elizabeth Miller - Westpac 3571351831', NULL, NULL, NULL, 'completed', NULL, '2026-06-27 08:29:01', 'TXN-6ac45c96307db6.01400172'),
(63, 82, 'debit', 'debit', '', '', 80000.00, 'Transfer from Paul Gardini to Giselle ubillus nascimento. \nTruist bank', NULL, NULL, NULL, 'completed', NULL, '2026-09-21 00:00:00', 'TXN6AC45FAA332D09.33263796'),
(64, 73, 'debit', 'debit', 'Hhhb', 'Untg', 56788.00, 'G', NULL, NULL, NULL, 'failed', '{\"recipient_name\":\"Ghhtrgn\",\"account_number\":\"45667544\",\"bank_name\":\"Ghhh\",\"account_type\":\"Checking\",\"settlement\":{\"source_col\":\"balance\",\"credit_account\":null}}', '2026-10-06 03:46:00', 'TqROUu83kF1S'),
(65, 82, 'debit', 'debit', 'BRBTUS333', 'United States', 175000.00, 'Supply/Delivery', NULL, NULL, NULL, 'failed', '{\"recipient_name\":\"Gisele Ubillus Nascimento\",\"account_number\":\"1470019968421\",\"bank_name\":\"Truist bank\",\"account_type\":\"Checking\",\"settlement\":{\"source_col\":\"balance\",\"credit_account\":null}}', '2026-10-13 01:23:00', 'XId2lFuVMDbk');

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

--
-- Table structure for table `transfer_codes`
--

CREATE TABLE `transfer_codes` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `type` varchar(10) NOT NULL,
  `cot_code` varchar(20) DEFAULT NULL,
  `tac_code` varchar(20) DEFAULT NULL,
  `imf_code` varchar(20) DEFAULT NULL,
  `is_used` tinyint(1) DEFAULT 0,
  `code` varchar(20) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `transfer_codes`
--

INSERT INTO `transfer_codes` (`id`, `user_id`, `type`, `cot_code`, `tac_code`, `imf_code`, `is_used`, `code`, `created_at`) VALUES
(471, 99, 'cot', NULL, NULL, NULL, 1, 'D3UIM2', '2026-09-29 21:39:00'),
(472, 99, 'tac', NULL, NULL, NULL, 1, 'LX096N', '2026-09-29 21:39:00'),
(473, 99, 'imf', NULL, NULL, NULL, 1, 'G7OEVH', '2026-09-29 21:39:00'),
(474, 73, 'cot', NULL, NULL, NULL, 1, 'U2XL9P', '2026-10-06 03:44:34'),
(475, 73, 'tac', NULL, NULL, NULL, 1, 'B7CQQY', '2026-10-06 03:44:34'),
(476, 73, 'imf', NULL, NULL, NULL, 1, 'ZFNT3W', '2026-10-06 03:44:34'),
(477, 82, 'cot', NULL, NULL, NULL, 1, 'B5L8MH', '2026-10-13 01:19:40'),
(478, 82, 'imf', NULL, NULL, NULL, 1, 'RYO0MA', '2026-10-13 01:19:40');

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

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

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `full_name` varchar(255) NOT NULL,
  `username` varchar(100) NOT NULL DEFAULT '',
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `pin` varchar(255) DEFAULT NULL,
  `account_number` varchar(10) NOT NULL,
  `balance` decimal(15,2) DEFAULT 0.00,
  `balancce` decimal(15,2) NOT NULL DEFAULT 0.00,
  `is_kyc_verified` tinyint(1) DEFAULT 0,
  `is_2fa_enabled` tinyint(1) DEFAULT 0,
  `status` enum('pending','active','suspended','blocked','deleted','dormant','upgrade') DEFAULT 'pending',
  `transfer_limit` decimal(15,2) DEFAULT 50000.00,
  `role` enum('user','admin') DEFAULT 'user',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `account_type` varchar(50) DEFAULT NULL,
  `passport_photo` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `id_type` varchar(50) DEFAULT NULL,
  `id_number` varchar(255) DEFAULT NULL,
  `photo_url` varchar(255) DEFAULT NULL,
  `is_kyc_submitted` tinyint(1) DEFAULT 0,
  `phone_number` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `country` varchar(255) DEFAULT NULL,
  `zip_code` varchar(255) DEFAULT NULL,
  `occupation` varchar(255) DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `currency` varchar(100) DEFAULT NULL,
  `kyc_document_type` varchar(50) DEFAULT NULL,
  `kyc_document_number` varchar(100) DEFAULT NULL,
  `kyc_document_path` varchar(255) DEFAULT NULL,
  `passport_photo_path` varchar(255) DEFAULT NULL,
  `id_photo_path` varchar(255) DEFAULT NULL,
  `require_cot` tinyint(1) NOT NULL DEFAULT 1,
  `require_tac` tinyint(1) NOT NULL DEFAULT 1,
  `require_imf` tinyint(1) NOT NULL DEFAULT 1,
  `transfer_status` enum('pending','completed','failed') NOT NULL DEFAULT 'completed'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `users` (`id`, `full_name`, `username`, `email`, `password`, `pin`, `account_number`, `balance`, `balancce`, `is_kyc_verified`, `is_2fa_enabled`, `status`, `transfer_limit`, `role`, `created_at`, `account_type`, `passport_photo`, `address`, `dob`, `id_type`, `id_number`, `photo_url`, `is_kyc_submitted`, `phone_number`, `city`, `state`, `country`, `zip_code`, `occupation`, `updated_at`, `currency`, `kyc_document_type`, `kyc_document_number`, `kyc_document_path`, `passport_photo_path`, `id_photo_path`, `require_cot`, `require_tac`, `require_imf`, `transfer_status`) VALUES
(10, 'Cloud Trust', '', 'support@sparksavings.us', '$2y$10$X/AlRnd8FbNuT56K8ea9buhRb/aPPaBCW64D/2ucO3CU0F/oo0uNG', NULL, 'HB10176733', 0.00, 0.00, 1, 0, 'active', 50000.00, 'admin', '2025-09-07 22:48:04', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-09-29 13:45:01', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed'),
(73, 'Dani Anderson Gardini', '', 'dg627212@gmail.com', '$2y$10$NnGU8K2hiltSZNhbFvJgXuMz4m8tMUwqSwk2vm9ECf4y0t2EYPGbS', '1963', '42394524', 9978881.00, 1240562.00, 1, 0, 'active', 150000.00, 'user', '2026-03-24 13:10:24', 'Checkings', '1774359420_9ADE68B8-809D-40F6-B0FA-B7B303AD768B.jpeg', NULL, NULL, NULL, NULL, NULL, 1, '+13372923588', NULL, NULL, NULL, NULL, NULL, '2026-10-06 03:43:30', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'pending'),
(77, 'Dave Cotten Gardini', '', 'cottendave798@gmail.com', '$2y$10$m8tqRCJHx0JAESk8mRT75OCHRd1NvlmhfBa7JY7tfY.iF2nDpRiSm', '1957', '69250310', 3027568.14, 747219.00, 1, 0, 'active', 500000.00, 'user', '2026-05-25 03:31:38', 'Savings', '1779720754_IMG_2401.jpeg', NULL, NULL, NULL, NULL, NULL, 1, '8402004018', NULL, NULL, NULL, NULL, NULL, '2026-10-06 03:37:26', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed'),
(78, 'John daton ', '', 'johnekena87@gmail.com', '$2y$10$No66xL4BrSHYIDUypmT3..SJ3E4omkVRHbAwh0u.lc7vcKUNkOAKu', '4821', '14059425', 0.00, 0.00, 0, 0, 'pending', 50000.00, 'user', '2026-05-26 12:37:56', 'Savings', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, '2026-05-26 12:37:56', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed'),
(81, 'Anthony Grey ', '', 'anthonygrey5@gmail.com', '$2y$10$.5O0.Ji4xRZRbe2g3KGPaeBdQwpSqBqZCqnkGRnwS9oCcAAuwizau', '7392', '72284603', 1236340.02, 1468325.06, 1, 0, 'active', 100000.00, 'user', '2026-07-08 20:27:51', 'Checkings', '1783543719_A5D790FD-C877-4F43-9787-4801386B0441.png', NULL, NULL, NULL, NULL, NULL, 1, '3187072241', NULL, NULL, NULL, NULL, NULL, '2026-07-08 20:54:26', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed'),
(82, 'Paul J Gardini', '', 'paulgardini66@gmail.com', '$2y$10$Wh6LqVCDNueOL/tr7fKnk.x58k.LidqZpS5kCEfjDXAQr/GAWncX6', '1962', '75750890', 8496894.00, 866764.00, 1, 0, 'dormant', 5000000.00, 'user', '2026-09-04 07:06:34', 'Checkings', 'profile_6ac45f12d298a.jpeg', NULL, NULL, NULL, NULL, NULL, 1, '7062588098', NULL, NULL, NULL, NULL, NULL, '2026-10-13 20:18:06', '$', NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 'pending'),
(99, 'Asogwa Emeka Matthew', 'reliants', 'technologybluelite@gmail.com', '$2y$10$CQEj.1DObWGclXYet8.qGO1D5nyq2rdsXV./gIH1i4cFOW74zGyWi', '1515', '84706684', 50000.00, 0.00, 1, 0, 'active', 50000.00, 'user', '2026-09-29 13:52:57', 'Checking Account', '1790689977_1675950670190.png', NULL, NULL, NULL, NULL, NULL, 1, '1234567', NULL, NULL, 'Nigeria', NULL, NULL, '2026-09-29 21:38:29', '€', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'pending'),
(100, 'Edward 1 Davis', 'edavis92132', 'edwarddavis6j0j70at8@fldubai.com', '$2y$10$kTndg8yUEJnsGHbVGyB6xOZuC9EYrAWdrf8CUeiH.Bu8cWXYS2rHW', '1', '86961271', 0.00, 0.00, 0, 0, 'pending', 50000.00, 'user', '2026-11-05 14:48:27', 'Checking Account', '', NULL, NULL, NULL, NULL, NULL, 0, '4866141749', NULL, NULL, 'United States', NULL, NULL, '2026-11-05 14:48:27', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed'),
(101, 'Ryan 1 Garcia', 'ryang736675', 'ryangarcia046rlpdt0@fldubai.com', '$2y$10$4VlfpKZBlUcT5eSiQmIlsO63fzO6rMtdo12XX2jdoH7VmOKGQadXa', '1', '99174843', 0.00, 0.00, 0, 0, 'pending', 50000.00, 'user', '2026-11-10 09:44:11', 'Checking Account', '', NULL, NULL, NULL, NULL, NULL, 0, '7175550157', NULL, NULL, 'United States', NULL, NULL, '2026-11-10 09:44:11', '$', NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 'completed');

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

--
-- Table structure for table `user_stocks`
--

CREATE TABLE `user_stocks` (
  `id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `stock_id` int(11) NOT NULL,
  `shares` decimal(15,8) NOT NULL,
  `average_price` decimal(15,2) NOT NULL,
  `purchase_date` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `virtual_cards`
--

CREATE TABLE `virtual_cards` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `card_number` varchar(16) NOT NULL,
  `cardholder_name` varchar(255) NOT NULL,
  `expiry_date` varchar(5) NOT NULL,
  `cvc` varchar(3) NOT NULL,
  `card_type` varchar(50) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `status` enum('active','inactive') NOT NULL DEFAULT 'inactive'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `virtual_card_requests`
--

CREATE TABLE `virtual_card_requests` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `card_type` varchar(50) NOT NULL,
  `remarks` text DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `whatsapp_buttons`
--

CREATE TABLE `whatsapp_buttons` (
  `id` int(11) NOT NULL,
  `phone` varchar(30) NOT NULL COMMENT 'Digits only with country code, e.g. 4915207176249',
  `is_active` tinyint(1) NOT NULL DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `transfer_codes`
--
ALTER TABLE `transfer_codes`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `cot_code` (`cot_code`),
  ADD UNIQUE KEY `tac_code` (`tac_code`),
  ADD UNIQUE KEY `imf_code` (`imf_code`),
  ADD KEY `user_id` (`user_id`);

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Constraints for dumped tables
--

--
-- Constraints for table `checking_transactions`
--
ALTER TABLE `checking_transactions`
  ADD CONSTRAINT `checking_transactions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `flight_bookings`
--
ALTER TABLE `flight_bookings`
  ADD CONSTRAINT `flight_bookings_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `funding_requests`
--
ALTER TABLE `funding_requests`
  ADD CONSTRAINT `funding_requests_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `kyc_details`
--
ALTER TABLE `kyc_details`
  ADD CONSTRAINT `kyc_details_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `loan_requests`
--
ALTER TABLE `loan_requests`
  ADD CONSTRAINT `loan_requests_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transfer_codes`
--
ALTER TABLE `transfer_codes`
  ADD CONSTRAINT `transfer_codes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `user_stocks`
--
ALTER TABLE `user_stocks`
  ADD CONSTRAINT `user_stocks_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `user_stocks_ibfk_2` FOREIGN KEY (`stock_id`) REFERENCES `stocks` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `virtual_cards`
--
ALTER TABLE `virtual_cards`
  ADD CONSTRAINT `virtual_cards_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `virtual_card_requests`
--
ALTER TABLE `virtual_card_requests`
  ADD CONSTRAINT `virtual_card_requests_ibfk_1` FOREIGN KEY (`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 */;
