diff --git a/image_duplicates.sql b/image_duplicates.sql new file mode 100644 index 0000000..3a5f628 --- /dev/null +++ b/image_duplicates.sql @@ -0,0 +1,69 @@ +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + +-- +-- Datenbank: `image_duplicates` +-- + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `no_duplicates` +-- + +CREATE TABLE `no_duplicates` ( + `id` int NOT NULL, + `pd_id` int NOT NULL, + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `possible_duplicates` +-- + +CREATE TABLE `possible_duplicates` ( + `id` int NOT NULL, + `file1` varchar(255) NOT NULL, + `file2` varchar(255) NOT NULL, + `date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- +-- Indizes der exportierten Tabellen +-- + +-- +-- Indizes für die Tabelle `no_duplicates` +-- +ALTER TABLE `no_duplicates` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `pd_id` (`pd_id`); + +-- +-- Indizes für die Tabelle `possible_duplicates` +-- +ALTER TABLE `possible_duplicates` + ADD PRIMARY KEY (`id`), + ADD KEY `file1` (`file1`), + ADD KEY `file2` (`file2`); + +-- +-- AUTO_INCREMENT für exportierte Tabellen +-- + +-- +-- AUTO_INCREMENT für Tabelle `no_duplicates` +-- +ALTER TABLE `no_duplicates` + MODIFY `id` int NOT NULL AUTO_INCREMENT; + +-- +-- AUTO_INCREMENT für Tabelle `possible_duplicates` +-- +ALTER TABLE `possible_duplicates` + MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; +COMMIT;