-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `bectelec_fluterupdate`
--

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

--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `id` int(11) NOT NULL,
  `admin_id` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `lastname` varchar(100) NOT NULL,
  `email` varchar(255) NOT NULL,
  `admin_role` enum('super_admin','admin','moderator') DEFAULT 'admin',
  `admin_permission` text DEFAULT NULL,
  `status` enum('active','inactive','suspended') 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 `admin`
--

INSERT INTO `admin` (`id`, `admin_id`, `password`, `firstname`, `lastname`, `email`, `admin_role`, `admin_permission`, `status`, `created_at`, `updated_at`) VALUES
(1, 'folajitoni@gmail.com', '$2y$12$c3I8PbEXKTdqByKc7hiS0.5th6xJsTwkQVj9if0ibWnVtyat0s1iC', 'Afolakemi', 'Ajitoni', 'folajitoni@gmail.com', 'super_admin', 'all', 'active', '2026-01-30 11:36:43', '2026-01-30 11:38:43');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `admin_id_unique` (`admin_id`),
  ADD UNIQUE KEY `email_unique` (`email`),
  ADD KEY `idx_admin_status` (`status`),
  ADD KEY `idx_admin_role` (`admin_role`);

--
-- AUTO_INCREMENT for dumped tables
--

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

