-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Erstellungszeit: 16. Okt 2025 um 10:31
-- Server-Version: 10.4.32-MariaDB
-- PHP-Version: 8.2.12

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

--
-- Datenbank: `datum`
--
CREATE DATABASE IF NOT EXISTS `datum` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `datum`;

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

--
-- Tabellenstruktur für Tabelle `fluege`
--

CREATE TABLE `fluege` (
  `flug_id` int(11) NOT NULL,
  `flugnummer` varchar(20) NOT NULL,
  `abflug_ort` varchar(100) DEFAULT NULL,
  `ankunft_ort` varchar(100) DEFAULT NULL,
  `abflug` datetime NOT NULL,
  `ankunft` datetime NOT NULL,
  `erstellt_am` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Daten für Tabelle `fluege`
--

INSERT INTO `fluege` (`flug_id`, `flugnummer`, `abflug_ort`, `ankunft_ort`, `abflug`, `ankunft`, `erstellt_am`) VALUES
(1, 'LH100', 'Frankfurt', 'Berlin', '2025-10-08 08:00:00', '2025-10-08 09:10:00', '2025-10-16 08:25:39'),
(2, 'AF203', 'Paris', 'Rom', '2025-11-05 11:30:00', '2025-11-05 13:25:00', '2025-10-16 08:25:39'),
(3, 'BA304', 'London', 'Madrid', '2025-12-10 07:45:00', '2025-12-10 10:00:00', '2025-10-16 08:25:39'),
(4, 'DL405', 'New York', 'Los Angeles', '2026-01-15 15:00:00', '2026-01-15 18:30:00', '2025-10-16 08:25:39'),
(5, 'SQ501', 'Singapur', 'Sydney', '2026-02-03 21:00:00', '2026-02-04 07:00:00', '2025-10-16 08:25:39'),
(6, 'EK606', 'Dubai', 'Bangkok', '2026-03-12 02:15:00', '2026-03-12 11:30:00', '2025-10-16 08:25:39'),
(7, 'LH707', 'München', 'Wien', '2025-10-20 06:40:00', '2025-10-20 07:45:00', '2025-10-16 08:25:39'),
(8, 'TK808', 'Istanbul', 'Amsterdam', '2025-11-28 13:20:00', '2025-11-28 15:50:00', '2025-10-16 08:25:39'),
(9, 'UA909', 'Chicago', 'Toronto', '2026-01-18 17:10:00', '2026-01-18 19:00:00', '2025-10-16 08:25:39'),
(10, 'QF110', 'Melbourne', 'Auckland', '2026-03-25 09:00:00', '2026-03-25 14:10:00', '2025-10-16 08:25:39');

--
-- Indizes der exportierten Tabellen
--

--
-- Indizes für die Tabelle `fluege`
--
ALTER TABLE `fluege`
  ADD PRIMARY KEY (`flug_id`);

--
-- AUTO_INCREMENT für exportierte Tabellen
--

--
-- AUTO_INCREMENT für Tabelle `fluege`
--
ALTER TABLE `fluege`
  MODIFY `flug_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
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 */;
