text: -- phpMyAdmin SQL Dump
  -- version 4.4.14
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Jun 26, 2016 at 09:41 PM
  -- Server version: 5.6.26
  -- PHP Version: 5.5.28
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `hostel`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE IF NOT EXISTS `admin` (
    `id` int(11) NOT NULL,
    `username` varchar(255) NOT NULL,
    `email` varchar(255) NOT NULL,
    `password` varchar(300) NOT NULL,
    `reg_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updation_date` date NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `admin`
  --
  
  INSERT INTO `admin` (`id`, `username`, `email`, `password`, `reg_date`, `updation_date`) VALUES
  (1, 'admin', 'code.lpu1@gmail.com', 'Test@1234', '2016-04-04 20:31:45', '2016-04-17');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `adminlog`
  --
  
  CREATE TABLE IF NOT EXISTS `adminlog` (
    `id` int(11) NOT NULL,
    `adminid` int(11) NOT NULL,
    `ip` varbinary(16) NOT NULL,
    `logintime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `courses`
  --
  
  CREATE TABLE IF NOT EXISTS `courses` (
    `id` int(11) NOT NULL,
    `course_code` varchar(255) NOT NULL,
    `course_sn` varchar(255) NOT NULL,
    `course_fn` varchar(255) NOT NULL,
    `posting_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `courses`
  --
  
  INSERT INTO `courses` (`id`, `course_code`, `course_sn`, `course_fn`, `posting_date`) VALUES
  (1, 'B10992', 'B.Tech', 'Bachelor  of Technology', '2016-04-11 19:31:42'),
  (2, 'BCOM1453', 'B.Com', 'Bachelor Of commerce ', '2016-04-11 19:32:46'),
  (3, 'BSC12', 'BSC', 'Bachelor  of Science', '2016-04-11 19:33:23'),
  (4, 'BC36356', 'BCA', 'Bachelor Of Computer Application', '2016-04-11 19:34:18'),
  (5, 'MCA565', 'MCA', 'Master of Computer Application', '2016-04-11 19:34:40'),
  (6, 'MBA75', 'MBA', 'Master of Business Administration', '2016-04-11 19:34:59'),
  (7, 'BE765', 'BE', 'Bachelor of Engineering', '2016-04-11 19:35:19');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `registration`
  --
  
  CREATE TABLE IF NOT EXISTS `registration` (
    `id` int(11) NOT NULL,
    `roomno` int(11) NOT NULL,
    `seater` int(11) NOT NULL,
    `feespm` int(11) NOT NULL,
    `foodstatus` int(11) NOT NULL,
    `stayfrom` date NOT NULL,
    `duration` int(11) NOT NULL,
    `course` varchar(500) NOT NULL,
    `regno` int(11) NOT NULL,
    `firstName` varchar(500) NOT NULL,
    `middleName` varchar(500) NOT NULL,
    `lastName` varchar(500) NOT NULL,
    `gender` varchar(250) NOT NULL,
    `contactno` bigint(11) NOT NULL,
    `emailid` varchar(500) NOT NULL,
    `egycontactno` bigint(11) NOT NULL,
    `guardianName` varchar(500) NOT NULL,
    `guardianRelation` varchar(500) NOT NULL,
    `guardianContactno` bigint(11) NOT NULL,
    `corresAddress` varchar(500) NOT NULL,
    `corresCIty` varchar(500) NOT NULL,
    `corresState` varchar(500) NOT NULL,
    `corresPincode` int(11) NOT NULL,
    `pmntAddress` varchar(500) NOT NULL,
    `pmntCity` varchar(500) NOT NULL,
    `pmnatetState` varchar(500) NOT NULL,
    `pmntPincode` int(11) NOT NULL,
    `postingDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updationDate` varchar(500) NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `registration`
  --
  
  INSERT INTO `registration` (`id`, `roomno`, `seater`, `feespm`, `foodstatus`, `stayfrom`, `duration`, `course`, `regno`, `firstName`, `middleName`, `lastName`, `gender`, `contactno`, `emailid`, `egycontactno`, `guardianName`, `guardianRelation`, `guardianContactno`, `corresAddress`, `corresCIty`, `corresState`, `corresPincode`, `pmntAddress`, `pmntCity`, `pmnatetState`, `pmntPincode`, `postingDate`, `updationDate`) VALUES
  (6, 100, 5, 8000, 0, '2016-04-22', 5, 'Bachelor  of Technology', 10806121, 'code', '', 'projects', 'male', 8285703354, 'code.lpu1@gmail.com', 0, 'XYZ', 'Mother', 8285703354, 'H n0 18/1 Bihari Puram Phase-1 Melrose Bye Pass', 'Aligarh', 'EPE', 202001, 'H n0 18/1 Bihari Puram Phase-1 Melrose Bye Pass', 'Aligarh', 'EPE', 202001, '2016-04-16 08:24:09', ''),
  (7, 100, 5, 8000, 1, '2016-06-17', 4, 'Bachelor of Engineering', 108061211, 'code', 'test', 'projects', 'male', 8467067344, 'test@gmail.com', 8285703354, 'test', 'test', 9999857868, 'H no- 18/1 Bihari puram phase-1 melrose bye pass', 'Aligarh', 'EPE', 202001, 'H no- 18/1 Bihari puram phase-1 melrose bye pass', 'Aligarh', 'EPE', 202001, '2016-06-23 11:54:35', ''),
  (8, 112, 3, 4000, 0, '2016-06-27', 5, 'Bachelor  of Science', 102355, 'Harry', 'projects', 'Singh', 'male', 6786786786, 'Harry@gmail.com', 789632587, 'demo', 'demo', 1234567890, 'New Delhi', 'Delhi', 'Delhi (NCT)', 110001, 'New Delhi', 'Delhi', 'Delhi (NCT)', 110001, '2016-06-26 16:31:08', ''),
  (9, 132, 5, 2000, 1, '2016-06-28', 6, 'Bachelor of Engineering', 586952, 'Benjamin', '', 'projects', 'male', 8596185625, 'Benjamin@gmail.com', 8285703354, 'demo', 'demo', 8285703354, 'H no- 18/1 Bihari puram phase-1 melrose bye pass', 'Aligarh', 'EPE', 202001, 'H no- 18/1 Bihari puram phase-1 melrose bye pass', 'Aligarh', 'EPE', 202001, '2016-06-26 16:40:07', '');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `rooms`
  --
  
  CREATE TABLE IF NOT EXISTS `rooms` (
    `id` int(11) NOT NULL,
    `seater` int(11) NOT NULL,
    `room_no` int(11) NOT NULL,
    `fees` int(11) NOT NULL,
    `posting_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `rooms`
  --
  
  INSERT INTO `rooms` (`id`, `seater`, `room_no`, `fees`, `posting_date`) VALUES
  (1, 5, 100, 8000, '2016-04-11 22:45:43'),
  (2, 2, 201, 6000, '2016-04-12 01:30:47'),
  (3, 2, 200, 6000, '2016-04-12 01:30:58'),
  (4, 3, 112, 4000, '2016-04-12 01:31:07'),
  (5, 5, 132, 2000, '2016-04-12 01:31:15');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `states`
  --
  
  CREATE TABLE IF NOT EXISTS `states` (
    `id` int(11) NOT NULL,
    `State` varchar(150) DEFAULT NULL
  ) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `states`
  --
  
  INSERT INTO `states` (`id`, `State`) VALUES
  (1, 'Andaman and Nicobar Island (UT)'),
  (2, 'Andhra Pradesh'),
  (3, 'Arunachal Pradesh'),
  (4, 'Assam'),
  (5, 'Bihar'),
  (6, 'Chandigarh (UT)'),
  (7, 'Chhattisgarh'),
  (8, 'Dadra and Nagar Haveli (UT)'),
  (9, 'Daman and Diu (UT)'),
  (10, 'Delhi (NCT)'),
  (11, 'Goa'),
  (12, 'Gujarat'),
  (13, 'Haryana'),
  (14, 'Himachal Pradesh'),
  (15, 'Jammu and Kashmir'),
  (16, 'Jharkhand'),
  (17, 'Karnataka'),
  (18, 'Kerala'),
  (19, 'Lakshadweep (UT)'),
  (20, 'Madhya Pradesh'),
  (21, 'Maharashtra'),
  (22, 'Manipur'),
  (23, 'Meghalaya'),
  (24, 'Mizoram'),
  (25, 'Nagaland'),
  (26, 'Odisha'),
  (27, 'Puducherry (UT)'),
  (28, 'Punjab'),
  (29, 'Rajastha'),
  (30, 'Sikkim'),
  (31, 'Tamil Nadu'),
  (32, 'Telangana'),
  (33, 'Tripura'),
  (34, 'Uttarakhand'),
  (35, 'EPE'),
  (36, 'West Bengal');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `userlog`
  --
  
  CREATE TABLE IF NOT EXISTS `userlog` (
    `id` int(11) NOT NULL,
    `userId` int(11) NOT NULL,
    `userEmail` varchar(255) NOT NULL,
    `userIp` varbinary(16) NOT NULL,
    `city` varchar(255) NOT NULL,
    `country` varchar(255) NOT NULL,
    `loginTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `userlog`
  --
  
  INSERT INTO `userlog` (`id`, `userId`, `userEmail`, `userIp`, `city`, `country`, `loginTime`) VALUES
  (1, 10, 'test@gmail.com', '', '', '', '2016-06-22 06:16:42'),
  (2, 10, 'test@gmail.com', '', '', '', '2016-06-24 11:20:28'),
  (4, 10, 'test@gmail.com', 0x3a3a31, '', '', '2016-06-24 11:22:47'),
  (5, 10, 'test@gmail.com', 0x3a3a31, '', '', '2016-06-26 15:37:40'),
  (6, 20, 'Benjamin@gmail.com', 0x3a3a31, '', '', '2016-06-26 16:40:57');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `userregistration`
  --
  
  CREATE TABLE IF NOT EXISTS `userregistration` (
    `id` int(11) NOT NULL,
    `regNo` varchar(255) NOT NULL,
    `firstName` varchar(255) NOT NULL,
    `middleName` varchar(255) NOT NULL,
    `lastName` varchar(255) NOT NULL,
    `gender` varchar(255) NOT NULL,
    `contactNo` bigint(20) NOT NULL,
    `email` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `regDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `updationDate` varchar(45) NOT NULL,
    `passUdateDate` varchar(45) NOT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `userregistration`
  --
  
  INSERT INTO `userregistration` (`id`, `regNo`, `firstName`, `middleName`, `lastName`, `gender`, `contactNo`, `email`, `password`, `regDate`, `updationDate`, `passUdateDate`) VALUES
  (10, '108061211', 'code', 'test', 'projects', 'male', 8467067344, 'test@gmail.com', 'Test@123', '2016-06-22 04:21:33', '23-06-2016 11:04:15', '22-06-2016 05:16:49'),
  (19, '102355', 'Harry', 'projects', 'Singh', 'male', 6786786786, 'Harry@gmail.com', '6786786786', '2016-06-26 16:33:36', '', ''),
  (20, '586952', 'Benjamin', '', 'projects', 'male', 8596185625, 'Benjamin@gmail.com', '8596185625', '2016-06-26 16:40:07', '', '');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `courses`
  --
  ALTER TABLE `courses`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `registration`
  --
  ALTER TABLE `registration`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `rooms`
  --
  ALTER TABLE `rooms`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `states`
  --
  ALTER TABLE `states`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `userlog`
  --
  ALTER TABLE `userlog`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `userregistration`
  --
  ALTER TABLE `userregistration`
    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 `courses`
  --
  ALTER TABLE `courses`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
  --
  -- AUTO_INCREMENT for table `registration`
  --
  ALTER TABLE `registration`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
  --
  -- AUTO_INCREMENT for table `rooms`
  --
  ALTER TABLE `rooms`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
  --
  -- AUTO_INCREMENT for table `states`
  --
  ALTER TABLE `states`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=37;
  --
  -- AUTO_INCREMENT for table `userlog`
  --
  ALTER TABLE `userlog`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
  --
  -- AUTO_INCREMENT for table `userregistration`
  --
  ALTER TABLE `userregistration`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21;
  /*!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 */;
  