%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/verify.varak.net/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/verify.varak.net/db.sql

-- Adminer 4.7.0 MySQL dump

SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

DROP TABLE IF EXISTS `matches`;
CREATE TABLE `matches` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uuid` char(36) COLLATE utf8_czech_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
  `date` date NOT NULL,
  `active` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `uuid` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;


DROP TABLE IF EXISTS `score`;
CREATE TABLE `score` (
  `shooter` int(11) NOT NULL,
  `stage` tinyint(4) NOT NULL,
  `datetime` datetime NOT NULL,
  `time` decimal(8,2) NOT NULL,
  `maxPoints` int(11) NOT NULL,
  `points` int(11) NOT NULL,
  `alpha` tinyint(3) unsigned NOT NULL,
  `charlie` tinyint(3) unsigned NOT NULL,
  `delta` tinyint(3) unsigned NOT NULL,
  `miss` tinyint(3) unsigned NOT NULL,
  `noshoot` tinyint(3) unsigned NOT NULL,
  `proc` tinyint(3) unsigned NOT NULL,
  `hitFactor` decimal(8,4) unsigned NOT NULL,
  PRIMARY KEY (`shooter`,`stage`),
  CONSTRAINT `score_ibfk_1` FOREIGN KEY (`shooter`) REFERENCES `shooters` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;


DROP TABLE IF EXISTS `shooters`;
CREATE TABLE `shooters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uuid` char(36) COLLATE utf8_czech_ci NOT NULL,
  `match` int(11) NOT NULL,
  `firstName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
  `lastName` varchar(255) COLLATE utf8_czech_ci NOT NULL,
  `factor` varchar(20) COLLATE utf8_czech_ci NOT NULL,
  `division` varchar(60) COLLATE utf8_czech_ci NOT NULL,
  `class` varchar(20) COLLATE utf8_czech_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `match` (`match`),
  KEY `uuid` (`uuid`),
  CONSTRAINT `shooters_ibfk_1` FOREIGN KEY (`match`) REFERENCES `matches` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci;

ALTER TABLE `shooters`
ADD `squad` tinyint unsigned NOT NULL;

-- 2019-05-29 13:09:26

Zerion Mini Shell 1.0