-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 03, 2016 at 09:58 AM
-- Server version: 5.7.16-0ubuntu0.16.04.1
-- PHP Version: 7.0.8-0ubuntu0.16.04.3

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `opentutorials`
--
CREATE DATABASE IF NOT EXISTS `opentutorials` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `opentutorials`;

-- --------------------------------------------------------

--
-- Table structure for table `tbl_deviceinfo`
--

CREATE TABLE `tbl_deviceinfo` (
  `id` int(11) NOT NULL,
  `equipmentip` varchar(20) DEFAULT NULL,
  `equipmentport` varchar(10) DEFAULT NULL,
  `serverip` varchar(20) DEFAULT NULL,
  `serverport` varchar(10) DEFAULT NULL,
  `password` varchar(50) DEFAULT NULL,
  `username` varchar(50) DEFAULT NULL,
  `analysis` varchar(10) DEFAULT NULL,
  `comtype` varchar(10) DEFAULT NULL,
  `redate` datetime  DEFAULT NULL,
  `comment` varchar(256) DEFAULT NULL,
  `reboot` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table contains device related infomation';

--
-- Dumping data for table `tbl_deviceinfo`
--

INSERT INTO `tbl_deviceinfo` (`id`, `equipmentip`, `equipmentport`, `serverip`, `serverport`, `password`, `username`, `analysis`, `comtype`, `redate`, `comment`, `reboot`) VALUES
(4, '124.205.246.90', '80', '192.168.1.3', '5015', 'supervisor', 'supervisor', '222', 'TCP', '2016-11-02 11:37:48', '1256', 0),
(6, '124.205.246.91', '80', '192.168.1.3', '5015', 'supervisor', 'supervisor', '10000', 'TCP', '2016-11-01 21:23:55', 'Bioolfy', 0);

-- --------------------------------------------------------

--
-- Table structure for table `tbl_userinfo`
--

CREATE TABLE `tbl_userinfo` (
  `id` int(10) UNSIGNED NOT NULL,
  `account` varchar(50) DEFAULT NULL,
  `password` varchar(50) DEFAULT NULL,
  `redate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tbl_userinfo`
--

INSERT INTO `tbl_userinfo` (`id`, `account`, `password`, `redate`) VALUES
(1, 'admin', 'admin', '2016-10-22 00:00:00');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `tbl_deviceinfo`
--
ALTER TABLE `tbl_deviceinfo`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `tbl_userinfo`
--
ALTER TABLE `tbl_userinfo`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `id` (`id`),
  ADD UNIQUE KEY `id_2` (`id`),
  ADD UNIQUE KEY `id_3` (`id`),
  ADD UNIQUE KEY `id_4` (`id`),
  ADD UNIQUE KEY `id_5` (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `tbl_deviceinfo`
--
ALTER TABLE `tbl_deviceinfo`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tbl_userinfo`
--
ALTER TABLE `tbl_userinfo`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!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 */;
