text: -- phpMyAdmin SQL Dump
  -- version 4.8.3
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 19, 2018 at 02:03 PM
  -- Server version: 10.1.36-MariaDB
  -- PHP Version: 7.2.10
  
  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: `onlinetuition`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `username` varchar(30) NOT NULL,
    `password` varchar(30) NOT NULL,
    `firstname` varchar(30) NOT NULL,
    `lastname` varchar(30) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `admin`
  --
  
  INSERT INTO `admin` (`username`, `password`, `firstname`, `lastname`) VALUES
  ('tac', '1234', 't', 'c');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `currenttuitions`
  --
  
  CREATE TABLE `currenttuitions` (
    `id` int(11) NOT NULL,
    `student` varchar(30) NOT NULL,
    `teacher` varchar(30) NOT NULL,
    `teacherphone` varchar(15) NOT NULL,
    `studentphone` varchar(15) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `messages`
  --
  
  CREATE TABLE `messages` (
    `id` int(11) NOT NULL,
    `message_to` varchar(30) NOT NULL,
    `message_from` varchar(30) NOT NULL,
    `message` varchar(500) NOT NULL,
    `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `reviews`
  --
  
  CREATE TABLE `reviews` (
    `id` int(11) NOT NULL,
    `student` varchar(30) NOT NULL,
    `teacher` varchar(30) NOT NULL,
    `star` int(10) NOT NULL,
    `review` varchar(300) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `student`
  --
  
  CREATE TABLE `student` (
    `username` varchar(30) NOT NULL,
    `password` varchar(30) NOT NULL,
    `firstname` varchar(30) NOT NULL,
    `lastname` varchar(30) NOT NULL,
    `phone` varchar(15) NOT NULL,
    `region` varchar(30) NOT NULL,
    `address` varchar(100) NOT NULL,
    `curriculum` varchar(30) NOT NULL,
    `class` varchar(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `teacher`
  --
  
  CREATE TABLE `teacher` (
    `username` varchar(30) NOT NULL,
    `password` varchar(30) NOT NULL,
    `firstname` varchar(30) NOT NULL,
    `lastname` varchar(30) NOT NULL,
    `phone` varchar(15) NOT NULL,
    `institution` varchar(10) NOT NULL,
    `address` varchar(50) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tuitionoffers`
  --
  
  CREATE TABLE `tuitionoffers` (
    `id` int(11) NOT NULL,
    `username` varchar(30) NOT NULL,
    `firstname` varchar(30) NOT NULL,
    `lastname` varchar(30) NOT NULL,
    `subjects` varchar(150) NOT NULL,
    `days` int(10) NOT NULL,
    `prefferedinstitution` varchar(30) NOT NULL,
    `fee` int(10) NOT NULL,
    `address` varchar(100) NOT NULL,
    `class` varchar(10) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`username`);
  
  --
  -- Indexes for table `currenttuitions`
  --
  ALTER TABLE `currenttuitions`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `messages`
  --
  ALTER TABLE `messages`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `reviews`
  --
  ALTER TABLE `reviews`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `student`
  --
  ALTER TABLE `student`
    ADD PRIMARY KEY (`username`);
  
  --
  -- Indexes for table `teacher`
  --
  ALTER TABLE `teacher`
    ADD PRIMARY KEY (`username`);
  
  --
  -- Indexes for table `tuitionoffers`
  --
  ALTER TABLE `tuitionoffers`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `currenttuitions`
  --
  ALTER TABLE `currenttuitions`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
  
  --
  -- AUTO_INCREMENT for table `messages`
  --
  ALTER TABLE `messages`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
  
  --
  -- AUTO_INCREMENT for table `reviews`
  --
  ALTER TABLE `reviews`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `tuitionoffers`
  --
  ALTER TABLE `tuitionoffers`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
  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 */;
  