text: -- phpMyAdmin SQL Dump
  -- version 4.8.3
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Oct 23, 2018 at 08:16 PM
  -- Server version: 10.1.36-MariaDB
  -- PHP Version: 7.2.11
  
  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: `project`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `sections`
  --
  
  CREATE TABLE `sections` (
    `id` int(11) NOT NULL,
    `sectionName` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `sections`
  --
  
  INSERT INTO `sections` (`id`, `sectionName`) VALUES
  (2, 'Block A');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `students`
  --
  
  CREATE TABLE `students` (
    `id` int(11) NOT NULL,
    `studentId` int(11) NOT NULL,
    `firstName` varchar(255) NOT NULL,
    `lastName` varchar(255) NOT NULL,
    `contactNo` varchar(50) NOT NULL,
    `address` varchar(255) NOT NULL,
    `sectionId` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `students`
  --
  
  INSERT INTO `students` (`id`, `studentId`, `firstName`, `lastName`, `contactNo`, `address`, `sectionId`) VALUES
  (9, 18130004, 'Crush', 'Nako', '09491919130', 'Sunrise Village Pardo', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `student_subjects`
  --
  
  CREATE TABLE `student_subjects` (
    `id` int(11) NOT NULL,
    `studentId` int(11) NOT NULL,
    `subjectId` int(11) NOT NULL,
    `grade` varchar(100) NOT NULL,
    `remarks` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `student_subjects`
  --
  
  INSERT INTO `student_subjects` (`id`, `studentId`, `subjectId`, `grade`, `remarks`) VALUES
  (1, 9, 4, '5.0', 'Failed'),
  (2, 9, 5, '3.0', 'Passed');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `subjects`
  --
  
  CREATE TABLE `subjects` (
    `id` int(11) NOT NULL,
    `edpCode` varchar(100) NOT NULL,
    `subjectName` varchar(150) NOT NULL,
    `maxCapacity` varchar(50) NOT NULL,
    `units` varchar(20) NOT NULL,
    `status` int(11) NOT NULL DEFAULT '1'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `subjects`
  --
  
  INSERT INTO `subjects` (`id`, `edpCode`, `subjectName`, `maxCapacity`, `units`, `status`) VALUES
  (4, '14288484', 'English', '50', '3.0', 1),
  (5, '14288482', 'Math', '50', '3.0', 1);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `teachers`
  --
  
  CREATE TABLE `teachers` (
    `id` int(11) NOT NULL,
    `firstName` varchar(150) NOT NULL,
    `lastName` varchar(150) NOT NULL,
    `contactNo` varchar(150) NOT NULL,
    `address` varchar(255) NOT NULL,
    `sectionId` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `teachers`
  --
  
  INSERT INTO `teachers` (`id`, `firstName`, `lastName`, `contactNo`, `address`, `sectionId`) VALUES
  (2, 'Ruvejen', 'Enot', '14277474', 'Sunrise Village Pardo', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `teacher_subjects`
  --
  
  CREATE TABLE `teacher_subjects` (
    `id` int(11) NOT NULL,
    `teacherId` int(11) NOT NULL,
    `subjectId` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `teacher_subjects`
  --
  
  INSERT INTO `teacher_subjects` (`id`, `teacherId`, `subjectId`) VALUES
  (1, 2, 5),
  (2, 2, 4);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `id` int(11) NOT NULL,
    `avatar` varchar(255) NOT NULL,
    `username` varchar(255) NOT NULL,
    `password` varchar(255) NOT NULL,
    `status` int(11) NOT NULL DEFAULT '1',
    `logged_in` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `avatar`, `username`, `password`, `status`, `logged_in`) VALUES
  (3, 'gwapa1.jpg', '18100001', '18100001', 1, '2018-10-23 14:06:05'),
  (4, 'gwapa2.jpg', '18100001', '18100001', 1, '2018-10-23 14:06:05'),
  (5, 'gwapa3.jpg', '18100001', '18100001', 1, '2018-10-23 14:06:05'),
  (6, '', 'admin', '$2y$10$0ghBJcF9kcLcC3SkRpY3F.88RJgqjK.0HpgEaLGWOVCUJ4Q7uPwCm', 1, '2018-10-23 17:30:06'),
  (7, 'gwapa4.jpg', '18100001', '18100001', 1, '2018-10-23 14:06:05'),
  (8, 'gwapa12.jpg', '18100002', '18100002', 1, '2018-10-23 14:06:05'),
  (9, 'gwapa14.jpg', '18100003', '$2y$10$P/gKBW4nr9QAfOUDmmu3Hum/3KtzVAnKsAHwa5OYVpFLcNCFof2mW', 1, '2018-10-23 14:06:05'),
  (10, 'ruve.jpg', '18130004', '$2y$10$OkXR5CUM8KmLDrJkJPKALuI7PwyKVNmNpNUSk/e8z/29J/wTB5tvi', 1, '2018-10-23 14:13:44'),
  (12, 'Untitled-5.jpg', 'Ruvejen', '$2y$10$JoOY6dx6neONKG.nRktLl.rsyeAzypY5Ea01f8qIYHDT7/1MryluC', 1, '2018-10-23 14:06:05');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_student`
  --
  
  CREATE TABLE `user_student` (
    `id` int(11) NOT NULL,
    `studentId` int(11) NOT NULL,
    `userId` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user_student`
  --
  
  INSERT INTO `user_student` (`id`, `studentId`, `userId`) VALUES
  (3, 3, 3),
  (4, 4, 4),
  (5, 5, 5),
  (6, 6, 7),
  (7, 7, 8),
  (8, 8, 9),
  (9, 9, 10);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_teacher`
  --
  
  CREATE TABLE `user_teacher` (
    `id` int(11) NOT NULL,
    `teacherId` int(11) NOT NULL,
    `userId` int(11) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user_teacher`
  --
  
  INSERT INTO `user_teacher` (`id`, `teacherId`, `userId`) VALUES
  (1, 1, 11),
  (2, 2, 12);
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `sections`
  --
  ALTER TABLE `sections`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `students`
  --
  ALTER TABLE `students`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `student_subjects`
  --
  ALTER TABLE `student_subjects`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `subjects`
  --
  ALTER TABLE `subjects`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `teachers`
  --
  ALTER TABLE `teachers`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `teacher_subjects`
  --
  ALTER TABLE `teacher_subjects`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_student`
  --
  ALTER TABLE `user_student`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `user_teacher`
  --
  ALTER TABLE `user_teacher`
    ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `sections`
  --
  ALTER TABLE `sections`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `students`
  --
  ALTER TABLE `students`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `student_subjects`
  --
  ALTER TABLE `student_subjects`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `subjects`
  --
  ALTER TABLE `subjects`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `teachers`
  --
  ALTER TABLE `teachers`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `teacher_subjects`
  --
  ALTER TABLE `teacher_subjects`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
  
  --
  -- AUTO_INCREMENT for table `user_student`
  --
  ALTER TABLE `user_student`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `user_teacher`
  --
  ALTER TABLE `user_teacher`
    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 */;
  