many improvements
This commit is contained in:
16
wishlist.sql
16
wishlist.sql
@@ -37,19 +37,19 @@ CREATE TABLE `lists` (
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Tabellenstruktur für Tabelle `whishes`
|
||||
-- Tabellenstruktur für Tabelle `wishes`
|
||||
--
|
||||
|
||||
CREATE TABLE `whishes` (
|
||||
CREATE TABLE `wishes` (
|
||||
`ID` int(11) NOT NULL,
|
||||
`whislist` int(11) NOT NULL DEFAULT 0,
|
||||
`wishlist` 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 '',
|
||||
`pass_hash` varchar(64) NOT NULL DEFAULT '',
|
||||
`date` date NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
@@ -64,9 +64,9 @@ ALTER TABLE `lists`
|
||||
ADD PRIMARY KEY (`ID`);
|
||||
|
||||
--
|
||||
-- Indizes für die Tabelle `whishes`
|
||||
-- Indizes für die Tabelle `wishes`
|
||||
--
|
||||
ALTER TABLE `whishes`
|
||||
ALTER TABLE `wishes`
|
||||
ADD PRIMARY KEY (`ID`);
|
||||
|
||||
--
|
||||
@@ -80,9 +80,9 @@ ALTER TABLE `lists`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT für Tabelle `whishes`
|
||||
-- AUTO_INCREMENT für Tabelle `wishes`
|
||||
--
|
||||
ALTER TABLE `whishes`
|
||||
ALTER TABLE `wishes`
|
||||
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
|
Reference in New Issue
Block a user