-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 26, 2025 at 10:37 AM
-- Server version: 10.11.14-MariaDB-cll-lve
-- PHP Version: 8.4.14

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

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

--
-- Table structure for table `giftcard_trades`
--

CREATE TABLE `giftcard_trades` (
  `id` int(11) NOT NULL,
  `unique_id` varchar(255) NOT NULL,
  `giftcard_id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `naira_value` decimal(10,2) NOT NULL,
  `card_image` varchar(255) NOT NULL,
  `status` enum('pending','approved','rejected') NOT NULL DEFAULT 'pending',
  `admin_notes` text DEFAULT NULL,
  `date_submitted` datetime NOT NULL DEFAULT current_timestamp(),
  `date_processed` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `giftcard_trades`
--

INSERT INTO `giftcard_trades` (`id`, `unique_id`, `giftcard_id`, `amount`, `naira_value`, `card_image`, `status`, `admin_notes`, `date_submitted`, `date_processed`) VALUES
(13, 'USER123', 3, 10.00, 11500.00, 'googleplay_card2.png', 'rejected', 'Fake card', '2025-07-21 01:29:58', '2023-10-23 13:15:00'),
(15, 'USER789', 1, 200.00, 240000.00, 'amazon_card3.png', 'approved', 'Large amount verified', '2025-07-21 01:29:58', '2023-10-24 15:00:00'),
(16, 'GI29BJP6NQ', 1, 25.00, 30000.00, 'giftcard_692116fe6f4be.jpg', 'pending', NULL, '2025-11-22 02:50:54', NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `giftcard_trades`
--
ALTER TABLE `giftcard_trades`
  ADD PRIMARY KEY (`id`),
  ADD KEY `unique_id` (`unique_id`),
  ADD KEY `giftcard_id` (`giftcard_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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