%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/root/mnt/tnb2/los/
Upload File :
Create Path :
Current File : //proc/309157/root/mnt/tnb2/los/los.sql

-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Počítač: 127.0.0.1
-- Vytvořeno: Čtv 04. kvě 2023, 08:54
-- Verze serveru: 10.4.25-MariaDB
-- Verze PHP: 8.1.10

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

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

--
-- Struktura tabulky `kategorie_zavodu`
--

CREATE TABLE `kategorie_zavodu` (
  `id` int(10) NOT NULL,
  `nazev` varchar(20) DEFAULT NULL,
  `aktivni` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `kategorie_zavodu`
--

INSERT INTO `kategorie_zavodu` (`id`, `nazev`, `aktivni`) VALUES
(1, 'Krátká', 1),
(2, 'Dlouhá', 1),
(3, 'Broková', 1);

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

--
-- Struktura tabulky `poradatele`
--

CREATE TABLE `poradatele` (
  `id` int(10) NOT NULL,
  `id_poradatele` int(10) NOT NULL,
  `nazev` varchar(100) NOT NULL,
  `stranka` varchar(100) NOT NULL,
  `email` varchar(50) NOT NULL,
  `nazev_strelnice` varchar(100) NOT NULL,
  `stranka_strelnice` varchar(100) NOT NULL,
  `poloha_strelnice` varchar(100) NOT NULL,
  `rocnik` varchar(4) NOT NULL,
  `kategorie_zavodu` varchar(20) NOT NULL,
  `uroven_zavodu` varchar(20) NOT NULL,
  `pocet_situaci` int(10) DEFAULT NULL,
  `pocet_skupin` int(10) DEFAULT NULL,
  `lokalni_pohar` tinyint(1) NOT NULL,
  `kalibracni_zbran` varchar(20) NOT NULL,
  `startovne_plne` int(10) NOT NULL,
  `startovne_sleva` int(10) NOT NULL,
  `zpusob_registrace` varchar(50) NOT NULL,
  `prezence` varchar(50) NOT NULL,
  `zacatek` time(4) DEFAULT NULL,
  `konec` time(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `poradatele`
--

INSERT INTO `poradatele` (`id`, `id_poradatele`, `nazev`, `stranka`, `email`, `nazev_strelnice`, `stranka_strelnice`, `poloha_strelnice`, `rocnik`, `kategorie_zavodu`, `uroven_zavodu`, `pocet_situaci`, `pocet_skupin`, `lokalni_pohar`, `kalibracni_zbran`, `startovne_plne`, `startovne_sleva`, `zpusob_registrace`, `prezence`, `zacatek`, `konec`) VALUES
(2, 7, 'nazev', 'stranka', 'zavrel@volny.cz', 'nazev_strelnice', 'stranka_strelnice', 'poloha', '2023', 'Dlouhá', 'Pohárový závod', 10, 10, 1, 'kalibr', 100, 200, 'On-line - konec v ... před závodem', 'Dle propozic pořadatele', '09:00:00.0000', '20:00:00.0000');

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

--
-- Struktura tabulky `prezence_zavodu`
--

CREATE TABLE `prezence_zavodu` (
  `id` int(10) NOT NULL,
  `nazev` varchar(40) DEFAULT NULL,
  `aktivni` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `prezence_zavodu`
--

INSERT INTO `prezence_zavodu` (`id`, `nazev`, `aktivni`) VALUES
(1, '30 minut před zahájením závodu', 1),
(2, '30 minut před startem skupiny', 1),
(3, 'Dle propozic pořadatele', 1);

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

--
-- Struktura tabulky `registrace`
--

CREATE TABLE `registrace` (
  `id` int(10) NOT NULL,
  `jmeno` varchar(40) NOT NULL,
  `prijmeni` varchar(40) NOT NULL,
  `email` varchar(100) NOT NULL,
  `uzivatel` varchar(40) NOT NULL,
  `heslo` varchar(40) NOT NULL,
  `poradatel` tinyint(1) DEFAULT 0,
  `admin` tinyint(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `registrace`
--

INSERT INTO `registrace` (`id`, `jmeno`, `prijmeni`, `email`, `uzivatel`, `heslo`, `poradatel`, `admin`) VALUES
(3, 'Josef', 'Novák', 'zavrel@volny.cz', 'b', 'f1290186a5d0b1ceab27f4e77c0c5d68', 1, 1),
(4, 'Miroslav', 'Zavřel', 'zavrel@volny.cz', 'pepa', '0cc175b9c0f1b6a831c399e269772661', 0, 0),
(5, 'Miroslav', 'Zavřel', 'zavrel@volny.cz', 'root', '07799503c72257cce87bdd811fdaa8b6', 0, 0),
(6, 'Miroslav', 'Zavřel', 'zavrel@volny.cz', 'pop', '0cc175b9c0f1b6a831c399e269772661', 0, 0),
(7, 'Miroslav', 'Zavřel', 'zavrel@volny.cz', 'a', '0cc175b9c0f1b6a831c399e269772661', 1, 1),
(8, 'Miroslav', 'Zavřel', 'zavrel@volny.cz', 'se', 'efad7abb323e3d4016284c8a6da076a1', 1, 1),
(12, 'Stanislav', 'Vágner', 'vagner@volny.cz', 'strasidlo', '79c2b46ce2594ecbcb5b73e928345492', 1, 0),
(13, 'Karel', 'Gott', 'vagner@volny.cz', '72X', '955db0b81ef1989b4a4dfeae8061a9a6', 0, 0);

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

--
-- Struktura tabulky `rocniky_zavodu`
--

CREATE TABLE `rocniky_zavodu` (
  `id` int(10) NOT NULL,
  `rok` int(4) NOT NULL,
  `aktivni` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `rocniky_zavodu`
--

INSERT INTO `rocniky_zavodu` (`id`, `rok`, `aktivni`) VALUES
(1, 2023, 1),
(3, 2024, 1),
(4, 2022, 1);

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

--
-- Struktura tabulky `uroven_zavodu`
--

CREATE TABLE `uroven_zavodu` (
  `id` int(10) NOT NULL,
  `nazev` varchar(40) DEFAULT NULL,
  `aktivni` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `uroven_zavodu`
--

INSERT INTO `uroven_zavodu` (`id`, `nazev`, `aktivni`) VALUES
(1, 'Klubový závod', 1),
(2, 'Pohárový závod', 1),
(3, 'Mistrovský závod', 1),
(4, 'LOSík', 1),
(5, 'Drill', 1);

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

--
-- Struktura tabulky `zavody`
--

CREATE TABLE `zavody` (
  `id` int(10) NOT NULL,
  `nazev` varchar(100) NOT NULL,
  `druh` varchar(20) NOT NULL,
  `zbran` varchar(20) NOT NULL,
  `datum_konani` date NOT NULL,
  `uid_poradatel` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `zavody`
--

INSERT INTO `zavody` (`id`, `nazev`, `druh`, `zbran`, `datum_konani`, `uid_poradatel`) VALUES
(1, 'nazev', 'druh', 'zbran', '2022-10-10', 'a'),
(3, 'nazev2', 'druh2', 'zbran2', '2022-10-10', 'a2'),
(4, 'nazev3', 'druh3', 'zbran3', '2022-10-10', 'a3');

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

--
-- Struktura tabulky `zbrane_kategorie_zavodu`
--

CREATE TABLE `zbrane_kategorie_zavodu` (
  `id` int(10) NOT NULL,
  `id_kategorie` int(10) NOT NULL,
  `nazev` varchar(50) DEFAULT NULL,
  `zkratka` varchar(10) DEFAULT NULL,
  `aktivni` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `zbrane_kategorie_zavodu`
--

INSERT INTO `zbrane_kategorie_zavodu` (`id`, `id_kategorie`, `nazev`, `zkratka`, `aktivni`) VALUES
(1, 1, 'Malá pistole', 'MPI', 1),
(3, 2, 'Puška samonabíjecí', 'PSA', 1),
(4, 1, 'Pistole', 'VPI', 1),
(7, 1, 'Kompaktní pistole', 'KPI', 1),
(8, 3, 'Brokovnice samonabíjecí', 'BSA', 1),
(9, 1, 'Optik', 'OPT', 1),
(10, 1, 'Revolver', 'VRE', 1),
(11, 1, 'Malý revolver', 'MRE', 1),
(12, 3, 'Brokovnice opakovací', 'BOP', 1),
(13, 3, 'Brokovnice ostatní', 'BOS', 1),
(14, 2, 'Puška opakovací', 'POP', 1),
(15, 2, 'Osobní obranná zbraň', 'PDW', 1);

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

--
-- Struktura tabulky `zpusobregistrace_zavodu`
--

CREATE TABLE `zpusobregistrace_zavodu` (
  `id` int(10) NOT NULL,
  `nazev` varchar(50) DEFAULT NULL,
  `aktivni` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Vypisuji data pro tabulku `zpusobregistrace_zavodu`
--

INSERT INTO `zpusobregistrace_zavodu` (`id`, `nazev`, `aktivni`) VALUES
(1, 'On-line - konec v 18 hodin den před závodem', 1),
(2, 'On-line - konec den před závodem', 1),
(3, 'Zajišťuje si sám pořadatel', 1);

--
-- Indexy pro exportované tabulky
--

--
-- Indexy pro tabulku `kategorie_zavodu`
--
ALTER TABLE `kategorie_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `poradatele`
--
ALTER TABLE `poradatele`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `prezence_zavodu`
--
ALTER TABLE `prezence_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `registrace`
--
ALTER TABLE `registrace`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `rocniky_zavodu`
--
ALTER TABLE `rocniky_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `uroven_zavodu`
--
ALTER TABLE `uroven_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `zavody`
--
ALTER TABLE `zavody`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `zbrane_kategorie_zavodu`
--
ALTER TABLE `zbrane_kategorie_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `zpusobregistrace_zavodu`
--
ALTER TABLE `zpusobregistrace_zavodu`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT pro tabulky
--

--
-- AUTO_INCREMENT pro tabulku `kategorie_zavodu`
--
ALTER TABLE `kategorie_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT pro tabulku `poradatele`
--
ALTER TABLE `poradatele`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pro tabulku `prezence_zavodu`
--
ALTER TABLE `prezence_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pro tabulku `registrace`
--
ALTER TABLE `registrace`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT pro tabulku `rocniky_zavodu`
--
ALTER TABLE `rocniky_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT pro tabulku `uroven_zavodu`
--
ALTER TABLE `uroven_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT pro tabulku `zavody`
--
ALTER TABLE `zavody`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pro tabulku `zbrane_kategorie_zavodu`
--
ALTER TABLE `zbrane_kategorie_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT pro tabulku `zpusobregistrace_zavodu`
--
ALTER TABLE `zpusobregistrace_zavodu`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- Databáze: `phpmyadmin`
--
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE `phpmyadmin`;

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

--
-- Struktura tabulky `pma__bookmark`
--

CREATE TABLE `pma__bookmark` (
  `id` int(10) UNSIGNED NOT NULL,
  `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `query` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks';

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

--
-- Struktura tabulky `pma__central_columns`
--

CREATE TABLE `pma__central_columns` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_type` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_length` text COLLATE utf8_bin DEFAULT NULL,
  `col_collation` varchar(64) COLLATE utf8_bin NOT NULL,
  `col_isNull` tinyint(1) NOT NULL,
  `col_extra` varchar(255) COLLATE utf8_bin DEFAULT '',
  `col_default` text COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Central list of columns';

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

--
-- Struktura tabulky `pma__column_info`
--

CREATE TABLE `pma__column_info` (
  `id` int(5) UNSIGNED NOT NULL,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `column_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `comment` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `mimetype` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `input_transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  `input_transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin';

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

--
-- Struktura tabulky `pma__designer_settings`
--

CREATE TABLE `pma__designer_settings` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `settings_data` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Settings related to Designer';

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

--
-- Struktura tabulky `pma__export_templates`
--

CREATE TABLE `pma__export_templates` (
  `id` int(5) UNSIGNED NOT NULL,
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `export_type` varchar(10) COLLATE utf8_bin NOT NULL,
  `template_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `template_data` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved export templates';

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

--
-- Struktura tabulky `pma__favorite`
--

CREATE TABLE `pma__favorite` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `tables` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Favorite tables';

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

--
-- Struktura tabulky `pma__history`
--

CREATE TABLE `pma__history` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `timevalue` timestamp NOT NULL DEFAULT current_timestamp(),
  `sqlquery` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin';

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

--
-- Struktura tabulky `pma__navigationhiding`
--

CREATE TABLE `pma__navigationhiding` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `item_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `item_type` varchar(64) COLLATE utf8_bin NOT NULL,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree';

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

--
-- Struktura tabulky `pma__pdf_pages`
--

CREATE TABLE `pma__pdf_pages` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `page_nr` int(10) UNSIGNED NOT NULL,
  `page_descr` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin';

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

--
-- Struktura tabulky `pma__recent`
--

CREATE TABLE `pma__recent` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `tables` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables';

--
-- Vypisuji data pro tabulku `pma__recent`
--

INSERT INTO `pma__recent` (`username`, `tables`) VALUES
('root', '[{\"db\":\"los\",\"table\":\"registrace\"},{\"db\":\"los\",\"table\":\"kategorie_zavodu\"}]');

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

--
-- Struktura tabulky `pma__relation`
--

CREATE TABLE `pma__relation` (
  `master_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `master_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `master_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `foreign_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table';

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

--
-- Struktura tabulky `pma__savedsearches`
--

CREATE TABLE `pma__savedsearches` (
  `id` int(5) UNSIGNED NOT NULL,
  `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `search_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `search_data` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved searches';

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

--
-- Struktura tabulky `pma__table_coords`
--

CREATE TABLE `pma__table_coords` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `pdf_page_number` int(11) NOT NULL DEFAULT 0,
  `x` float UNSIGNED NOT NULL DEFAULT 0,
  `y` float UNSIGNED NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output';

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

--
-- Struktura tabulky `pma__table_info`
--

CREATE TABLE `pma__table_info` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '',
  `display_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin';

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

--
-- Struktura tabulky `pma__table_uiprefs`
--

CREATE TABLE `pma__table_uiprefs` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `prefs` text COLLATE utf8_bin NOT NULL,
  `last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences';

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

--
-- Struktura tabulky `pma__tracking`
--

CREATE TABLE `pma__tracking` (
  `db_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `table_name` varchar(64) COLLATE utf8_bin NOT NULL,
  `version` int(10) UNSIGNED NOT NULL,
  `date_created` datetime NOT NULL,
  `date_updated` datetime NOT NULL,
  `schema_snapshot` text COLLATE utf8_bin NOT NULL,
  `schema_sql` text COLLATE utf8_bin DEFAULT NULL,
  `data_sql` longtext COLLATE utf8_bin DEFAULT NULL,
  `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') COLLATE utf8_bin DEFAULT NULL,
  `tracking_active` int(1) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin';

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

--
-- Struktura tabulky `pma__userconfig`
--

CREATE TABLE `pma__userconfig` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `timevalue` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `config_data` text COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin';

--
-- Vypisuji data pro tabulku `pma__userconfig`
--

INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES
('root', '2023-05-04 06:54:45', '{\"Console\\/Mode\":\"collapse\",\"lang\":\"cs\",\"ThemeDefault\":\"pmahomme\"}');

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

--
-- Struktura tabulky `pma__usergroups`
--

CREATE TABLE `pma__usergroups` (
  `usergroup` varchar(64) COLLATE utf8_bin NOT NULL,
  `tab` varchar(64) COLLATE utf8_bin NOT NULL,
  `allowed` enum('Y','N') COLLATE utf8_bin NOT NULL DEFAULT 'N'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User groups with configured menu items';

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

--
-- Struktura tabulky `pma__users`
--

CREATE TABLE `pma__users` (
  `username` varchar(64) COLLATE utf8_bin NOT NULL,
  `usergroup` varchar(64) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups';

--
-- Indexy pro exportované tabulky
--

--
-- Indexy pro tabulku `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
  ADD PRIMARY KEY (`id`);

--
-- Indexy pro tabulku `pma__central_columns`
--
ALTER TABLE `pma__central_columns`
  ADD PRIMARY KEY (`db_name`,`col_name`);

--
-- Indexy pro tabulku `pma__column_info`
--
ALTER TABLE `pma__column_info`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`);

--
-- Indexy pro tabulku `pma__designer_settings`
--
ALTER TABLE `pma__designer_settings`
  ADD PRIMARY KEY (`username`);

--
-- Indexy pro tabulku `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`);

--
-- Indexy pro tabulku `pma__favorite`
--
ALTER TABLE `pma__favorite`
  ADD PRIMARY KEY (`username`);

--
-- Indexy pro tabulku `pma__history`
--
ALTER TABLE `pma__history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `username` (`username`,`db`,`table`,`timevalue`);

--
-- Indexy pro tabulku `pma__navigationhiding`
--
ALTER TABLE `pma__navigationhiding`
  ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`);

--
-- Indexy pro tabulku `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
  ADD PRIMARY KEY (`page_nr`),
  ADD KEY `db_name` (`db_name`);

--
-- Indexy pro tabulku `pma__recent`
--
ALTER TABLE `pma__recent`
  ADD PRIMARY KEY (`username`);

--
-- Indexy pro tabulku `pma__relation`
--
ALTER TABLE `pma__relation`
  ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`),
  ADD KEY `foreign_field` (`foreign_db`,`foreign_table`);

--
-- Indexy pro tabulku `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`);

--
-- Indexy pro tabulku `pma__table_coords`
--
ALTER TABLE `pma__table_coords`
  ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`);

--
-- Indexy pro tabulku `pma__table_info`
--
ALTER TABLE `pma__table_info`
  ADD PRIMARY KEY (`db_name`,`table_name`);

--
-- Indexy pro tabulku `pma__table_uiprefs`
--
ALTER TABLE `pma__table_uiprefs`
  ADD PRIMARY KEY (`username`,`db_name`,`table_name`);

--
-- Indexy pro tabulku `pma__tracking`
--
ALTER TABLE `pma__tracking`
  ADD PRIMARY KEY (`db_name`,`table_name`,`version`);

--
-- Indexy pro tabulku `pma__userconfig`
--
ALTER TABLE `pma__userconfig`
  ADD PRIMARY KEY (`username`);

--
-- Indexy pro tabulku `pma__usergroups`
--
ALTER TABLE `pma__usergroups`
  ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`);

--
-- Indexy pro tabulku `pma__users`
--
ALTER TABLE `pma__users`
  ADD PRIMARY KEY (`username`,`usergroup`);

--
-- AUTO_INCREMENT pro tabulky
--

--
-- AUTO_INCREMENT pro tabulku `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pro tabulku `pma__column_info`
--
ALTER TABLE `pma__column_info`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pro tabulku `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pro tabulku `pma__history`
--
ALTER TABLE `pma__history`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pro tabulku `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
  MODIFY `page_nr` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pro tabulku `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;
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 */;

Zerion Mini Shell 1.0