62 lines
1.4 KiB
SQL
62 lines
1.4 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 5.2.0
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: localhost
|
|
-- Erstellungszeit: 07. Feb 2023 um 14:51
|
|
-- Server-Version: 10.4.27-MariaDB
|
|
-- PHP-Version: 8.1.12
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
START TRANSACTION;
|
|
SET time_zone = "+00:00";
|
|
|
|
--
|
|
-- Datenbank: `k200835_dog`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Tabellenstruktur für Tabelle `contact_emails`
|
|
--
|
|
|
|
CREATE TABLE `contact_emails` (
|
|
`id` int(11) NOT NULL,
|
|
`dogs_id` int(11) NOT NULL,
|
|
`from_email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
`msg` varchar(1023) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
|
`created` timestamp NOT NULL DEFAULT current_timestamp()
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
|
|
|
|
--
|
|
-- Indizes der exportierten Tabellen
|
|
--
|
|
|
|
--
|
|
-- Indizes für die Tabelle `contact_emails`
|
|
--
|
|
ALTER TABLE `contact_emails`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `FK_dogs_id` (`dogs_id`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT für exportierte Tabellen
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT für Tabelle `contact_emails`
|
|
--
|
|
ALTER TABLE `contact_emails`
|
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
|
|
|
--
|
|
-- Constraints der exportierten Tabellen
|
|
--
|
|
|
|
--
|
|
-- Constraints der Tabelle `contact_emails`
|
|
--
|
|
ALTER TABLE `contact_emails`
|
|
ADD CONSTRAINT `FK_dogs_id` FOREIGN KEY (`dogs_id`) REFERENCES `dogs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
COMMIT; |