-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 19, 2025 at 06:18 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
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: `getpassdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`updation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`, `updation_date`) VALUES
(1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '2025-06-06 07:32:55');
-- --------------------------------------------------------
--
-- Table structure for table `passes`
--
CREATE TABLE `passes` (
`id` int(11) NOT NULL,
`pass_number` varchar(255) DEFAULT NULL,
`full_name` varchar(255) DEFAULT NULL,
`contact_number` bigint(20) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`identity_type` varchar(200) DEFAULT NULL,
`identity_card_no` varchar(255) DEFAULT NULL,
`category` varchar(255) DEFAULT NULL,
`from_date` date DEFAULT NULL,
`to_date` date DEFAULT NULL,
`reason` mediumtext,
`pass_creation_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`status` varchar(100) DEFAULT 'Pending'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `passes`
--
INSERT INTO `passes` (`id`, `pass_number`, `full_name`, `contact_number`, `email`, `identity_type`, `identity_card_no`, `category`, `from_date`, `to_date`, `reason`, `pass_creation_date`, `status`) VALUES
(1, '682109789', 'ram kumar', 8787451200, 'ramk@gmail.com', 'Adhar Card', '53205452885', 'Visitor', '2025-06-06', '2025-06-13', 'visitor', '2025-06-06 07:36:42', 'Pending'),
(2, '788646440', 'Ravi', 9598780012, 'ravi@gmail.com', 'Adhar Card', '530259387798', 'Visitor', '2025-06-19', '2025-06-19', 'meet to teacher', '2025-06-19 04:15:08', 'Pending');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `passes`
--
ALTER TABLE `passes`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `passes`
--
ALTER TABLE `passes`
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 */;