-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 14, 2026 at 01:22 PM
-- Server version: 10.6.23-MariaDB-cll-lve
-- PHP Version: 8.4.16

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

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

--
-- Table structure for table `data_services`
--

CREATE TABLE `data_services` (
  `id` int(11) NOT NULL,
  `plan_id_one` varchar(255) DEFAULT NULL COMMENT 'ID from API 1',
  `plan_id_two` varchar(255) DEFAULT NULL COMMENT 'ID from API 2',
  `plan_id_three` varchar(255) DEFAULT NULL COMMENT 'ID from API 3',
  `api_id` varchar(255) NOT NULL COMMENT 'ID for other APIs to connect - auto-generated',
  `plan` varchar(255) NOT NULL COMMENT 'e.g., 500MB, 1GB',
  `type` varchar(255) NOT NULL COMMENT 'e.g., sme, corporate, gifting',
  `network` enum('mtn','airtel','glo','9mobile') NOT NULL,
  `amount` decimal(10,2) NOT NULL COMMENT 'Price for users to buy',
  `cost_price` decimal(10,2) NOT NULL COMMENT 'Amount I bought it',
  `vendor_price` decimal(10,2) NOT NULL COMMENT 'Amount vendor account will be charged',
  `validity` varchar(255) NOT NULL COMMENT 'e.g., 1 week, 2 weeks, 1 month',
  `status` enum('active','inactive') DEFAULT 'active',
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `data_services`
--

INSERT INTO `data_services` (`id`, `plan_id_one`, `plan_id_two`, `plan_id_three`, `api_id`, `plan`, `type`, `network`, `amount`, `cost_price`, `vendor_price`, `validity`, `status`, `created_at`, `updated_at`) VALUES
(794, '339', NULL, NULL, '2gb_sme_30days_99546', '2 GB', 'SME', 'mtn', 1790.00, 1760.00, 1770.00, '30 days', 'active', '2025-12-19 07:42:42', '2025-12-19 07:42:42');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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