text: -- phpMyAdmin SQL Dump
  -- version 4.8.5
  -- https://www.phpmyadmin.net/
  --
  -- Host: 127.0.0.1:3306
  -- Generation Time: May 29, 2021 at 02:53 PM
  -- Server version: 5.7.26
  -- PHP Version: 7.3.5
  
  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: `sums`
  --
  CREATE DATABASE IF NOT EXISTS `sums` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
  USE `sums`;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `groups`
  --
  
  DROP TABLE IF EXISTS `groups`;
  CREATE TABLE IF NOT EXISTS `groups` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(20) NOT NULL,
    `permissions` text NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `groups`
  --
  
  INSERT INTO `groups` (`id`, `name`, `permissions`) VALUES
  (1, 'User', '{ \"admin\":0, \"moderator\":0, \"user\":1 }'),
  (2, 'Administrator', '{ \"admin\":1,\"moderator\":1,\"user\":1 }'),
  (3, 'moderator', '{ \"admin\":0,\"moderator\":1,\"user\":1 }');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  DROP TABLE IF EXISTS `users`;
  CREATE TABLE IF NOT EXISTS `users` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(20) NOT NULL,
    `mobile` varchar(10) NOT NULL,
    `email` varchar(255) DEFAULT NULL,
    `photo` varchar(255) DEFAULT NULL,
    `password` varchar(64) NOT NULL,
    `salt` varbinary(32) NOT NULL,
    `joined` datetime NOT NULL,
    `group` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `username`, `mobile`, `email`, `photo`, `password`, `salt`, `joined`, `group`) VALUES
  (1, 'admin', '', 'admin@admin.com', NULL, 'a9157b2008e16321be0dd99b27dd64716ca760ee10bda7368a1de8db8e9634ca', 0x6defa28ff5f5ecb1b92ef7aaf617f2667832f31a2c32ac87aa00e6511c685574, '2021-05-29 20:15:03', 2);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users_session`
  --
  
  DROP TABLE IF EXISTS `users_session`;
  CREATE TABLE IF NOT EXISTS `users_session` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL,
    `hash` varchar(100) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `user_log`
  --
  
  DROP TABLE IF EXISTS `user_log`;
  CREATE TABLE IF NOT EXISTS `user_log` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL,
    `logged_in_time` datetime NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `user_log`
  --
  
  INSERT INTO `user_log` (`id`, `user_id`, `logged_in_time`) VALUES
  (1, 1, '2021-05-29 20:15:13');
  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 */;
  