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

CREATE TABLE `electricity_services` (
  `id` int(11) NOT NULL,
  `provider` varchar(50) NOT NULL COMMENT 'Provider code (ikeja, eko, abuja, etc.)',
  `provider_name` varchar(100) NOT NULL COMMENT 'Full provider name',
  `type` enum('prepaid','postpaid') NOT NULL COMMENT 'Meter type',
  `min_amount` decimal(10,2) NOT NULL DEFAULT 1000.00 COMMENT 'Minimum purchase amount',
  `max_amount` decimal(10,2) NOT NULL DEFAULT 100000.00 COMMENT 'Maximum purchase amount',
  `plan_id_one` varchar(100) DEFAULT NULL COMMENT 'ELECTRICITY_1 API plan ID',
  `plan_id_two` varchar(100) DEFAULT NULL COMMENT 'ELECTRICITY_2 API plan ID',
  `plan_id_three` varchar(100) DEFAULT NULL COMMENT 'ELECTRICITY_3 API plan ID',
  `status` enum('active','inactive') DEFAULT 'active' COMMENT 'Service status',
  `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 `electricity_services`
--

INSERT INTO `electricity_services` (`id`, `provider`, `provider_name`, `type`, `min_amount`, `max_amount`, `plan_id_one`, `plan_id_two`, `plan_id_three`, `status`, `created_at`, `updated_at`) VALUES
(1, 'ikeja', 'Ikeja Electric', 'prepaid', 1000.00, 100000.00, 'ikeja-prepaid-1', 'ikeja-prepaid-2', 'ikeja-prepaid-3', 'active', '2026-01-05 13:34:50', '2026-01-05 13:34:50');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `electricity_services`
--
ALTER TABLE `electricity_services`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `unique_provider_type` (`provider`,`type`),
  ADD KEY `idx_provider` (`provider`),
  ADD KEY `idx_type` (`type`),
  ADD KEY `idx_status` (`status`);

--
-- AUTO_INCREMENT for dumped tables
--

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