Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.8.5
- -- https://www.phpmyadmin.net/
- --
- -- Host: 127.0.0.1
- -- Erstellungszeit: 22. Apr 2019 um 17:06
- -- Server-Version: 10.1.38-MariaDB
- -- PHP-Version: 7.3.4
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET AUTOCOMMIT = 0;
- 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: `profile`
- --
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `fachwissen`
- --
- CREATE TABLE `fachwissen` (
- `Bezeichnung` varchar(50) NOT NULL DEFAULT '',
- `Beschreibung` varchar(50) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `interesse`
- --
- CREATE TABLE `interesse` (
- `Bezeichnung` varchar(50) NOT NULL DEFAULT '',
- `Beschreibung` varchar(50) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `kommentare`
- --
- CREATE TABLE `kommentare` (
- `cmtID` smallint(6) NOT NULL,
- `Name` varchar(50) DEFAULT NULL,
- `Kommentartext` varchar(500) DEFAULT NULL,
- `Sterne` tinyint(4) DEFAULT NULL,
- `Meldung` int(11) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `person`
- --
- CREATE TABLE `person` (
- `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
- `Vorname` varchar(20) DEFAULT NULL,
- `Nachname` varchar(20) DEFAULT NULL,
- `Mobilnummer` tinyint(4) DEFAULT NULL,
- `Festnetznummer` tinyint(4) DEFAULT NULL,
- `Email` varchar(50) DEFAULT NULL,
- `Homepage` varchar(50) DEFAULT NULL,
- `Wohnort` varchar(30) DEFAULT NULL,
- `PLZ` tinyint(4) DEFAULT NULL,
- `HausNr` tinyint(4) DEFAULT NULL,
- `Straße` varchar(20) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `personfachwissen`
- --
- CREATE TABLE `personfachwissen` (
- `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
- `Bezeichnung` varchar(50) NOT NULL DEFAULT ''
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `personinteresse`
- --
- CREATE TABLE `personinteresse` (
- `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
- `Bezeichnung` varchar(50) NOT NULL DEFAULT ''
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `personprojekt`
- --
- CREATE TABLE `personprojekt` (
- `Person_ID` tinyint(4) NOT NULL,
- `Projekt_ID` int(11) NOT NULL,
- `Rollenbezeichnung` varchar(20) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `personsonstiges`
- --
- CREATE TABLE `personsonstiges` (
- `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
- `Sonstiges_ID` tinyint(4) NOT NULL DEFAULT '0'
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `projekt`
- --
- CREATE TABLE `projekt` (
- `Projekt_ID` int(11) NOT NULL,
- `Thema` char(50) DEFAULT NULL,
- `ZeitraumAnfang` date DEFAULT NULL,
- `ZeitraumEnde` date DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `rolle`
- --
- CREATE TABLE `rolle` (
- `Rollenbezeichnung` varchar(20) NOT NULL DEFAULT '',
- `Beschreibung` varchar(100) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- -- --------------------------------------------------------
- --
- -- Tabellenstruktur für Tabelle `sonstiges`
- --
- CREATE TABLE `sonstiges` (
- `Sonstiges_ID` tinyint(4) NOT NULL DEFAULT '0',
- `Bezeichnung` varchar(20) DEFAULT NULL,
- `Beschreibung` varchar(50) DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
- --
- -- Indizes der exportierten Tabellen
- --
- --
- -- Indizes für die Tabelle `fachwissen`
- --
- ALTER TABLE `fachwissen`
- ADD PRIMARY KEY (`Bezeichnung`);
- --
- -- Indizes für die Tabelle `interesse`
- --
- ALTER TABLE `interesse`
- ADD PRIMARY KEY (`Bezeichnung`);
- --
- -- Indizes für die Tabelle `kommentare`
- --
- ALTER TABLE `kommentare`
- ADD PRIMARY KEY (`cmtID`);
- --
- -- Indizes für die Tabelle `person`
- --
- ALTER TABLE `person`
- ADD PRIMARY KEY (`Person_ID`);
- --
- -- Indizes für die Tabelle `personfachwissen`
- --
- ALTER TABLE `personfachwissen`
- ADD PRIMARY KEY (`Person_ID`,`Bezeichnung`),
- ADD KEY `Bezeichnung` (`Bezeichnung`);
- --
- -- Indizes für die Tabelle `personinteresse`
- --
- ALTER TABLE `personinteresse`
- ADD PRIMARY KEY (`Person_ID`,`Bezeichnung`),
- ADD KEY `Bezeichnung` (`Bezeichnung`);
- --
- -- Indizes für die Tabelle `personprojekt`
- --
- ALTER TABLE `personprojekt`
- ADD KEY `Person_ID` (`Person_ID`),
- ADD KEY `Projekt_ID` (`Projekt_ID`),
- ADD KEY `Rollenbezeichnung` (`Rollenbezeichnung`);
- --
- -- Indizes für die Tabelle `personsonstiges`
- --
- ALTER TABLE `personsonstiges`
- ADD PRIMARY KEY (`Person_ID`,`Sonstiges_ID`),
- ADD KEY `Sonstiges_ID` (`Sonstiges_ID`);
- --
- -- Indizes für die Tabelle `projekt`
- --
- ALTER TABLE `projekt`
- ADD PRIMARY KEY (`Projekt_ID`);
- --
- -- Indizes für die Tabelle `rolle`
- --
- ALTER TABLE `rolle`
- ADD PRIMARY KEY (`Rollenbezeichnung`);
- --
- -- Indizes für die Tabelle `sonstiges`
- --
- ALTER TABLE `sonstiges`
- ADD PRIMARY KEY (`Sonstiges_ID`);
- --
- -- AUTO_INCREMENT für exportierte Tabellen
- --
- --
- -- AUTO_INCREMENT für Tabelle `kommentare`
- --
- ALTER TABLE `kommentare`
- MODIFY `cmtID` smallint(6) NOT NULL AUTO_INCREMENT;
- --
- -- Constraints der exportierten Tabellen
- --
- --
- -- Constraints der Tabelle `personfachwissen`
- --
- ALTER TABLE `personfachwissen`
- ADD CONSTRAINT `personfachwissen_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
- ADD CONSTRAINT `personfachwissen_ibfk_2` FOREIGN KEY (`Bezeichnung`) REFERENCES `fachwissen` (`Bezeichnung`);
- --
- -- Constraints der Tabelle `personinteresse`
- --
- ALTER TABLE `personinteresse`
- ADD CONSTRAINT `personinteresse_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
- ADD CONSTRAINT `personinteresse_ibfk_2` FOREIGN KEY (`Bezeichnung`) REFERENCES `interesse` (`Bezeichnung`);
- --
- -- Constraints der Tabelle `personprojekt`
- --
- ALTER TABLE `personprojekt`
- ADD CONSTRAINT `personprojekt_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
- ADD CONSTRAINT `personprojekt_ibfk_2` FOREIGN KEY (`Projekt_ID`) REFERENCES `projekt` (`Projekt_ID`),
- ADD CONSTRAINT `personprojekt_ibfk_3` FOREIGN KEY (`Rollenbezeichnung`) REFERENCES `rolle` (`Rollenbezeichnung`);
- --
- -- Constraints der Tabelle `personsonstiges`
- --
- ALTER TABLE `personsonstiges`
- ADD CONSTRAINT `personsonstiges_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
- ADD CONSTRAINT `personsonstiges_ibfk_2` FOREIGN KEY (`Sonstiges_ID`) REFERENCES `sonstiges` (`Sonstiges_ID`);
- 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 */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement