text: -- phpMyAdmin SQL Dump
  -- version 4.5.1
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Apr 22, 2018 at 07:26 PM
  -- Server version: 10.1.19-MariaDB
  -- PHP Version: 7.0.13
  
  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: `deadlockquiz`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `question`
  --
  
  CREATE TABLE `question` (
    `QuestionID` int(11) NOT NULL,
    `Questionaire` varchar(1000) NOT NULL,
    `OptionA` varchar(1000) NOT NULL,
    `OptionB` varchar(1000) NOT NULL,
    `OptionC` varchar(1000) NOT NULL,
    `OptionD` varchar(1000) NOT NULL,
    `QuestionAnswerID` int(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `questionanswer`
  --
  
  CREATE TABLE `questionanswer` (
    `QuestionAnswerID` int(11) NOT NULL,
    `QuestionAnswer` varchar(1000) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `questionanswer`
  --
  
  INSERT INTO `questionanswer` (`QuestionAnswerID`, `QuestionAnswer`) VALUES
  (1, 'A'),
  (2, 'B'),
  (3, 'C'),
  (4, 'D');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `result`
  --
  
  CREATE TABLE `result` (
    `ResultID` int(11) NOT NULL,
    `UserID` int(11) NOT NULL,
    `Points` varchar(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `result`
  --
  
  INSERT INTO `result` (`ResultID`, `UserID`, `Points`) VALUES
  (43, 0, '1');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `section`
  --
  
  CREATE TABLE `section` (
    `SectionID` int(11) NOT NULL,
    `Section` varchar(200) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `section`
  --
  
  INSERT INTO `section` (`SectionID`, `Section`) VALUES
  (1, 'CS-3A'),
  (2, 'CS-3B'),
  (3, 'CS-3C');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `UserID` int(11) NOT NULL,
    `LastName` varchar(1000) NOT NULL,
    `FirstName` varchar(1000) NOT NULL,
    `UserName` varchar(100) NOT NULL,
    `Password` varchar(100) NOT NULL,
    `SectionID` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `useranswer`
  --
  
  CREATE TABLE `useranswer` (
    `UserAnswerID` int(11) NOT NULL,
    `QuestionID` int(11) NOT NULL,
    `Answer` varchar(10) NOT NULL,
    `UserID` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `question`
  --
  ALTER TABLE `question`
    ADD PRIMARY KEY (`QuestionID`);
  
  --
  -- Indexes for table `questionanswer`
  --
  ALTER TABLE `questionanswer`
    ADD PRIMARY KEY (`QuestionAnswerID`);
  
  --
  -- Indexes for table `result`
  --
  ALTER TABLE `result`
    ADD PRIMARY KEY (`ResultID`);
  
  --
  -- Indexes for table `section`
  --
  ALTER TABLE `section`
    ADD PRIMARY KEY (`SectionID`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`UserID`);
  
  --
  -- Indexes for table `useranswer`
  --
  ALTER TABLE `useranswer`
    ADD PRIMARY KEY (`UserAnswerID`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `question`
  --
  ALTER TABLE `question`
    MODIFY `QuestionID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
  --
  -- AUTO_INCREMENT for table `questionanswer`
  --
  ALTER TABLE `questionanswer`
    MODIFY `QuestionAnswerID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  --
  -- AUTO_INCREMENT for table `result`
  --
  ALTER TABLE `result`
    MODIFY `ResultID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
  --
  -- AUTO_INCREMENT for table `section`
  --
  ALTER TABLE `section`
    MODIFY `SectionID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `UserID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
  --
  -- AUTO_INCREMENT for table `useranswer`
  --
  ALTER TABLE `useranswer`
    MODIFY `UserAnswerID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;
  /*!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 */;
  