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

START TRANSACTION;



--
-- Database: `cidapayc_solution`
--

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

--
-- Table structure for table `admin_users`
--

CREATE TABLE `admin_users` (
  `id` int(11) NOT NULL,
  `admin_id` varchar(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `role` enum('super_admin','admin','support') NOT NULL DEFAULT 'admin',
  `permissions` text DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL 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_general_ci;

--
-- Dumping data for table `admin_users`
--

INSERT INTO `admin_users` (`id`, `admin_id`, `username`, `email`, `password`, `role`, `permissions`, `last_login`, `status`, `created_at`, `updated_at`) VALUES
(4, '', 'radnidev', 'radnidev@cidapay.com', '$2y$10$tKdqaIRViIwMmWPBRseurOdgJMFJQMuDcTFCJgekUpLM.WHJ9xPr.', 'super_admin', '[\"api_management\",\"utility_management\",\"card_management\",\"savings_management\",\"discount_management\",\"merchant_management\",\"notification_management\",\"user_management\",\"site_management\",\"gamification_management\"]', '2025-09-08 01:38:38', 'active', '2025-09-08 01:38:38', '2025-09-08 02:04:49');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `admin_users`
--
ALTER TABLE `admin_users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `username` (`username`),
  ADD UNIQUE KEY `email` (`email`);

--
-- AUTO_INCREMENT for dumped tables
--

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

