-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Počítač: 127.0.0.1
-- Vytvořeno: Stř 01. úno 2023, 09:07
-- Verze serveru: 10.1.38-MariaDB
-- Verze PHP: 7.3.3

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: `19-c-mirocha.m`
--

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

--
-- Struktura tabulky `hardware`
--

CREATE TABLE `hardware` (
  `id` int(11) NOT NULL,
  `nazev` varchar(25) NOT NULL,
  `typ` varchar(25) NOT NULL,
  `datum_n` date NOT NULL,
  `datum_p` date DEFAULT NULL,
  `cena` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Vypisuji data pro tabulku `hardware`
--

INSERT INTO `hardware` (`id`, `nazev`, `typ`, `datum_n`, `datum_p`, `cena`) VALUES
(1, 'PC', 'PC', '2022-12-06', NULL, 38000),
(2, 'Tiskarna', 'Tiskarna', '2022-11-08', '2023-02-01', 9500),
(3, 'Klavesnice', 'Klavesnice', '2023-01-17', NULL, 2500),
(4, 'PC', 'PC', '2022-12-06', NULL, 38000),
(5, 'Tiskarna', 'Tiskarna', '2022-11-08', '2023-02-01', 9500),
(6, 'Klavesnice', 'Klavesnice', '2023-01-17', NULL, 2500);

--
-- Klíče pro exportované tabulky
--

--
-- Klíče pro tabulku `hardware`
--
ALTER TABLE `hardware`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT pro tabulky
--

--
-- AUTO_INCREMENT pro tabulku `hardware`
--
ALTER TABLE `hardware`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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 */;
