-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Počítač: 127.0.0.1:3306
-- Vytvořeno: Ned 10. bře 2019, 21:48
-- Verze serveru: 5.7.24
-- Verze PHP: 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 */;

--
-- Databáze: `d2_grim`
--

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

--
-- Struktura tabulky `d_access_keys`
--

DROP TABLE IF EXISTS `d_access_keys`;
CREATE TABLE IF NOT EXISTS `d_access_keys` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `key_hash` varchar(255) CHARACTER SET utf8 COLLATE utf8_czech_ci NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `key_hash` (`key_hash`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Struktura tabulky `d_stage_results`
--

DROP TABLE IF EXISTS `d_stage_results`;
CREATE TABLE IF NOT EXISTS `d_stage_results` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `KEY` int(11) NOT NULL,
  `STAGE` int(11) DEFAULT NULL,
  `RESULT` int(11) DEFAULT NULL,
  `TIME_STARTED` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`),
  KEY `KEY` (`KEY`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;

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

--
-- Struktura tabulky `d_status_of_town`
--

DROP TABLE IF EXISTS `d_status_of_town`;
CREATE TABLE IF NOT EXISTS `d_status_of_town` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `KEY` int(11) NOT NULL,
  `STAGE` int(11) NOT NULL,
  `PEOPLE` int(11) NOT NULL,
  `PLAGUE` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `KEY` (`KEY`,`STAGE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Struktura tabulky `d_timer`
--

DROP TABLE IF EXISTS `d_timer`;
CREATE TABLE IF NOT EXISTS `d_timer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `KEY` int(11) NOT NULL,
  `START_TIME` datetime NOT NULL,
  `STAGE` int(11) NOT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `unique_index` (`KEY`,`STAGE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
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 */;
