-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 05, 2025 at 03:30 AM
-- Server version: 10.11.14-MariaDB
-- PHP Version: 8.4.10

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

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

--
-- Table structure for table `ration_pdf_history`
--

CREATE TABLE `ration_pdf_history` (
  `id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL COMMENT 'User phone number',
  `ration_no` varchar(50) NOT NULL,
  `card_type` varchar(10) DEFAULT NULL COMMENT 'new or old',
  `pdf_url` text DEFAULT NULL,
  `front_url` text DEFAULT NULL,
  `back_url` text DEFAULT NULL,
  `application_no` varchar(50) DEFAULT NULL,
  `status` varchar(20) DEFAULT 'Pending',
  `date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Ration PDF Download History using LOSTDATA API';

--
-- Dumping data for table `ration_pdf_history`
--

INSERT INTO `ration_pdf_history` (`id`, `username`, `ration_no`, `card_type`, `pdf_url`, `front_url`, `back_url`, `application_no`, `status`, `date`) VALUES
(1, '7631394549', '272024608298', 'old', 'https://lostdata.in/uploads/ration_pdf/Ration_272024608298_1762293138_5279.pdf', '', '', 'RAT_1762293138180', 'Success', '05/11/2025 3:21:29');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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