text: -- phpMyAdmin SQL Dump
  -- version 5.0.4
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1
  -- Generation Time: Dec 24, 2020 at 05:21 AM
  -- Server version: 10.4.17-MariaDB
  -- PHP Version: 8.0.0
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  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: `std_mgmt`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_roles`
  --
  
  CREATE TABLE `tbl_roles` (
    `role_id` int(11) NOT NULL,
    `rolename` varchar(100) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_roles`
  --
  
  INSERT INTO `tbl_roles` (`role_id`, `rolename`) VALUES
  (1, 'Admin'),
  (2, 'Co Admin');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_school`
  --
  
  CREATE TABLE `tbl_school` (
    `school_id` int(11) NOT NULL,
    `schoolname` varchar(200) NOT NULL,
    `branch` varchar(200) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_school`
  --
  
  INSERT INTO `tbl_school` (`school_id`, `schoolname`, `branch`) VALUES
  (1, 'Blue Bird School', 'Sylhet'),
  (2, 'Sunshine School', 'Sylhet'),
  (3, 'City School', 'Sylhet'),
  (4, 'Commerce School', 'Sylhet');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_student`
  --
  
  CREATE TABLE `tbl_student` (
    `id` int(11) NOT NULL,
    `studentname` varchar(200) NOT NULL,
    `school_id` int(11) NOT NULL,
    `gender` varchar(200) NOT NULL,
    `email` varchar(200) NOT NULL,
    `course` varchar(200) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_student`
  --
  
  INSERT INTO `tbl_student` (`id`, `studentname`, `school_id`, `gender`, `email`, `course`) VALUES
  (1, 'Suhan Ahmed', 1, 'Male', 'Suhan@gmail.com', 'Day'),
  (2, 'Priya Das', 3, 'female', 'priya@hotmail.com', 'Day');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tbl_users`
  --
  
  CREATE TABLE `tbl_users` (
    `user_id` int(11) NOT NULL,
    `username` varchar(255) NOT NULL,
    `school_id` int(11) NOT NULL,
    `email` varchar(255) NOT NULL,
    `gender` varchar(255) NOT NULL,
    `role_id` int(11) NOT NULL,
    `password` varchar(255) NOT NULL,
    `confpwd` varchar(255) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `tbl_users`
  --
  
  INSERT INTO `tbl_users` (`user_id`, `username`, `school_id`, `email`, `gender`, `role_id`, `password`, `confpwd`) VALUES
  (1, 'admin', 1, 'admin@gmail.com', 'male', 1, '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '40bd001563085fc35165329ea1ff5c5ecbdbbeef'),
  (2, 'md.sun', 2, 'md.sun@gmail.com', 'male', 2, '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '40bd001563085fc35165329ea1ff5c5ecbdbbeef'),
  (3, 'mod-cityschool', 3, 'mod.cityschool@gmail.com', 'female', 2, '40bd001563085fc35165329ea1ff5c5ecbdbbeef', '40bd001563085fc35165329ea1ff5c5ecbdbbeef');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `tbl_roles`
  --
  ALTER TABLE `tbl_roles`
    ADD PRIMARY KEY (`role_id`);
  
  --
  -- Indexes for table `tbl_school`
  --
  ALTER TABLE `tbl_school`
    ADD PRIMARY KEY (`school_id`);
  
  --
  -- Indexes for table `tbl_student`
  --
  ALTER TABLE `tbl_student`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `tbl_users`
  --
  ALTER TABLE `tbl_users`
    ADD PRIMARY KEY (`user_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `tbl_roles`
  --
  ALTER TABLE `tbl_roles`
    MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `tbl_school`
  --
  ALTER TABLE `tbl_school`
    MODIFY `school_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- AUTO_INCREMENT for table `tbl_student`
  --
  ALTER TABLE `tbl_student`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  
  --
  -- AUTO_INCREMENT for table `tbl_users`
  --
  ALTER TABLE `tbl_users`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  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 */;
  