-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 11, 2018 at 05:07 PM
-- Server version: 5.6.12-log
-- PHP Version: 5.4.16

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 utf8 */;

--
-- Database: `university`
--
CREATE DATABASE IF NOT EXISTS `university` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `university`;

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

--
-- Table structure for table `log`
--

CREATE TABLE IF NOT EXISTS `log` (
  `StudentID` char(10) NOT NULL,
  `LogID` int(11) NOT NULL AUTO_INCREMENT,
  `Status` tinyint(1) NOT NULL DEFAULT '0',
  `Logtime` datetime NOT NULL,
  PRIMARY KEY (`LogID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

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

--
-- Table structure for table `students`
--

CREATE TABLE IF NOT EXISTS `students` (
  `StudentID` char(10) NOT NULL,
  `FirstName` varchar(20) NOT NULL,
  `LastName` varchar(20) NOT NULL,
  `Gender` enum('Male','Female','Other','') NOT NULL,
  `Age` int(11) NOT NULL,
  `Address` varchar(50) NOT NULL,
  `Status` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`StudentID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `students`
--

INSERT INTO `students` (`StudentID`, `FirstName`, `LastName`, `Gender`, `Age`, `Address`, `Status`) VALUES
('0007880420', 'Jessica', 'Simpson', 'Female', 38, '6th street', 0),
('0013202094', 'John', 'Smith', 'Male', 51, '10th street', 0),
('0013205289', 'Jimmie', 'Vargas', 'Male', 18, 'Blue Bay Avenue', 0),
('0013206260', 'Randall', 'May', 'Male', 18, 'Golden Street', 0),
('0013208649', 'Edward', 'Lyons', 'Male', 17, 'Spencer Street', 0),
('0013212191', 'Oscar', 'Manning', 'Male', 18, 'Mapple Street', 0),
('0013214078', 'Zack', 'Norris', 'Male', 19, 'Blue Bay Avenue', 0),
('0013217243', 'Joann', 'Jordan', 'Female', 17, 'Spencer Street', 0),
('0013219289', 'Monica', 'Ward', 'Female', 16, 'Mapple Street', 0),
('0013270465', 'Clara', 'Webb', 'Female', 18, 'Spooner Street', 0),
('0013270500', 'Cheryl', 'Swanson', 'Female', 17, 'Wacky Street', 0),
('9', 'Jessica', 'Cole', 'Female', 17, 'Mapple Street', 2);

/*!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 */;
