-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 05, 2025 at 02:27 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 `challan_check_history`
--

CREATE TABLE `challan_check_history` (
  `id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL COMMENT 'User phone number',
  `vehicle_number` varchar(50) NOT NULL,
  `vehicle_details` text DEFAULT NULL COMMENT 'JSON data of vehicle details',
  `challans_data` text DEFAULT NULL COMMENT 'JSON data of challans',
  `total_challans` int(11) DEFAULT 0,
  `status` varchar(20) DEFAULT 'Pending',
  `date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Challan Check History using LOSTDATA API';

--
-- Dumping data for table `challan_check_history`
--

INSERT INTO `challan_check_history` (`id`, `username`, `vehicle_number`, `vehicle_details`, `challans_data`, `total_challans`, `status`, `date`) VALUES
(1, '7631394549', 'UP32QX5589', '{\"registration_number\":\"UP32QX5589\",\"model_name\":\"FRONX DELTA CNG\",\"vehicle_type_v2\":\"PRIVATE_CAR\",\"vehicle_name\":\"Maruti\",\"vehicle_model\":\"Fronx\",\"fuel_type\":\"PETROL/CNG\",\"name\":\"R*J*V*K*M*R*M*S*R*\"}', '[{\"owner_name\":\"R***V K***R M****A\",\"location\":\"UP\",\"challan_search_source\":\"PARIVAHAN\",\"date\":\"2025-10-29\",\"penalty\":\"violation of parking rules. ( MV act 1988 S 122,126 R/W 177 )\",\"challan_number\":\"UP277791251029161231\",\"amount\":\"500.0\",\"challan_status\":\"UNPAID\"}]', 1, 'Success', '05/11/2025 2:22:56'),
(2, '7631394549', 'UP32QX5589', '{\"registration_number\":\"UP32QX5589\",\"model_name\":\"FRONX DELTA CNG\",\"vehicle_type_v2\":\"PRIVATE_CAR\",\"vehicle_name\":\"Maruti\",\"vehicle_model\":\"Fronx\",\"fuel_type\":\"PETROL/CNG\",\"name\":\"R*J*V*K*M*R*M*S*R*\"}', '[{\"owner_name\":\"R***V K***R M****A\",\"location\":\"UP\",\"challan_search_source\":\"PARIVAHAN\",\"date\":\"2025-10-29\",\"penalty\":\"violation of parking rules. ( MV act 1988 S 122,126 R/W 177 )\",\"challan_number\":\"UP277791251029161231\",\"amount\":\"500.0\",\"challan_status\":\"UNPAID\"}]', 1, 'Success', '05/11/2025 2:24:31');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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