text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost
  -- Generation Time: Apr 25, 2020 at 01:37 AM
  -- Server version: 10.1.38-MariaDB
  -- PHP Version: 5.6.40
  
  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: `aabc_web`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `level`
  --
  
  CREATE TABLE `level` (
    `level_id` int(11) NOT NULL,
    `level_name` varchar(50) NOT NULL,
    `description` varchar(255) DEFAULT NULL,
    `is_active` enum('Active','Nonactive') NOT NULL DEFAULT 'Active'
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `level`
  --
  
  INSERT INTO `level` (`level_id`, `level_name`, `description`, `is_active`) VALUES
  (1, 'Admin', 'sample', 'Active'),
  (2, 'User', 'default level public', 'Active'),
  (5, 'testvaliddata', '12345', 'Active');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user`
  --
  
  CREATE TABLE `user` (
    `user_id` int(11) NOT NULL,
    `username` varchar(50) NOT NULL,
    `email` varchar(200) DEFAULT NULL,
    `password` varchar(32) DEFAULT NULL,
    `level_id` int(11) DEFAULT NULL,
    `description` varchar(255) DEFAULT NULL,
    `is_active` enum('Active','Nonactive') NOT NULL DEFAULT 'Active',
    `foto` varchar(255) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user`
  --
  
  INSERT INTO `user` (`user_id`, `username`, `email`, `password`, `level_id`, `description`, `is_active`, `foto`) VALUES
  (2, 'admin', 'admin@aabc-software.com', '202cb962ac59075b964b07152d234b70', 2, 'default admin, edited', 'Active', NULL),
  (3, 'arisnew', 'aris@aabc-software.com', '81dc9bdb52d04dc20036dbd8313ed055', 1, 'test upload', 'Active', 'python-img.png');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `level`
  --
  ALTER TABLE `level`
    ADD PRIMARY KEY (`level_id`);
  
  --
  -- Indexes for table `user`
  --
  ALTER TABLE `user`
    ADD PRIMARY KEY (`user_id`),
    ADD UNIQUE KEY `username` (`username`),
    ADD KEY `level_id` (`level_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `level`
  --
  ALTER TABLE `level`
    MODIFY `level_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  
  --
  -- AUTO_INCREMENT for table `user`
  --
  ALTER TABLE `user`
    MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `user`
  --
  ALTER TABLE `user`
    ADD CONSTRAINT `user_ibfk_1` FOREIGN KEY (`level_id`) REFERENCES `level` (`level_id`) ON UPDATE CASCADE;
  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 */;
  