-- https://www.phpmyadmin.net/
--
-- Czas generowania: 01 Maj 2021, 18:27
-- Wersja serwera: 10.4.17-MariaDB
-- Wersja PHP: 8.0.2

START TRANSACTION;



--
-- Baza danych: `blackmin`
--
CREATE DATABASE IF NOT EXISTS `blackmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_polish_ci;
USE `blackmin`;

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

--
-- Struktura tabeli dla tabeli `bm_filemeta`
--

CREATE TABLE `bm_filemeta` (
  `id` int(11) NOT NULL,
  `bm_autor` int(11) NOT NULL,
  `bm_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_nazwa_zmiany` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_datetime_wgrania` datetime NOT NULL,
  `bm_datetime_zmiany` datetime NOT NULL,
  `bm_opis` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_typ_pliku` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_miniaturka` text CHARACTER SET utf8 COLLATE utf8_polish_ci NOT NULL,
  `bm_folder` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_sciezka` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktura tabeli dla tabeli `bm_komentarze`
--

CREATE TABLE `bm_komentarze` (
  `id` int(11) NOT NULL,
  `id_post` int(11) NOT NULL,
  `id_dodajacego` int(11) NOT NULL,
  `id_odp_komentarz` int(11) NOT NULL,
  `tresc_komentarza` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktura tabeli dla tabeli `bm_metaposty`
--

CREATE TABLE `bm_metaposty` (
  `id` int(11) NOT NULL,
  `bm_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_skr_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_opis` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_KT` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Zrzut danych tabeli `bm_metaposty`
--

INSERT INTO `bm_metaposty` (`id`, `bm_nazwa`, `bm_skr_nazwa`, `bm_opis`, `bm_KT`) VALUES
(1, 'blackmin', 'blackmin', 'blackmin', 'kategoria'),
(2, 'blackmin', 'blackmin', 'blackmin', 'tag'),
(3, 'asca', 'scascasc', 'ascasc', 'kategoria'),
(4, 'fewef', 'scascasc', 'ascasc', 'kategoria');

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

--
-- Struktura tabeli dla tabeli `bm_postmeta`
--

CREATE TABLE `bm_postmeta` (
  `id` int(11) NOT NULL,
  `bm_kontent` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_wartosc` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Zrzut danych tabeli `bm_postmeta`
--

INSERT INTO `bm_postmeta` (`id`, `bm_kontent`, `bm_nazwa`, `bm_wartosc`) VALUES
(1, 'socialmedia', 'submile', 'bm_social_submile'),
(2, 'socialmedia', 'facebook', ''),
(3, 'socialmedia', 'youtube', ''),
(4, 'socialmedia', 'google_plus', ''),
(5, 'socialmedia', 'instagram', ''),
(6, 'socialmedia', 'twitter', ''),
(7, 'socialmedia', 'menu_item', '[\"ewf\",\"http://localhost/bm/\",\"link\"]'),
(8, 'socialmedia', 'new_menu_item', '[\"bm\",\"http://localhost/bm/\",\"link\"]'),
(9, 'socialmedia', 'new_menu_item', '[\"b\",\"http://localhost/bm/\",\"link\"]'),
(10, 'socialmedia', 'new_menu_item', '[\"bb\",\"http://localhost/bm/\",\"link\"]'),
(11, 'socialmedia', 'new_menu_item', '[\"bb\",\"http://localhost/bm/\",\"link\"]'),
(12, 'socialmedia', 'new_menu_item', '[\"bb\",\"http://localhost/bm/\",\"link\"]'),
(13, 'socialmedia', 'new_menu_item', '[\"bm\",\"http://localhost/bm/\",\"link\"]');

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

--
-- Struktura tabeli dla tabeli `bm_status`
--

CREATE TABLE `bm_status` (
  `id` int(11) NOT NULL,
  `bm_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_wartosc` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Zrzut danych tabeli `bm_status`
--

INSERT INTO `bm_status` (`id`, `bm_nazwa`, `bm_wartosc`) VALUES
(1, 'bm_nick_admin_bm', 'timonix'),
(2, 'bm_mail_admin_bm', 'tomi436@interia.pl'),
(3, 'bm_wersja_db', '1.0'),
(4, 'bm_aupt_public', ''),
(5, 'bm_aupt_private', ''),
(6, 'bm_aupt_acces', 'true'),
(7, 'bm_data_instalacji', '27.02.2021'),
(8, 'bm_wersja_black_min', '1.0');

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

--
-- Struktura tabeli dla tabeli `bm_statystyki_strony`
--

CREATE TABLE `bm_statystyki_strony` (
  `id` int(11) NOT NULL,
  `date` date NOT NULL,
  `liczba_odwiedzin` int(11) NOT NULL COMMENT 'liczba odwiedzin użytkowników I++',
  `liczba_unikalnych_odwiedzin` int(11) NOT NULL COMMENT 'liczba unikalnych odwiedzin użytkownika ip=',
  `liczba_unikalnych_odwiedzin_dzisiaj` int(11) NOT NULL COMMENT 'liczba unikalnych odwiedzin dzisiaj'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Struktura tabeli dla tabeli `bm_ustawienia_bm`
--

CREATE TABLE `bm_ustawienia_bm` (
  `id` int(11) NOT NULL,
  `bm_nazwa` text COLLATE utf8_unicode_ci NOT NULL,
  `bm_wartosc` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Zrzut danych tabeli `bm_ustawienia_bm`
--

INSERT INTO `bm_ustawienia_bm` (`id`, `bm_nazwa`, `bm_wartosc`) VALUES
(1, 'url_serwera', 'https://localhost/bm/'),
(2, 'url_witryny', 'https://localhost/bm/'),
(3, 'bm_nazwa_strony', 'Black Min'),
(4, 'bm_opis_strony', ''),
(5, 'bm_icon_ico', ''),
(6, 'bm_icon_png', ''),
(7, 'bm_rejestracja', 'false'),
(8, 'bm_logowanie', 'false'),
(9, 'bm_komentarze', 'false'),
(10, 'bm_slowa_kluczowe', ''),
(11, 'bm_logo', ''),
(12, 'bm_banner', ''),
(13, 'bm_menu_structur', '[{\"id\":7}]'),
(14, 'bm_email_witryny', ''),
(15, 'bm_nowy_uzytkownik', 'właśćiciel'),
(16, 'bm_jezyk_witryny', 'pl_PL'),
(17, 'bm_strefa_czasowa', 'warszawa'),
(18, 'bm_date', 'm.d.Y'),
(19, 'bm_time', 'H:i'),
(20, 'bm_serwer_mail', ''),
(21, 'bm_serwer_mail_login', ''),
(22, 'bm_serwer_mail_hasło', ''),
(23, 'bm_serwer_mail_port', ''),
(24, 'bm_domysny_status_posta', 'szkic'),
(25, 'bm_domysny_format_posta', 'post'),
(26, 'bm_domysne_laduj_posty', '25'),
(27, 'bm_domysnie_laduj_komentarze', '14'),
(34, 'bm_spolecznosc_opis', ''),
(35, 'bm_spolecznosc_link', ''),
(36, 'bm_spolecznosc_link_info_cookies', ''),
(37, 'bm_spolecznosc_text_akcept', 'Akceptuję'),
(38, 'bm_panel_powitanie', 'true'),
(39, 'bm_motyw_aktywny', 'braund'),
(40, 'bm_robots', 'noindex, nofollow'),
(41, 'bm_tryb_konserwacji', 'false'),
(42, 'bm_tryb_konserwacji_tytul', 'Konserwacja!'),
(43, 'bm_tryb_konserwacji_opis', 'przeprowadzana jest konserwacja witryny'),
(44, 'bm_tryb_konserwacji_datetime', '2020-02-23T00:00'),
(45, 'bm_top_box', 'NULL'),
(46, 'bm_left_box', 'NULL'),
(47, 'bm_right_box', 'NULL'),
(48, 'bm_bottom_box', 'NULL'),
(49, 'bm_footer_box', 'NULL'),
(50, 'bm_ssl', '0');

--
-- Indeksy dla tabeli `bm_filemeta`
--
ALTER TABLE `bm_filemeta`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_komentarze`
--
ALTER TABLE `bm_komentarze`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_metaposty`
--
ALTER TABLE `bm_metaposty`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_postmeta`
--
ALTER TABLE `bm_postmeta`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_status`
--
ALTER TABLE `bm_status`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_statystyki_strony`
--
ALTER TABLE `bm_statystyki_strony`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `bm_ustawienia_bm`
--
ALTER TABLE `bm_ustawienia_bm`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT dla tabeli `bm_filemeta`
--
ALTER TABLE `bm_filemeta`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT dla tabeli `bm_komentarze`
--
ALTER TABLE `bm_komentarze`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT dla tabeli `bm_metaposty`
--
ALTER TABLE `bm_metaposty`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT dla tabeli `bm_postmeta`
--
ALTER TABLE `bm_postmeta`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT dla tabeli `bm_status`
--
ALTER TABLE `bm_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT dla tabeli `bm_statystyki_strony`
--
ALTER TABLE `bm_statystyki_strony`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT dla tabeli `bm_ustawienia_bm`
--
ALTER TABLE `bm_ustawienia_bm`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
--
-- Baza danych: `phpmyadmin`
--
CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
USE `phpmyadmin`;

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

--
-- Struktura tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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';

--
-- Zrzut danych tabeli `pma__recent`
--

INSERT INTO `pma__recent` (`username`, `tables`) VALUES
('root', '[{\"db\":\"restauracja\",\"table\":\"dania\"},{\"db\":\"restauracja\",\"table\":\"osoba\"},{\"db\":\"blackmin\",\"table\":\"bm_data_posty\"},{\"db\":\"blackmin\",\"table\":\"bm_uzytkownicy\"},{\"db\":\"blackmin\",\"table\":\"bm_ustawienia_bm\"},{\"db\":\"blackmin\",\"table\":\"bm_filemeta\"},{\"db\":\"blackmin\",\"table\":\"bm_statystyki_strony\"},{\"db\":\"blackmin\",\"table\":\"bm_status\"},{\"db\":\"blackmin\",\"table\":\"bm_postmeta\"},{\"db\":\"blackmin\",\"table\":\"bm_metaposty\"}]');

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

--
-- Struktura tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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 tabeli dla tabeli `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';

--
-- Zrzut danych tabeli `pma__userconfig`
--

INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES
('root', '2021-04-28 12:28:44', '{\"Console\\/Mode\":\"collapse\",\"lang\":\"pl\",\"DefaultConnectionCollation\":\"utf8_unicode_ci\"}');

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

--
-- Struktura tabeli dla tabeli `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 tabeli dla tabeli `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';

--
-- Indeksy dla zrzutów tabel
--

--
-- Indeksy dla tabeli `pma__bookmark`
--
ALTER TABLE `pma__bookmark`
  ADD PRIMARY KEY (`id`);

--
-- Indeksy dla tabeli `pma__central_columns`
--
ALTER TABLE `pma__central_columns`
  ADD PRIMARY KEY (`db_name`,`col_name`);

--
-- Indeksy dla tabeli `pma__column_info`
--
ALTER TABLE `pma__column_info`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`);

--
-- Indeksy dla tabeli `pma__designer_settings`
--
ALTER TABLE `pma__designer_settings`
  ADD PRIMARY KEY (`username`);

--
-- Indeksy dla tabeli `pma__export_templates`
--
ALTER TABLE `pma__export_templates`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`);

--
-- Indeksy dla tabeli `pma__favorite`
--
ALTER TABLE `pma__favorite`
  ADD PRIMARY KEY (`username`);

--
-- Indeksy dla tabeli `pma__history`
--
ALTER TABLE `pma__history`
  ADD PRIMARY KEY (`id`),
  ADD KEY `username` (`username`,`db`,`table`,`timevalue`);

--
-- Indeksy dla tabeli `pma__navigationhiding`
--
ALTER TABLE `pma__navigationhiding`
  ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`);

--
-- Indeksy dla tabeli `pma__pdf_pages`
--
ALTER TABLE `pma__pdf_pages`
  ADD PRIMARY KEY (`page_nr`),
  ADD KEY `db_name` (`db_name`);

--
-- Indeksy dla tabeli `pma__recent`
--
ALTER TABLE `pma__recent`
  ADD PRIMARY KEY (`username`);

--
-- Indeksy dla tabeli `pma__relation`
--
ALTER TABLE `pma__relation`
  ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`),
  ADD KEY `foreign_field` (`foreign_db`,`foreign_table`);

--
-- Indeksy dla tabeli `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`);

--
-- Indeksy dla tabeli `pma__table_coords`
--
ALTER TABLE `pma__table_coords`
  ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`);

--
-- Indeksy dla tabeli `pma__table_info`
--
ALTER TABLE `pma__table_info`
  ADD PRIMARY KEY (`db_name`,`table_name`);

--
-- Indeksy dla tabeli `pma__table_uiprefs`
--
ALTER TABLE `pma__table_uiprefs`
  ADD PRIMARY KEY (`username`,`db_name`,`table_name`);

--
-- Indeksy dla tabeli `pma__tracking`
--
ALTER TABLE `pma__tracking`
  ADD PRIMARY KEY (`db_name`,`table_name`,`version`);

--
-- Indeksy dla tabeli `pma__userconfig`
--
ALTER TABLE `pma__userconfig`
  ADD PRIMARY KEY (`username`);

--
-- Indeksy dla tabeli `pma__usergroups`
--
ALTER TABLE `pma__usergroups`
  ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`);

--
-- Indeksy dla tabeli `pma__users`
--
ALTER TABLE `pma__users`
  ADD PRIMARY KEY (`username`,`usergroup`);

--
-- AUTO_INCREMENT dla zrzuconych tabel
--

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

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

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

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

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

--
-- AUTO_INCREMENT dla tabeli `pma__savedsearches`
--
ALTER TABLE `pma__savedsearches`
  MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Baza danych: `restauracja`
--
CREATE DATABASE IF NOT EXISTS `restauracja` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `restauracja`;

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

--
-- Struktura tabeli dla tabeli `dania`
--

CREATE TABLE `dania` (
  `id` int(10) UNSIGNED NOT NULL,
  `typ` int(10) UNSIGNED DEFAULT NULL,
  `nazwa` text DEFAULT NULL,
  `cena` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Zrzut danych tabeli `dania`
--

INSERT INTO `dania` (`id`, `typ`, `nazwa`, `cena`) VALUES
(1, 1, 'Gazpacho', 20),
(2, 1, 'Krem z warzyw', 25),
(3, 1, 'Gulaszowa ostra', 30),
(4, 2, 'Kaczka i owoc', 30),
(5, 2, 'Kurczak pieczony', 40),
(6, 2, 'wieprzowy przysmak', 35),
(7, 2, 'Mintaj w panierce', 30),
(8, 2, 'Alle kotlet', 30),
(9, 3, 'Owoce morza', 20),
(10, 3, 'Grzybki, warzywka, sos', 15),
(11, 3, 'Orzechy i chipsy', 10),
(12, 3, 'Tatar i jajo', 15),
(13, 3, 'Bukiet warzyw', 10),
(14, 4, 'Sok porzeczkowy', 3),
(15, 4, 'Cola', 3),
(16, 4, 'Woda', 2);

--
-- Indeksy dla zrzutów tabel
--

--
-- Indeksy dla tabeli `dania`
--
ALTER TABLE `dania`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT dla zrzuconych tabel
--

--
-- AUTO_INCREMENT dla tabeli `dania`
--
ALTER TABLE `dania`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- Baza danych: `test`
--
CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `test`;
--
-- Baza danych: `t_cloud`
--
CREATE DATABASE IF NOT EXISTS `t_cloud` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `t_cloud`;
COMMIT;

