From 48d3433416fb3bf1c7affe3c8222b5280bdb8ee4 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Tue, 4 Oct 2022 22:45:26 +0200 Subject: [PATCH] added SQL-Structure template --- wishlist.sql | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 wishlist.sql diff --git a/wishlist.sql b/wishlist.sql new file mode 100644 index 0000000..421b4b5 --- /dev/null +++ b/wishlist.sql @@ -0,0 +1,91 @@ +-- phpMyAdmin SQL Dump +-- version 5.2.0 +-- https://www.phpmyadmin.net/ +-- +-- Host: localhost +-- Erstellungszeit: 04. Okt 2022 um 22:36 +-- Server-Version: 10.5.15-MariaDB-0+deb11u1 +-- PHP-Version: 8.0.22 + +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: `wishlist` +-- + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `lists` +-- + +CREATE TABLE `lists` ( + `ID` int(11) NOT NULL, + `title` varchar(255) NOT NULL, + `description` text NOT NULL, + `edit_pw` varchar(64) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `whishes` +-- + +CREATE TABLE `whishes` ( + `ID` int(11) NOT NULL, + `whislist` int(11) NOT NULL DEFAULT 0, + `title` varchar(128) NOT NULL, + `description` text NOT NULL, + `link` text NOT NULL, + `image` text NOT NULL, + `price` int(11) NOT NULL, + `reserved` tinyint(1) NOT NULL DEFAULT 0, + `reserved_pw` varchar(64) NOT NULL DEFAULT '', + `date` date NOT NULL DEFAULT current_timestamp() +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Indizes der exportierten Tabellen +-- + +-- +-- Indizes für die Tabelle `lists` +-- +ALTER TABLE `lists` + ADD PRIMARY KEY (`ID`); + +-- +-- Indizes für die Tabelle `whishes` +-- +ALTER TABLE `whishes` + ADD PRIMARY KEY (`ID`); + +-- +-- AUTO_INCREMENT für exportierte Tabellen +-- + +-- +-- AUTO_INCREMENT für Tabelle `lists` +-- +ALTER TABLE `lists` + MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT für Tabelle `whishes` +-- +ALTER TABLE `whishes` + MODIFY `ID` int(11) 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 */;