-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 12, 2026 at 09:02 AM
-- Wersja serwera: 10.4.32-MariaDB
-- Wersja PHP: 8.0.30

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 */;

--
-- Database: `test`
--

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

--
-- Struktura tabeli dla tabeli `auta`
--

CREATE TABLE `auta` (
  `id` int(11) NOT NULL,
  `marka` varchar(50) DEFAULT NULL,
  `model` varchar(50) DEFAULT NULL,
  `rocznik` int(11) DEFAULT NULL,
  `cena` decimal(10,2) DEFAULT NULL,
  `przebieg` int(11) DEFAULT NULL,
  `powypadkowy` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `auta`
--

INSERT INTO `auta` (`id`, `marka`, `model`, `rocznik`, `cena`, `przebieg`, `powypadkowy`) VALUES
(1, 'Toyota', 'Corolla', 2018, 65000.00, 85000, 0),
(2, 'Toyota', 'Yaris', 2017, 42000.00, 92000, 0),
(3, 'BMW', '3 Series', 2016, 78000.00, 140000, 1),
(4, 'BMW', '5 Series', 2019, 125000.00, 70000, 0),
(5, 'Audi', 'A4', 2018, 90000.00, 95000, 0),
(6, 'Audi', 'A6', 2017, 110000.00, 120000, 1),
(7, 'Mercedes', 'C Class', 2019, 118000.00, 80000, 0),
(8, 'Mercedes', 'E Class', 2016, 99000.00, 150000, 1),
(9, 'Volkswagen', 'Golf', 2018, 60000.00, 100000, 0),
(10, 'Volkswagen', 'Passat', 2017, 72000.00, 130000, 0),
(11, 'Ford', 'Focus', 2016, 39000.00, 150000, 1),
(12, 'Ford', 'Mondeo', 2018, 56000.00, 110000, 0),
(13, 'Opel', 'Astra', 2017, 41000.00, 125000, 0),
(14, 'Opel', 'Insignia', 2019, 69000.00, 90000, 0),
(15, 'Skoda', 'Octavia', 2018, 62000.00, 105000, 0),
(16, 'Skoda', 'Superb', 2020, 98000.00, 65000, 0),
(17, 'Hyundai', 'i30', 2019, 52000.00, 75000, 0),
(18, 'Hyundai', 'Tucson', 2021, 115000.00, 40000, 0),
(19, 'Kia', 'Ceed', 2018, 50000.00, 95000, 0),
(20, 'Kia', 'Sportage', 2020, 102000.00, 55000, 0),
(21, 'Peugeot', '308', 2017, 43000.00, 115000, 0),
(22, 'Peugeot', '508', 2019, 87000.00, 70000, 0),
(23, 'Renault', 'Megane', 2018, 45000.00, 105000, 0),
(24, 'Renault', 'Talisman', 2019, 76000.00, 80000, 0),
(25, 'Citroen', 'C4', 2016, 37000.00, 140000, 1),
(26, 'Citroen', 'C5 Aircross', 2021, 108000.00, 35000, 0),
(27, 'Nissan', 'Qashqai', 2019, 89000.00, 65000, 0),
(28, 'Nissan', 'X-Trail', 2018, 97000.00, 90000, 0),
(29, 'Mazda', '3', 2017, 48000.00, 110000, 0),
(30, 'Mazda', '6', 2018, 73000.00, 95000, 0),
(31, 'Honda', 'Civic', 2019, 82000.00, 70000, 0),
(32, 'Honda', 'Accord', 2017, 79000.00, 100000, 0),
(33, 'Volvo', 'S60', 2018, 94000.00, 85000, 0),
(34, 'Volvo', 'XC60', 2020, 145000.00, 50000, 0),
(35, 'Jeep', 'Compass', 2019, 98000.00, 75000, 0),
(36, 'Jeep', 'Grand Cherokee', 2017, 135000.00, 120000, 1),
(37, 'Dacia', 'Duster', 2020, 65000.00, 45000, 0),
(38, 'Dacia', 'Sandero', 2018, 35000.00, 80000, 0),
(39, 'Seat', 'Leon', 2019, 61000.00, 70000, 0),
(40, 'Seat', 'Ateca', 2021, 109000.00, 30000, 0),
(41, 'Subaru', 'Forester', 2018, 88000.00, 95000, 0),
(42, 'Subaru', 'Outback', 2017, 92000.00, 110000, 0),
(43, 'Mitsubishi', 'ASX', 2019, 74000.00, 65000, 0),
(44, 'Mitsubishi', 'Outlander', 2018, 86000.00, 90000, 0),
(45, 'Tesla', 'Model 3', 2021, 180000.00, 30000, 0),
(46, 'Tesla', 'Model S', 2019, 250000.00, 50000, 0),
(47, 'Fiat', 'Tipo', 2017, 36000.00, 120000, 0),
(48, 'Fiat', '500', 2018, 42000.00, 70000, 0),
(49, 'Alfa Romeo', 'Giulia', 2019, 120000.00, 60000, 0),
(50, 'Alfa Romeo', 'Stelvio', 2020, 165000.00, 45000, 0);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `auta`
--
ALTER TABLE `auta`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
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 */;
