-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 16, 2026 at 12:21 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 `cable_services`
--

CREATE TABLE `cable_services` (
  `id` int(11) NOT NULL,
  `provider` varchar(50) NOT NULL COMMENT 'Provider code (dstv, gotv, startime)',
  `provider_name` varchar(100) NOT NULL COMMENT 'Full provider name',
  `name` varchar(200) NOT NULL COMMENT 'Plan name',
  `validity` varchar(50) DEFAULT '1 Month' COMMENT 'Plan validity',
  `amount` decimal(10,2) NOT NULL COMMENT 'Plan amount + 200',
  `plan_id_one` varchar(100) DEFAULT NULL COMMENT 'CABLE_1 API plan ID',
  `plan_id_two` varchar(100) DEFAULT NULL COMMENT 'CABLE_2 API plan ID',
  `plan_id_three` varchar(100) DEFAULT NULL COMMENT 'CABLE_3 API plan ID',
  `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 `cable_services`
--

INSERT INTO `cable_services` (`id`, `provider`, `provider_name`, `name`, `validity`, `amount`, `plan_id_one`, `plan_id_two`, `plan_id_three`, `status`, `created_at`, `updated_at`) VALUES
(1, 'dstv', 'DStv', 'DStv Padi', '1 Month', 4600.00, '20', '74', '33', 'active', '2026-01-06 13:06:41', '2026-01-06 13:06:41');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `cable_services`
--
ALTER TABLE `cable_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `provider` (`provider`),
  ADD KEY `status` (`status`);

--
-- AUTO_INCREMENT for dumped tables
--

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