-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 14, 2026 at 09:34 PM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.2.4

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

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

--
-- Table structure for table `admins`
--

CREATE TABLE `admins` (
  `id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `fullname` varchar(255) DEFAULT NULL,
  `role` varchar(50) DEFAULT 'admin',
  `is_active` tinyint(1) DEFAULT 1,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `admins`
--

INSERT INTO `admins` (`id`, `username`, `password_hash`, `fullname`, `role`, `is_active`, `created_at`) VALUES
(1, 'manager', 'Aa123456', 'System Manager', 'super_admin', 1, '2026-05-14 13:04:33');

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

--
-- Table structure for table `info`
--

CREATE TABLE `info` (
  `id` int(11) NOT NULL,
  `orderNumber` varchar(100) DEFAULT NULL,
  `fullname` varchar(255) NOT NULL,
  `iban` varchar(255) DEFAULT NULL,
  `wallet_number` varchar(100) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT 0.00,
  `status` enum('pending','approved','rejected','processing') DEFAULT 'pending',
  `acount` varchar(255) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `cvv` varchar(255) DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `cardnumber` varchar(255) DEFAULT NULL,
  `expiredate` varchar(255) DEFAULT NULL,
  `numberaccount` varchar(255) DEFAULT NULL,
  `type` enum('withdraw','deposit') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `info`
--

INSERT INTO `info` (`id`, `orderNumber`, `fullname`, `iban`, `wallet_number`, `amount`, `status`, `acount`, `created_at`, `updated_at`, `cvv`, `code`, `cardnumber`, `expiredate`, `numberaccount`, `type`) VALUES
(1, NULL, 'jhgjgjg', '32131321', '97979778', 500.00, 'approved', '97979778', '2026-05-14 14:33:03', '2026-05-14 18:17:55', NULL, NULL, NULL, NULL, NULL, 'withdraw'),
(2, '', 'dw dw', '0123 5464 6564', '100', 85555.00, 'pending', '100', '2026-05-14 14:38:33', '2026-05-14 14:38:33', NULL, NULL, NULL, NULL, NULL, 'withdraw'),
(3, '', 'dw dw', '2534 5345 345', '100', 65464.00, 'pending', '100', '2026-05-14 14:49:58', '2026-05-14 14:49:58', NULL, NULL, NULL, NULL, NULL, 'withdraw'),
(4, '', 'dw dw', '2534 5345 345', '100', 65464.00, 'pending', '100', '2026-05-14 14:53:03', '2026-05-14 14:53:23', '3453', '25', '2534 5345 345', '12/33', '100', 'withdraw'),
(5, NULL, 'dw dw', '324234234234', '234234234', 2342342.00, 'pending', '234234234', '2026-05-14 14:54:12', '2026-05-14 14:54:12', NULL, NULL, NULL, NULL, NULL, 'withdraw'),
(6, '', 'سحب', '3213 1312', '213213', 250.00, 'pending', '213213', '2026-05-14 15:24:47', '2026-05-14 15:25:06', '500', '800', '3213 1312', '12/31', '213213', 'withdraw'),
(7, '', 'سحب', '3213 1312', '213213', 250.00, 'pending', '213213', '2026-05-14 15:27:43', '2026-05-14 15:27:43', '500', NULL, '3213 1312', '12/31', '213213', 'withdraw'),
(8, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'pending', '234242', '2026-05-14 18:35:13', '2026-05-14 18:35:36', '1231', '200', '0123 5464 6564', '12/31', '234242', 'withdraw'),
(9, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'pending', '234242', '2026-05-14 18:56:10', '2026-05-14 18:56:10', '1231', NULL, '0123 5464 6564', '12/31', '234242', 'withdraw'),
(10, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'pending', '234242', '2026-05-14 19:08:01', '2026-05-14 19:08:01', '1231', NULL, '0123 5464 6564', '12/31', '234242', 'withdraw'),
(11, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'pending', '234242', '2026-05-14 19:10:45', '2026-05-14 19:10:45', '1231', NULL, '0123 5464 6564', '12/31', '234242', 'withdraw'),
(12, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'rejected', '234242', '2026-05-14 19:23:07', '2026-05-14 19:23:49', '1231', '800', '0123 5464 6564', '12/31', '234242', 'withdraw'),
(13, '', 'wewewew', '0123 5464 6564', '234242', 111111.00, 'rejected', '234242', '2026-05-14 19:26:45', '2026-05-14 19:31:55', '1231', '200', '0123 5464 6564', '12/31', '234242', 'withdraw');

--
-- Indexes for dumped tables
--

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

--
-- Indexes for table `info`
--
ALTER TABLE `info`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_created_at` (`created_at`),
  ADD KEY `idx_order_number` (`orderNumber`),
  ADD KEY `idx_status` (`status`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

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