Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: 127.0.0.1
  6. -- Erstellungszeit: 22. Apr 2019 um 17:06
  7. -- Server-Version: 10.1.38-MariaDB
  8. -- PHP-Version: 7.3.4
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Datenbank: `profile`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Tabellenstruktur für Tabelle `fachwissen`
  29. --
  30.  
  31. CREATE TABLE `fachwissen` (
  32. `Bezeichnung` varchar(50) NOT NULL DEFAULT '',
  33. `Beschreibung` varchar(50) DEFAULT NULL
  34. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  35.  
  36. -- --------------------------------------------------------
  37.  
  38. --
  39. -- Tabellenstruktur für Tabelle `interesse`
  40. --
  41.  
  42. CREATE TABLE `interesse` (
  43. `Bezeichnung` varchar(50) NOT NULL DEFAULT '',
  44. `Beschreibung` varchar(50) DEFAULT NULL
  45. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  46.  
  47. -- --------------------------------------------------------
  48.  
  49. --
  50. -- Tabellenstruktur für Tabelle `kommentare`
  51. --
  52.  
  53. CREATE TABLE `kommentare` (
  54. `cmtID` smallint(6) NOT NULL,
  55. `Name` varchar(50) DEFAULT NULL,
  56. `Kommentartext` varchar(500) DEFAULT NULL,
  57. `Sterne` tinyint(4) DEFAULT NULL,
  58. `Meldung` int(11) DEFAULT NULL
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  60.  
  61. -- --------------------------------------------------------
  62.  
  63. --
  64. -- Tabellenstruktur für Tabelle `person`
  65. --
  66.  
  67. CREATE TABLE `person` (
  68. `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
  69. `Vorname` varchar(20) DEFAULT NULL,
  70. `Nachname` varchar(20) DEFAULT NULL,
  71. `Mobilnummer` tinyint(4) DEFAULT NULL,
  72. `Festnetznummer` tinyint(4) DEFAULT NULL,
  73. `Email` varchar(50) DEFAULT NULL,
  74. `Homepage` varchar(50) DEFAULT NULL,
  75. `Wohnort` varchar(30) DEFAULT NULL,
  76. `PLZ` tinyint(4) DEFAULT NULL,
  77. `HausNr` tinyint(4) DEFAULT NULL,
  78. `Straße` varchar(20) DEFAULT NULL
  79. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  80.  
  81. -- --------------------------------------------------------
  82.  
  83. --
  84. -- Tabellenstruktur für Tabelle `personfachwissen`
  85. --
  86.  
  87. CREATE TABLE `personfachwissen` (
  88. `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
  89. `Bezeichnung` varchar(50) NOT NULL DEFAULT ''
  90. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  91.  
  92. -- --------------------------------------------------------
  93.  
  94. --
  95. -- Tabellenstruktur für Tabelle `personinteresse`
  96. --
  97.  
  98. CREATE TABLE `personinteresse` (
  99. `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
  100. `Bezeichnung` varchar(50) NOT NULL DEFAULT ''
  101. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  102.  
  103. -- --------------------------------------------------------
  104.  
  105. --
  106. -- Tabellenstruktur für Tabelle `personprojekt`
  107. --
  108.  
  109. CREATE TABLE `personprojekt` (
  110. `Person_ID` tinyint(4) NOT NULL,
  111. `Projekt_ID` int(11) NOT NULL,
  112. `Rollenbezeichnung` varchar(20) DEFAULT NULL
  113. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  114.  
  115. -- --------------------------------------------------------
  116.  
  117. --
  118. -- Tabellenstruktur für Tabelle `personsonstiges`
  119. --
  120.  
  121. CREATE TABLE `personsonstiges` (
  122. `Person_ID` tinyint(4) NOT NULL DEFAULT '0',
  123. `Sonstiges_ID` tinyint(4) NOT NULL DEFAULT '0'
  124. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  125.  
  126. -- --------------------------------------------------------
  127.  
  128. --
  129. -- Tabellenstruktur für Tabelle `projekt`
  130. --
  131.  
  132. CREATE TABLE `projekt` (
  133. `Projekt_ID` int(11) NOT NULL,
  134. `Thema` char(50) DEFAULT NULL,
  135. `ZeitraumAnfang` date DEFAULT NULL,
  136. `ZeitraumEnde` date DEFAULT NULL
  137. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  138.  
  139. -- --------------------------------------------------------
  140.  
  141. --
  142. -- Tabellenstruktur für Tabelle `rolle`
  143. --
  144.  
  145. CREATE TABLE `rolle` (
  146. `Rollenbezeichnung` varchar(20) NOT NULL DEFAULT '',
  147. `Beschreibung` varchar(100) DEFAULT NULL
  148. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  149.  
  150. -- --------------------------------------------------------
  151.  
  152. --
  153. -- Tabellenstruktur für Tabelle `sonstiges`
  154. --
  155.  
  156. CREATE TABLE `sonstiges` (
  157. `Sonstiges_ID` tinyint(4) NOT NULL DEFAULT '0',
  158. `Bezeichnung` varchar(20) DEFAULT NULL,
  159. `Beschreibung` varchar(50) DEFAULT NULL
  160. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  161.  
  162. --
  163. -- Indizes der exportierten Tabellen
  164. --
  165.  
  166. --
  167. -- Indizes für die Tabelle `fachwissen`
  168. --
  169. ALTER TABLE `fachwissen`
  170. ADD PRIMARY KEY (`Bezeichnung`);
  171.  
  172. --
  173. -- Indizes für die Tabelle `interesse`
  174. --
  175. ALTER TABLE `interesse`
  176. ADD PRIMARY KEY (`Bezeichnung`);
  177.  
  178. --
  179. -- Indizes für die Tabelle `kommentare`
  180. --
  181. ALTER TABLE `kommentare`
  182. ADD PRIMARY KEY (`cmtID`);
  183.  
  184. --
  185. -- Indizes für die Tabelle `person`
  186. --
  187. ALTER TABLE `person`
  188. ADD PRIMARY KEY (`Person_ID`);
  189.  
  190. --
  191. -- Indizes für die Tabelle `personfachwissen`
  192. --
  193. ALTER TABLE `personfachwissen`
  194. ADD PRIMARY KEY (`Person_ID`,`Bezeichnung`),
  195. ADD KEY `Bezeichnung` (`Bezeichnung`);
  196.  
  197. --
  198. -- Indizes für die Tabelle `personinteresse`
  199. --
  200. ALTER TABLE `personinteresse`
  201. ADD PRIMARY KEY (`Person_ID`,`Bezeichnung`),
  202. ADD KEY `Bezeichnung` (`Bezeichnung`);
  203.  
  204. --
  205. -- Indizes für die Tabelle `personprojekt`
  206. --
  207. ALTER TABLE `personprojekt`
  208. ADD KEY `Person_ID` (`Person_ID`),
  209. ADD KEY `Projekt_ID` (`Projekt_ID`),
  210. ADD KEY `Rollenbezeichnung` (`Rollenbezeichnung`);
  211.  
  212. --
  213. -- Indizes für die Tabelle `personsonstiges`
  214. --
  215. ALTER TABLE `personsonstiges`
  216. ADD PRIMARY KEY (`Person_ID`,`Sonstiges_ID`),
  217. ADD KEY `Sonstiges_ID` (`Sonstiges_ID`);
  218.  
  219. --
  220. -- Indizes für die Tabelle `projekt`
  221. --
  222. ALTER TABLE `projekt`
  223. ADD PRIMARY KEY (`Projekt_ID`);
  224.  
  225. --
  226. -- Indizes für die Tabelle `rolle`
  227. --
  228. ALTER TABLE `rolle`
  229. ADD PRIMARY KEY (`Rollenbezeichnung`);
  230.  
  231. --
  232. -- Indizes für die Tabelle `sonstiges`
  233. --
  234. ALTER TABLE `sonstiges`
  235. ADD PRIMARY KEY (`Sonstiges_ID`);
  236.  
  237. --
  238. -- AUTO_INCREMENT für exportierte Tabellen
  239. --
  240.  
  241. --
  242. -- AUTO_INCREMENT für Tabelle `kommentare`
  243. --
  244. ALTER TABLE `kommentare`
  245. MODIFY `cmtID` smallint(6) NOT NULL AUTO_INCREMENT;
  246.  
  247. --
  248. -- Constraints der exportierten Tabellen
  249. --
  250.  
  251. --
  252. -- Constraints der Tabelle `personfachwissen`
  253. --
  254. ALTER TABLE `personfachwissen`
  255. ADD CONSTRAINT `personfachwissen_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
  256. ADD CONSTRAINT `personfachwissen_ibfk_2` FOREIGN KEY (`Bezeichnung`) REFERENCES `fachwissen` (`Bezeichnung`);
  257.  
  258. --
  259. -- Constraints der Tabelle `personinteresse`
  260. --
  261. ALTER TABLE `personinteresse`
  262. ADD CONSTRAINT `personinteresse_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
  263. ADD CONSTRAINT `personinteresse_ibfk_2` FOREIGN KEY (`Bezeichnung`) REFERENCES `interesse` (`Bezeichnung`);
  264.  
  265. --
  266. -- Constraints der Tabelle `personprojekt`
  267. --
  268. ALTER TABLE `personprojekt`
  269. ADD CONSTRAINT `personprojekt_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
  270. ADD CONSTRAINT `personprojekt_ibfk_2` FOREIGN KEY (`Projekt_ID`) REFERENCES `projekt` (`Projekt_ID`),
  271. ADD CONSTRAINT `personprojekt_ibfk_3` FOREIGN KEY (`Rollenbezeichnung`) REFERENCES `rolle` (`Rollenbezeichnung`);
  272.  
  273. --
  274. -- Constraints der Tabelle `personsonstiges`
  275. --
  276. ALTER TABLE `personsonstiges`
  277. ADD CONSTRAINT `personsonstiges_ibfk_1` FOREIGN KEY (`Person_ID`) REFERENCES `person` (`Person_ID`),
  278. ADD CONSTRAINT `personsonstiges_ibfk_2` FOREIGN KEY (`Sonstiges_ID`) REFERENCES `sonstiges` (`Sonstiges_ID`);
  279. COMMIT;
  280.  
  281. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  282. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  283. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement