-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 26, 2025 at 12:11 PM
-- Server version: 10.11.15-MariaDB
-- PHP Version: 8.4.14

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

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

--
-- Table structure for table `airtime_requests`
--

CREATE TABLE `airtime_requests` (
  `id` int(11) NOT NULL,
  `user_id` varchar(255) DEFAULT NULL,
  `network` varchar(50) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `receiving_amount` decimal(10,2) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `bank_name` varchar(100) DEFAULT NULL,
  `account_name` varchar(100) DEFAULT NULL,
  `account_number` varchar(20) DEFAULT NULL,
  `request_date` datetime DEFAULT NULL,
  `status` enum('pending','approved','rejected') DEFAULT 'pending',
  `admin_notes` text DEFAULT NULL,
  `processed_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `conversion_rates`
--

CREATE TABLE `conversion_rates` (
  `id` int(11) NOT NULL,
  `network` varchar(50) NOT NULL,
  `rate` decimal(5,2) NOT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `conversion_rates`
--

INSERT INTO `conversion_rates` (`id`, `network`, `rate`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'MTN', 80.00, 1, '2025-10-02 19:18:26', '2025-10-02 19:18:26'),
(2, 'Airtel', 80.00, 1, '2025-10-02 19:18:26', '2025-10-02 19:18:26'),
(3, 'Glo', 80.00, 1, '2025-10-02 19:18:26', '2025-10-02 19:18:26'),
(4, '9Mobile', 90.00, 1, '2025-10-02 19:18:26', '2025-10-02 19:58:36');

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

--
-- Table structure for table `network_numbers`
--

CREATE TABLE `network_numbers` (
  `id` int(11) NOT NULL,
  `network` varchar(50) NOT NULL,
  `phone_number` varchar(20) NOT NULL,
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `network_numbers`
--

INSERT INTO `network_numbers` (`id`, `network`, `phone_number`, `is_active`, `created_at`) VALUES
(1, 'MTN', '08012345678', 1, '2025-10-02 19:18:26'),
(2, 'Airtel', '08022345678', 1, '2025-10-02 19:18:26'),
(3, 'Glo', '08032345678', 1, '2025-10-02 19:18:26'),
(4, '9Mobile', '08042345676', 1, '2025-10-02 19:18:26');

--
-- Indexes for dumped tables
--

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

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

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

--
-- AUTO_INCREMENT for table `network_numbers`
--
ALTER TABLE `network_numbers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
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 */;
