Browse Source

Datenbank Script Updated

master
Niklas H. 3 years ago
parent
commit
0e0ffcab16
1 changed files with 187 additions and 49 deletions
  1. +187
    -43
      Datenbank.sql

+ 187
- 43
Datenbank.sql View File

@@ -1,11 +1,11 @@
-- phpMyAdmin SQL Dump
-- version 4.5.4.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 16. Sep 2016 um 16:34
-- Server-Version: 5.7.11
-- PHP-Version: 7.0.3

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
@@ -14,10 +14,27 @@ 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 utf8 */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Datenbank: `donate`
--

-- --------------------------------------------------------

--
-- Tabellenstruktur für Tabelle `catouser`
--

CREATE TABLE `catouser` (
`id` int(11) NOT NULL,
`userid` int(11) NOT NULL,
`catoid` int(11) NOT NULL,
`state` float(11,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `catouser`
--

-- --------------------------------------------------------
@@ -26,15 +43,18 @@ SET time_zone = "+00:00";
-- Tabellenstruktur für Tabelle `changelog`
--

CREATE TABLE IF NOT EXISTS `changelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `changelog` (
`id` int(11) NOT NULL,
`username` int(11) NOT NULL,
`changed` varchar(90) NOT NULL,
`amount` decimal(11,2) NOT NULL,
`reason` varchar(256) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `changelog`
--

-- --------------------------------------------------------

@@ -42,11 +62,10 @@ CREATE TABLE IF NOT EXISTS `changelog` (
-- Tabellenstruktur für Tabelle `dcato`
--

CREATE TABLE IF NOT EXISTS `dcato` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(90) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
CREATE TABLE `dcato` (
`id` int(11) NOT NULL,
`Name` varchar(90) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `dcato`
@@ -62,8 +81,8 @@ INSERT INTO `dcato` (`id`, `Name`) VALUES
-- Tabellenstruktur für Tabelle `dranks`
--

CREATE TABLE IF NOT EXISTS `dranks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `dranks` (
`id` int(11) NOT NULL,
`name` varchar(90) NOT NULL,
`state` decimal(11,2) NOT NULL DEFAULT '0.00',
`goal` decimal(11,2) NOT NULL DEFAULT '0.00',
@@ -72,9 +91,12 @@ CREATE TABLE IF NOT EXISTS `dranks` (
`timestamp` varchar(90) DEFAULT NULL,
`catoid` int(11) DEFAULT NULL,
`command` varchar(250) DEFAULT NULL,
`dcommand` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
`dcommand` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `dranks`
--

-- --------------------------------------------------------

@@ -82,8 +104,8 @@ CREATE TABLE IF NOT EXISTS `dranks` (
-- Tabellenstruktur für Tabelle `duser`
--

CREATE TABLE IF NOT EXISTS `duser` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `duser` (
`id` int(11) NOT NULL,
`username` varchar(90) NOT NULL,
`email` varchar(120) NOT NULL,
`password` varchar(90) NOT NULL,
@@ -93,16 +115,15 @@ CREATE TABLE IF NOT EXISTS `duser` (
`silber` decimal(11,2) NOT NULL DEFAULT '0.00',
`bronze` decimal(11,2) NOT NULL DEFAULT '0.00',
`role` int(11) NOT NULL DEFAULT '0',
`active` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
`active` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `duser`
--

INSERT INTO `duser` (`id`, `username`, `email`, `password`, `keystamp`, `keytstamp`, `gold`, `silber`, `bronze`, `role`, `active`) VALUES
(1, 'Admin', 'admin[at]admin.admin', '18bdb7a947cc41b6fd815804fe09433150d190673ce89a7d332c7bbbb960d1c0', 'd32176266038f05df054cb184e052448f6d163d3f5aac1cbb046990e0c108e92', '1467810165', '0.00', '0.00', '0.00', 4, 1);
(1, 'Admin', 'admin[at]admin.admin', '18bdb7a947cc41b6fd815804fe09433150d190673ce89a7d332c7bbbb960d1c0', '63823439b72956fb1dde8fb55baa1850337fd66d7646d61d81739df53520ed16', '1474040528', '0.00', '0.00', '0.00', 4, 1);

-- --------------------------------------------------------

@@ -110,15 +131,18 @@ INSERT INTO `duser` (`id`, `username`, `email`, `password`, `keystamp`, `keytsta
-- Tabellenstruktur für Tabelle `payments`
--

CREATE TABLE IF NOT EXISTS `payments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `payments` (
`id` int(11) NOT NULL,
`txn_id` varchar(90) NOT NULL,
`buyeremail` varchar(90) NOT NULL,
`buyername` varchar(90) NOT NULL,
`item_number` varchar(60) NOT NULL,
`date` varchar(120) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
`date` varchar(120) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `payments`
--

-- --------------------------------------------------------

@@ -126,8 +150,8 @@ CREATE TABLE IF NOT EXISTS `payments` (
-- Tabellenstruktur für Tabelle `pdranks`
--

CREATE TABLE IF NOT EXISTS `pdranks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `pdranks` (
`id` int(11) NOT NULL,
`name` varchar(90) NOT NULL,
`goal` decimal(11,2) NOT NULL DEFAULT '0.00',
`art` varchar(20) NOT NULL DEFAULT 'Bronze',
@@ -135,9 +159,12 @@ CREATE TABLE IF NOT EXISTS `pdranks` (
`catoid` int(11) DEFAULT NULL,
`tlimit` int(11) NOT NULL DEFAULT '0',
`command` varchar(250) DEFAULT NULL,
`dcommand` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
`dcommand` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `pdranks`
--

-- --------------------------------------------------------

@@ -145,15 +172,18 @@ CREATE TABLE IF NOT EXISTS `pdranks` (
-- Tabellenstruktur für Tabelle `rankusercon`
--

CREATE TABLE IF NOT EXISTS `rankusercon` (
`id` int(11) NOT NULL AUTO_INCREMENT,
CREATE TABLE `rankusercon` (
`id` int(11) NOT NULL,
`rankid` int(11) NOT NULL,
`userid` int(11) NOT NULL,
`timestamp` varchar(90) DEFAULT NULL,
`state` decimal(11,2) NOT NULL,
PRIMARY KEY (`id`),
KEY `rankid` (`rankid`,`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
`state` decimal(11,2) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Daten für Tabelle `rankusercon`
--


-- --------------------------------------------------------

@@ -161,11 +191,10 @@ CREATE TABLE IF NOT EXISTS `rankusercon` (
-- Tabellenstruktur für Tabelle `role`
--

CREATE TABLE IF NOT EXISTS `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rolename` varchar(90) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
CREATE TABLE `role` (
`id` int(11) NOT NULL,
`rolename` varchar(90) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Daten für Tabelle `role`
@@ -175,6 +204,115 @@ INSERT INTO `role` (`id`, `rolename`) VALUES
(0, 'GAST'),
(4, 'ADMIN');

--
-- Indizes der exportierten Tabellen
--

--
-- Indizes für die Tabelle `catouser`
--
ALTER TABLE `catouser`
ADD PRIMARY KEY (`id`),
ADD KEY `userid` (`userid`,`catoid`);

--
-- Indizes für die Tabelle `changelog`
--
ALTER TABLE `changelog`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `dcato`
--
ALTER TABLE `dcato`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `dranks`
--
ALTER TABLE `dranks`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `duser`
--
ALTER TABLE `duser`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `payments`
--
ALTER TABLE `payments`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `pdranks`
--
ALTER TABLE `pdranks`
ADD PRIMARY KEY (`id`);

--
-- Indizes für die Tabelle `rankusercon`
--
ALTER TABLE `rankusercon`
ADD PRIMARY KEY (`id`),
ADD KEY `rankid` (`rankid`,`userid`);

--
-- Indizes für die Tabelle `role`
--
ALTER TABLE `role`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT für exportierte Tabellen
--

--
-- AUTO_INCREMENT für Tabelle `catouser`
--
ALTER TABLE `catouser`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT für Tabelle `changelog`
--
ALTER TABLE `changelog`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT für Tabelle `dcato`
--
ALTER TABLE `dcato`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT für Tabelle `dranks`
--
ALTER TABLE `dranks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT für Tabelle `duser`
--
ALTER TABLE `duser`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT für Tabelle `payments`
--
ALTER TABLE `payments`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT für Tabelle `pdranks`
--
ALTER TABLE `pdranks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT für Tabelle `rankusercon`
--
ALTER TABLE `rankusercon`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT für Tabelle `role`
--
ALTER TABLE `role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
/*!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 */;

Loading…
Cancel
Save