From 640426adfa4e55dd52b581494510eccad8a1acf5 Mon Sep 17 00:00:00 2001 From: hecht Date: Tue, 9 Jun 2015 21:01:00 +0000 Subject: [PATCH] updated the sql file with the latest database scheme --- db/animegame_svn.sql | 1104 ++++++++++++++++++++++++------------------ 1 file changed, 646 insertions(+), 458 deletions(-) diff --git a/db/animegame_svn.sql b/db/animegame_svn.sql index 3c33cd0..0a5cd51 100644 --- a/db/animegame_svn.sql +++ b/db/animegame_svn.sql @@ -1,40 +1,44 @@ --- MySQL Administrator dump 1.4 +-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- +-- Host: 10.8.0.1 Database: ag_server_2 -- ------------------------------------------------------ --- Server version 5.1.41-3ubuntu12.10 - +-- Server version 5.5.43-0ubuntu0.12.04.1 /*!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 */; - +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; - +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- --- Definition of table `ag_chat` +-- Table structure for table `ag_chat` -- DROP TABLE IF EXISTS `ag_chat`; -CREATE TABLE `ag_chat` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `ag_chat` ( `user` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'none', `nachricht` text COLLATE utf8_unicode_ci, `id` int(11) NOT NULL AUTO_INCREMENT, `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=873 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `anon_chatter` +-- Table structure for table `anon_chatter` -- DROP TABLE IF EXISTS `anon_chatter`; -CREATE TABLE `anon_chatter` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `anon_chatter` ( `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `anon_id` int(11) NOT NULL, `online` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, @@ -42,16 +46,16 @@ CREATE TABLE `anon_chatter` ( PRIMARY KEY (`anon_id`), KEY `ips` (`ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `arena` +-- Table structure for table `arena` -- DROP TABLE IF EXISTS `arena`; -CREATE TABLE `arena` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `arena` ( `name` varchar(50) COLLATE utf8_unicode_ci DEFAULT 'no name arena', `luxus` int(10) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -70,24 +74,32 @@ CREATE TABLE `arena` ( PRIMARY KEY (`id`), UNIQUE KEY `besitzer` (`besitzer`), CONSTRAINT `fk_arena_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `attack_conditions` +-- DROP TABLE IF EXISTS `attack_conditions`; -CREATE TABLE `attack_conditions` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `attack_conditions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `formula` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `attacken` +-- Table structure for table `attacken` -- DROP TABLE IF EXISTS `attacken`; -CREATE TABLE `attacken` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `attacken` ( `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `starke` int(10) NOT NULL DEFAULT '0', `verteidigung` int(10) NOT NULL DEFAULT '0', @@ -99,66 +111,65 @@ CREATE TABLE `attacken` ( `geld` int(10) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'normal', - `options` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '{}', `info` text COLLATE utf8_unicode_ci NOT NULL, `req_atk` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0,0,0,0,0', `req_lvl` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0,0,0,0,0', `Frucht` int(11) DEFAULT NULL, `runden` int(10) NOT NULL DEFAULT '0', `maxlvl` int(20) NOT NULL DEFAULT '20', + `options` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `level` (`level`), KEY `fk_attacken_Frucht` (`Frucht`), CONSTRAINT `fk_attacken_Frucht` FOREIGN KEY (`Frucht`) REFERENCES `wochen_markt` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=752 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `attackenset` +-- Table structure for table `attackenset` -- DROP TABLE IF EXISTS `attackenset`; -CREATE TABLE `attackenset` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `attackenset` ( `char_id` int(11) NOT NULL, `attack_id` int(11) NOT NULL, `type` int(11) NOT NULL DEFAULT '1', `round` int(2) NOT NULL, - PRIMARY KEY (`char_ID`,`type`,`round`), + PRIMARY KEY (`char_id`,`type`,`round`), KEY `attackenset_attack_id` (`attack_id`), + KEY `attackenset_char_id` (`char_id`), CONSTRAINT `attackenset_char_id` FOREIGN KEY (`char_id`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `attackenset` --- - -/*!40000 ALTER TABLE `attackenset` DISABLE KEYS */; -LOCK TABLES `attackenset` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `attackenset` ENABLE KEYS */; - - --- --- Definition of table `attackentyp` +-- Table structure for table `attackentyp` -- DROP TABLE IF EXISTS `attackentyp`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `attackentyp` ( - `id` INTEGER NOT NULL AUTO_INCREMENT, - `name` VARCHAR(32) NOT NULL, - `anzahl` INTEGER NOT NULL DEFAULT 1, - `farbe` VARCHAR(32) DEFAULT 'white', - `kategorie` INTEGER, + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(32) COLLATE utf8_unicode_ci NOT NULL, + `anzahl` int(11) NOT NULL DEFAULT '1', + `farbe` varchar(32) COLLATE utf8_unicode_ci DEFAULT 'white', + `kategorie` int(11) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `auktion` +-- Table structure for table `auktion` -- DROP TABLE IF EXISTS `auktion`; -CREATE TABLE `auktion` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `auktion` ( `auktionsid` int(10) unsigned NOT NULL AUTO_INCREMENT, `anbieter` int(11) DEFAULT NULL, `bieter` int(11) DEFAULT NULL, @@ -176,16 +187,17 @@ CREATE TABLE `auktion` ( KEY `auktion_bieter` (`bieter`), CONSTRAINT `fk_auktion_anbieter` FOREIGN KEY (`anbieter`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_auktion_bieter` FOREIGN KEY (`bieter`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `auktion_transaktionen` +-- Table structure for table `auktion_transaktionen` -- DROP TABLE IF EXISTS `auktion_transaktionen`; -CREATE TABLE `auktion_transaktionen` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `auktion_transaktionen` ( `transaktionsid` int(10) unsigned NOT NULL AUTO_INCREMENT, `anbieter` int(11) DEFAULT NULL, `bieter` int(11) DEFAULT NULL, @@ -200,24 +212,17 @@ CREATE TABLE `auktion_transaktionen` ( KEY `fk_auktion_transaktionen_bieter` (`bieter`), CONSTRAINT `fk_auktion_transaktionen_anbieter` FOREIGN KEY (`anbieter`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_auktion_transaktionen_bieter` FOREIGN KEY (`bieter`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `auktion_transaktionen` --- - -/*!40000 ALTER TABLE `auktion_transaktionen` DISABLE KEYS */; -LOCK TABLES `auktion_transaktionen` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `auktion_transaktionen` ENABLE KEYS */; - - --- --- Definition of table `bot_image_failures` +-- Table structure for table `bot_image_failures` -- DROP TABLE IF EXISTS `bot_image_failures`; -CREATE TABLE `bot_image_failures` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `bot_image_failures` ( `userid` int(11) NOT NULL, `inserted` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `valid` varchar(10) COLLATE utf8_unicode_ci NOT NULL, @@ -225,14 +230,16 @@ CREATE TABLE `bot_image_failures` ( PRIMARY KEY (`userid`,`used`), CONSTRAINT `new_bot_image_failures_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `bot_images` +-- Table structure for table `bot_images` -- DROP TABLE IF EXISTS `bot_images`; -CREATE TABLE `bot_images` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `bot_images` ( `id` char(32) COLLATE utf8_unicode_ci NOT NULL, `phrase` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `compressed_phrase` varchar(10) COLLATE utf8_unicode_ci NOT NULL, @@ -242,36 +249,31 @@ CREATE TABLE `bot_images` ( KEY `fk_bot_images` (`userid`), CONSTRAINT `fk_bot_images` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `bot_images` --- - -/*!40000 ALTER TABLE `bot_images` DISABLE KEYS */; -LOCK TABLES `bot_images` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `bot_images` ENABLE KEYS */; - - --- --- Definition of table `char_abholcodes` +-- Table structure for table `char_abholcodes` -- DROP TABLE IF EXISTS `char_abholcodes`; -CREATE TABLE `char_abholcodes` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `char_abholcodes` ( `charid` int(10) NOT NULL, `code` varchar(32) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`charid`), CONSTRAINT `fk_char_abholcodes_charid` FOREIGN KEY (`charid`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `chars` +-- Table structure for table `chars` -- DROP TABLE IF EXISTS `chars`; -CREATE TABLE `chars` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `chars` ( `level` int(3) NOT NULL DEFAULT '1', `name` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -321,34 +323,33 @@ CREATE TABLE `chars` ( KEY `fk_chars_frucht` (`frucht`), CONSTRAINT `fk_chars_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_chars_frucht` FOREIGN KEY (`frucht`) REFERENCES `wochen_markt` (`item`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=4243 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `chars` --- - - --- --- Definition of table `cheater` +-- Table structure for table `cheater` -- DROP TABLE IF EXISTS `cheater`; -CREATE TABLE `cheater` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `cheater` ( `userid` int(11) NOT NULL, `delikt` text COLLATE utf8_unicode_ci NOT NULL, `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, KEY `userid` (`userid`,`zeit`), CONSTRAINT `fk_cheater_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan` +-- Table structure for table `clan` -- DROP TABLE IF EXISTS `clan`; -CREATE TABLE `clan` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan` ( `clanname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `clanz_pre` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `clanz_suff` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -371,33 +372,17 @@ CREATE TABLE `clan` ( KEY `co_leader` (`co_leader`), CONSTRAINT `fk_clan_co_leader` FOREIGN KEY (`co_leader`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_clan_leader` FOREIGN KEY (`leader`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=787 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - -DROP TABLE IF EXISTS `clan_challenge_whitelist`; -CREATE TABLE `clan_challenge_whitelist` ( - `clan_id` INTEGER NOT NULL, - `user_id` INTEGER NOT NULL, - PRIMARY KEY (`clan_id`, `user_id`), - CONSTRAINT `fk_clan_ch_whitelist_usr` FOREIGN KEY `fk_clan_ch_whitelist_usr` (`user_id`) - REFERENCES `user` (`id`) - ON DELETE CASCADE - ON UPDATE CASCADE, - CONSTRAINT `fk_clan_ch_whitelist_clan` FOREIGN KEY `fk_clan_ch_whitelist_clan` (`clan_id`) - REFERENCES `clan` (`id`) - ON DELETE CASCADE - ON UPDATE CASCADE -) -ENGINE = InnoDB -CHARACTER SET utf8 COLLATE utf8_general_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_challenge_clans` +-- Table structure for table `clan_challenge_clans` -- DROP TABLE IF EXISTS `clan_challenge_clans`; -CREATE TABLE `clan_challenge_clans` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_challenge_clans` ( `clan_challenge_id` int(11) NOT NULL, `id` int(11) NOT NULL, `clan_id` int(11) NOT NULL, @@ -412,14 +397,16 @@ CREATE TABLE `clan_challenge_clans` ( CONSTRAINT `clan_ch_clans_ch_id` FOREIGN KEY (`clan_challenge_id`) REFERENCES `clan_challenges` (`clan_challenge_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_clan_ch_coordinator` FOREIGN KEY (`clan_coordinator`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE SET NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_challenge_participants` +-- Table structure for table `clan_challenge_participants` -- DROP TABLE IF EXISTS `clan_challenge_participants`; -CREATE TABLE `clan_challenge_participants` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_challenge_participants` ( `clan_challenge_id` int(11) NOT NULL, `clan_id` int(11) NOT NULL, `char_id` int(11) NOT NULL, @@ -432,14 +419,16 @@ CREATE TABLE `clan_challenge_participants` ( CONSTRAINT `clan_challenge_participants_char_id` FOREIGN KEY (`char_id`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `clan_challenge_participants_clan_id` FOREIGN KEY (`clan_challenge_id`, `clan_id`) REFERENCES `clan_challenge_clans` (`clan_challenge_id`, `clan_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_challenge_requests` +-- Table structure for table `clan_challenge_requests` -- DROP TABLE IF EXISTS `clan_challenge_requests`; -CREATE TABLE `clan_challenge_requests` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_challenge_requests` ( `clan_requester` int(11) NOT NULL, `clan_challenged` int(11) NOT NULL, `challenged_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, @@ -449,18 +438,38 @@ CREATE TABLE `clan_challenge_requests` ( `active` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`clan_requester`,`clan_challenged`,`challenged_time`), KEY `fk_clan_challenge_requests_challenged` (`clan_challenged`), + KEY `fk_clan_challenge_requests_creator` (`clan_challenge_creator`), CONSTRAINT `fk_clan_challenge_requests_challenged` FOREIGN KEY (`clan_challenged`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_clan_challenge_requests_requester` FOREIGN KEY (`clan_requester`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_clan_challenge_requests_creator` FOREIGN KEY (`clan_challenge_creator`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE SET NULL + CONSTRAINT `fk_clan_challenge_requests_creator` FOREIGN KEY (`clan_challenge_creator`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE SET NULL, + CONSTRAINT `fk_clan_challenge_requests_requester` FOREIGN KEY (`clan_requester`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `clan_challenge_whitelist` +-- + +DROP TABLE IF EXISTS `clan_challenge_whitelist`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_challenge_whitelist` ( + `clan_id` int(11) NOT NULL, + `user_id` int(11) NOT NULL, + PRIMARY KEY (`clan_id`,`user_id`), + KEY `fk_clan_ch_whitelist_usr` (`user_id`), + CONSTRAINT `fk_clan_ch_whitelist_clan` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `fk_clan_ch_whitelist_usr` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_challenges` +-- Table structure for table `clan_challenges` -- DROP TABLE IF EXISTS `clan_challenges`; -CREATE TABLE `clan_challenges` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_challenges` ( `clan_challenge_id` int(11) NOT NULL AUTO_INCREMENT, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `enddate` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', @@ -471,15 +480,66 @@ CREATE TABLE `clan_challenges` ( PRIMARY KEY (`clan_challenge_id`), UNIQUE KEY `event_id` (`event_id`), CONSTRAINT `clan_challenges_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `clan_chatroom_clans` +-- + +DROP TABLE IF EXISTS `clan_chatroom_clans`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_chatroom_clans` ( + `clan_chat_id` int(11) NOT NULL, + `clan_id` int(11) NOT NULL, + KEY `clan_chatroom_clans_id` (`clan_chat_id`), + KEY `clan_chatroom_clans_clan` (`clan_id`), + CONSTRAINT `clan_chatroom_clans_clan` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `clan_chatroom_clans_id` FOREIGN KEY (`clan_chat_id`) REFERENCES `clan_chatrooms` (`clan_chat_id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `clan_chatroom_messages` +-- + +DROP TABLE IF EXISTS `clan_chatroom_messages`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_chatroom_messages` ( + `clan_chat_id` int(11) NOT NULL, + `user_id` int(11) NOT NULL, + `message` varchar(255) NOT NULL, + `msg_id` int(11) NOT NULL, + `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`clan_chat_id`,`msg_id`), + CONSTRAINT `clan_chatroom_messages_id` FOREIGN KEY (`clan_chat_id`) REFERENCES `clan_chatrooms` (`clan_chat_id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `clan_chatrooms` +-- + +DROP TABLE IF EXISTS `clan_chatrooms`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_chatrooms` ( + `clan_chat_id` int(11) NOT NULL AUTO_INCREMENT, + `foreign_id` varchar(255) NOT NULL, + PRIMARY KEY (`clan_chat_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_item` +-- Table structure for table `clan_item` -- DROP TABLE IF EXISTS `clan_item`; -CREATE TABLE `clan_item` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_item` ( `name` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `preis` bigint(20) NOT NULL DEFAULT '0', `anzahl` int(20) NOT NULL DEFAULT '0', @@ -498,37 +558,32 @@ CREATE TABLE `clan_item` ( PRIMARY KEY (`id`), KEY `anzahl` (`anzahl`), KEY `type` (`type`) -) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_locked` +-- Table structure for table `clan_locked` -- DROP TABLE IF EXISTS `clan_locked`; -CREATE TABLE `clan_locked` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_locked` ( `clanid` int(11) NOT NULL, `locked_until` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`clanid`), CONSTRAINT `clan_locked_clanid` FOREIGN KEY (`clanid`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='this table holds the data for clans beeing locked out of cla'; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `clan_locked` --- - -/*!40000 ALTER TABLE `clan_locked` DISABLE KEYS */; -LOCK TABLES `clan_locked` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `clan_locked` ENABLE KEYS */; - - --- --- Definition of table `clan_ticker` +-- Table structure for table `clan_ticker` -- DROP TABLE IF EXISTS `clan_ticker`; -CREATE TABLE `clan_ticker` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_ticker` ( `clanid` int(11) NOT NULL, `msgid` int(11) NOT NULL, `text` text COLLATE utf8_unicode_ci NOT NULL, @@ -537,14 +592,16 @@ CREATE TABLE `clan_ticker` ( KEY `fk_clan_ticker_clanid` (`clanid`), CONSTRAINT `fk_clan_ticker_clanid` FOREIGN KEY (`clanid`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `clan_ware` +-- Table structure for table `clan_ware` -- DROP TABLE IF EXISTS `clan_ware`; -CREATE TABLE `clan_ware` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `clan_ware` ( `item_id` int(20) NOT NULL DEFAULT '0', `clan` int(20) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -553,28 +610,32 @@ CREATE TABLE `clan_ware` ( KEY `fk_clan_ware_item_id` (`item_id`), CONSTRAINT `fk_clan_ware_clan` FOREIGN KEY (`clan`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_clan_ware_item_id` FOREIGN KEY (`item_id`) REFERENCES `clan_item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `defines` +-- Table structure for table `defines` -- DROP TABLE IF EXISTS `defines`; -CREATE TABLE `defines` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `defines` ( `key` varchar(30) NOT NULL, `value` varchar(20) NOT NULL, `editable` tinyint(1) NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `event_chars` +-- Table structure for table `event_chars` -- DROP TABLE IF EXISTS `event_chars`; -CREATE TABLE `event_chars` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `event_chars` ( `event_char_id` int(11) unsigned NOT NULL, `char_id` int(11) DEFAULT NULL, `char_name` varchar(30) NOT NULL, @@ -591,20 +652,21 @@ CREATE TABLE `event_chars` ( `defense` int(11) NOT NULL, `luck` int(11) NOT NULL, `stamina` int(11) NOT NULL, - `abgeholt` tinyint(1) NOT NULL DEFAULT 1, + `abgeholt` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`event_id`,`event_char_id`), KEY `char_bild` (`char_bild`), CONSTRAINT `event_chars_event_id` FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `event_fight_metadata` +-- Table structure for table `event_fight_metadata` -- DROP TABLE IF EXISTS `event_fight_metadata`; -CREATE TABLE `event_fight_metadata` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `event_fight_metadata` ( `event_id` int(10) unsigned NOT NULL, `event_fight_id` int(10) unsigned NOT NULL, `key` varchar(20) NOT NULL, @@ -612,14 +674,16 @@ CREATE TABLE `event_fight_metadata` ( PRIMARY KEY (`event_id`,`event_fight_id`,`key`), CONSTRAINT `event_fight_metadata_fightid` FOREIGN KEY (`event_id`, `event_fight_id`) REFERENCES `event_fights` (`event_id`, `event_fight_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `event_fight_rounds` +-- Table structure for table `event_fight_rounds` -- DROP TABLE IF EXISTS `event_fight_rounds`; -CREATE TABLE `event_fight_rounds` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `event_fight_rounds` ( `event_id` int(10) unsigned NOT NULL, `event_fight_id` int(10) unsigned NOT NULL, `event_char_id` int(10) unsigned NOT NULL, @@ -639,18 +703,20 @@ CREATE TABLE `event_fight_rounds` ( CONSTRAINT `event_fight_rounds_chars` FOREIGN KEY (`event_id`, `event_char_id`) REFERENCES `event_chars` (`event_id`, `event_char_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `event_fight_rounds_event_figths` FOREIGN KEY (`event_id`, `event_fight_id`) REFERENCES `event_fights` (`event_id`, `event_fight_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `event_fights` +-- Table structure for table `event_fights` -- DROP TABLE IF EXISTS `event_fights`; -CREATE TABLE `event_fights` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `event_fights` ( `event_id` int(10) unsigned NOT NULL, `event_fight_id` int(10) unsigned NOT NULL, - `visible` timestamp NOT NULL, - `starting` timestamp NOT NULL, + `visible` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `starting` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `host` int(10) unsigned NOT NULL, `winner` int(10) unsigned NOT NULL, PRIMARY KEY (`event_id`,`event_fight_id`), @@ -660,40 +726,46 @@ CREATE TABLE `event_fights` ( CONSTRAINT `event_fights_host` FOREIGN KEY (`event_id`, `host`) REFERENCES `event_chars` (`event_id`, `event_char_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `event_fights_winner` FOREIGN KEY (`event_id`, `winner`) REFERENCES `event_chars` (`event_id`, `event_char_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `events` +-- Table structure for table `events` -- DROP TABLE IF EXISTS `events`; -CREATE TABLE `events` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `events` ( `event_id` int(11) unsigned NOT NULL, `event_type` int(11) unsigned NOT NULL, PRIMARY KEY (`event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `faq_entries` +-- Table structure for table `faq_entries` -- DROP TABLE IF EXISTS `faq_entries`; -CREATE TABLE `faq_entries` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `faq_entries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent` int(11) NOT NULL, `header` text COLLATE utf8_unicode_ci NOT NULL, `body` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `ff11_komments` +-- Table structure for table `ff11_komments` -- DROP TABLE IF EXISTS `ff11_komments`; -CREATE TABLE `ff11_komments` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `ff11_komments` ( `user` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `text` text COLLATE utf8_unicode_ci NOT NULL, `ip` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -703,16 +775,17 @@ CREATE TABLE `ff11_komments` ( `zeit` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', KEY `id` (`id`), KEY `news_id` (`news_id`) -) ENGINE=InnoDB AUTO_INCREMENT=790 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `ff11_news` +-- Table structure for table `ff11_news` -- DROP TABLE IF EXISTS `ff11_news`; -CREATE TABLE `ff11_news` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `ff11_news` ( `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `betreff` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `text` text COLLATE utf8_unicode_ci NOT NULL, @@ -720,29 +793,33 @@ CREATE TABLE `ff11_news` ( `zeit` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `datum` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=134 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `gm_actions` +-- Table structure for table `gm_actions` -- DROP TABLE IF EXISTS `gm_actions`; -CREATE TABLE `gm_actions` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `gm_actions` ( `userid` int(10) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `message` text COLLATE utf8_unicode_ci NOT NULL, `ip` varchar(40) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`userid`,`time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `highscore` +-- Table structure for table `highscore` -- DROP TABLE IF EXISTS `highscore`; -CREATE TABLE `highscore` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `highscore` ( `runde` int(11) NOT NULL, `art` varchar(35) COLLATE utf8_unicode_ci NOT NULL, `datum` date NOT NULL, @@ -756,13 +833,16 @@ CREATE TABLE `highscore` ( CONSTRAINT `fk_highscore_charid` FOREIGN KEY (`charid`) REFERENCES `chars` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_highscore_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `ignolist` +-- Table structure for table `ignolist` -- DROP TABLE IF EXISTS `ignolist`; -CREATE TABLE `ignolist` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `ignolist` ( `user` int(11) NOT NULL DEFAULT '0', `besitzer` int(11) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -771,14 +851,17 @@ CREATE TABLE `ignolist` ( KEY `fk_ignolist_besitzer` (`besitzer`), CONSTRAINT `fk_ignolist_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_ignolist_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `item` +-- Table structure for table `item` -- DROP TABLE IF EXISTS `item`; -CREATE TABLE `item` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `item` ( `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `hp` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `mp` varchar(100) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', @@ -797,14 +880,17 @@ CREATE TABLE `item` ( PRIMARY KEY (`id`), KEY `anzahl` (`anzahl`), KEY `type` (`type`) -) ENGINE=InnoDB AUTO_INCREMENT=408 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `kampf` +-- Table structure for table `kampf` -- DROP TABLE IF EXISTS `kampf`; -CREATE TABLE `kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -845,15 +931,17 @@ CREATE TABLE `kampf` ( `arena_geld` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `db_satz_2` (`db_satz`) -) ENGINE=InnoDB AUTO_INCREMENT=494 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `kampf_list` +-- Table structure for table `kampf_list` -- DROP TABLE IF EXISTS `kampf_list`; -CREATE TABLE `kampf_list` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `kampf_list` ( `kampfname` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `charakter` int(11) NOT NULL DEFAULT '0', `rasse` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'ALL', @@ -869,14 +957,17 @@ CREATE TABLE `kampf_list` ( UNIQUE KEY `charakter` (`charakter`), KEY `ip` (`ip`), CONSTRAINT `fk_kampf_list_charakter` FOREIGN KEY (`charakter`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=172352 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `lernen` +-- Table structure for table `lernen` -- DROP TABLE IF EXISTS `lernen`; -CREATE TABLE `lernen` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `lernen` ( `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `at_id` int(11) NOT NULL DEFAULT '0', `besitzer` int(11) NOT NULL DEFAULT '0', @@ -891,14 +982,17 @@ CREATE TABLE `lernen` ( CONSTRAINT `fk_lernen_atid` FOREIGN KEY (`at_id`) REFERENCES `attacken` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_lernen_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_lernen_name` FOREIGN KEY (`name`) REFERENCES `attacken` (`name`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=1471 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `liga_kampf` +-- Table structure for table `liga_kampf` -- DROP TABLE IF EXISTS `liga_kampf`; -CREATE TABLE `liga_kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `liga_kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -937,31 +1031,36 @@ CREATE TABLE `liga_kampf` ( PRIMARY KEY (`id`), KEY `char1` (`char1`), KEY `char2` (`char2`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `multiuser` +-- Table structure for table `multiuser` -- DROP TABLE IF EXISTS `multiuser`; -CREATE TABLE `multiuser` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `multiuser` ( `user1` int(11) NOT NULL, `user2` int(11) NOT NULL, - `occured` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `occured` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `type` varchar(25) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`user1`,`user2`,`occured`), KEY `multiuser_user2` (`user2`), CONSTRAINT `multiuser_user1` FOREIGN KEY (`user1`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `multiuser_user2` FOREIGN KEY (`user2`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Eine Tabelle die Logbuch ueber multiuser haelt!'; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `nachricht` +-- Table structure for table `nachricht` -- DROP TABLE IF EXISTS `nachricht`; -CREATE TABLE `nachricht` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `nachricht` ( `betreff` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL, `von` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `datum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, @@ -973,14 +1072,17 @@ CREATE TABLE `nachricht` ( PRIMARY KEY (`id`), KEY `besitzer` (`besitzer`), CONSTRAINT `fk_nachricht_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=300 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `npc_item` +-- Table structure for table `npc_item` -- DROP TABLE IF EXISTS `npc_item`; -CREATE TABLE `npc_item` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `npc_item` ( `charakter` int(11) NOT NULL DEFAULT '0', `item` int(20) NOT NULL DEFAULT '0', `mal` int(3) NOT NULL DEFAULT '0', @@ -988,18 +1090,24 @@ CREATE TABLE `npc_item` ( `feld` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `wieviel` int(3) NOT NULL DEFAULT '1', `preis` int(50) NOT NULL DEFAULT '0', + `req_charakter` int(11) DEFAULT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), KEY `fk_npc_item_charakter` (`charakter`), - CONSTRAINT `fk_npc_item_charakter` FOREIGN KEY (`charakter`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; + KEY `fk_npc_item_req_charakter` (`req_charakter`), + CONSTRAINT `fk_npc_item_charakter` FOREIGN KEY (`charakter`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `fk_npc_item_req_charakter` FOREIGN KEY (`req_charakter`) REFERENCES `chars` (`id`) ON DELETE SET NULL ON UPDATE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `npc_ware` +-- Table structure for table `npc_ware` -- DROP TABLE IF EXISTS `npc_ware`; -CREATE TABLE `npc_ware` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `npc_ware` ( `user` int(11) NOT NULL DEFAULT '0', `charakter` int(11) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1008,14 +1116,17 @@ CREATE TABLE `npc_ware` ( KEY `fk_npc_ware_charakter` (`charakter`), CONSTRAINT `fk_npc_ware_charakter` FOREIGN KEY (`charakter`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_npc_ware_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `online` +-- Table structure for table `online` -- DROP TABLE IF EXISTS `online`; -CREATE TABLE `online` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `online` ( `anzahl` int(20) NOT NULL DEFAULT '0', `datum` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1024,14 +1135,27 @@ CREATE TABLE `online` ( `turnier_klein` text COLLATE utf8_unicode_ci NOT NULL, `turnier_gross` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `poll` +-- Dumping data for table `online` +-- + +LOCK TABLES `online` WRITE; +/*!40000 ALTER TABLE `online` DISABLE KEYS */; +INSERT INTO `online` (`id`) VALUES ('1'); +/*!40000 ALTER TABLE `online` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `poll` -- DROP TABLE IF EXISTS `poll`; -CREATE TABLE `poll` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `poll` ( `pollid` int(11) NOT NULL AUTO_INCREMENT, `ersteller` int(11) NOT NULL, `thema` varchar(80) COLLATE utf8_unicode_ci NOT NULL, @@ -1041,26 +1165,32 @@ CREATE TABLE `poll` ( PRIMARY KEY (`pollid`), UNIQUE KEY `thema` (`thema`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `poll_options` +-- Table structure for table `poll_options` -- DROP TABLE IF EXISTS `poll_options`; -CREATE TABLE `poll_options` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `poll_options` ( `pollid` int(11) NOT NULL, `polloptionid` int(11) NOT NULL, `text` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`pollid`,`polloptionid`), CONSTRAINT `fk_poll_options_pollid` FOREIGN KEY (`pollid`) REFERENCES `poll` (`pollid`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `poll_votes` +-- Table structure for table `poll_votes` -- DROP TABLE IF EXISTS `poll_votes`; -CREATE TABLE `poll_votes` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `poll_votes` ( `pollid` int(11) NOT NULL AUTO_INCREMENT, `polloptionid` int(11) NOT NULL, `userid` int(11) NOT NULL, @@ -1069,14 +1199,16 @@ CREATE TABLE `poll_votes` ( KEY `fk_poll_votes_pollid` (`pollid`,`polloptionid`), CONSTRAINT `fk_poll_votes_pollid` FOREIGN KEY (`pollid`, `polloptionid`) REFERENCES `poll_options` (`pollid`, `polloptionid`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quest_fights` +-- Table structure for table `quest_fights` -- DROP TABLE IF EXISTS `quest_fights`; -CREATE TABLE `quest_fights` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quest_fights` ( `charid` int(11) NOT NULL, `fightnr` int(11) NOT NULL, `monsterid` int(11) NOT NULL, @@ -1086,14 +1218,16 @@ CREATE TABLE `quest_fights` ( PRIMARY KEY (`charid`,`fightnr`), CONSTRAINT `fk_quest_fights` FOREIGN KEY (`charid`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='in dieser Tabelle werden die Fights eingetragen'; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quest_monster` +-- Table structure for table `quest_monster` -- DROP TABLE IF EXISTS `quest_monster`; -CREATE TABLE `quest_monster` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quest_monster` ( `name` varchar(75) COLLATE utf8_unicode_ci NOT NULL, `starke` int(5) NOT NULL DEFAULT '0', `speed` int(5) NOT NULL DEFAULT '0', @@ -1109,15 +1243,17 @@ CREATE TABLE `quest_monster` ( `bild` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quest_monster_orte` +-- Table structure for table `quest_monster_orte` -- DROP TABLE IF EXISTS `quest_monster_orte`; -CREATE TABLE `quest_monster_orte` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quest_monster_orte` ( `monsterid` int(11) NOT NULL, `ortid` int(11) NOT NULL, PRIMARY KEY (`monsterid`,`ortid`), @@ -1125,15 +1261,16 @@ CREATE TABLE `quest_monster_orte` ( CONSTRAINT `quest_monster_orte_monsterid` FOREIGN KEY (`monsterid`) REFERENCES `quest_monster` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `quest_monster_orte_ortid` FOREIGN KEY (`ortid`) REFERENCES `quest_ort` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quest_ort` +-- Table structure for table `quest_ort` -- DROP TABLE IF EXISTS `quest_ort`; -CREATE TABLE `quest_ort` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quest_ort` ( `stadt` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `reisende` int(20) NOT NULL DEFAULT '0', `kosten` int(20) NOT NULL DEFAULT '0', @@ -1146,15 +1283,17 @@ CREATE TABLE `quest_ort` ( `name_x` int(11) DEFAULT NULL, `name_y` int(11) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quest_rounds` +-- Table structure for table `quest_rounds` -- DROP TABLE IF EXISTS `quest_rounds`; -CREATE TABLE `quest_rounds` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quest_rounds` ( `charid` int(11) NOT NULL, `fightnr` int(11) NOT NULL, `roundnr` int(11) NOT NULL, @@ -1179,14 +1318,16 @@ CREATE TABLE `quest_rounds` ( PRIMARY KEY (`charid`,`fightnr`,`roundnr`), CONSTRAINT `fk_quest_rounds_fight` FOREIGN KEY (`charid`, `fightnr`) REFERENCES `quest_fights` (`charid`, `fightnr`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Hier sind die einzelnen Rounden der Fights eingetragen'; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `quests` +-- Table structure for table `quests` -- DROP TABLE IF EXISTS `quests`; -CREATE TABLE `quests` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `quests` ( `charid` int(11) NOT NULL, `dauer` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `st` int(11) NOT NULL, @@ -1202,62 +1343,86 @@ CREATE TABLE `quests` ( CONSTRAINT `fk_quests_charid` FOREIGN KEY (`charid`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_quests_ortid` FOREIGN KEY (`ortid`) REFERENCES `quest_ort` (`id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `rassen` +-- Table structure for table `rassen` -- DROP TABLE IF EXISTS `rassen`; -CREATE TABLE `rassen` ( - `name` varchar(25) NOT NULL, - `rassenid` int(11) NOT NULL, - `anime` varchar(2) NOT NULL, - `createable` tinyint(1) NOT NULL, - PRIMARY KEY (`rassenid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Diese Klass soll die array.php ersetzen'; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `rassen` ( + `id` int(11) NOT NULL, + `name` varchar(45) NOT NULL, + `type` int(11) NOT NULL DEFAULT '0', + `hp` int(11) NOT NULL DEFAULT '0', + `mp` int(11) NOT NULL DEFAULT '0', + `str` int(11) NOT NULL DEFAULT '0', + `def` int(11) NOT NULL DEFAULT '0', + `spd` int(11) NOT NULL DEFAULT '0', + `lck` int(11) NOT NULL DEFAULT '0', + `stm` int(11) NOT NULL DEFAULT '0', + `special` tinyint(4) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `fk_rassen_type` (`type`), + CONSTRAINT `fk_rassen_type` FOREIGN KEY (`type`) REFERENCES `rassen_type` (`id`) ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `rassen_attacken` +-- Table structure for table `rassen_type` -- -DROP TABLE IF EXISTS `rassen_attacken`; -CREATE TABLE `rassen_attacken` ( - `rassenid` int(11) NOT NULL, - `attackenid` int(11) NOT NULL, - PRIMARY KEY (`rassenid`,`attackenid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='In dieser Tabelle werden den Rassen die Attacken zugewiesen'; +DROP TABLE IF EXISTS `rassen_type`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `rassen_type` ( + `id` int(11) NOT NULL, + `name` varchar(45) NOT NULL, + `gm_only` tinyint(4) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `referer` +-- Table structure for table `referer` -- DROP TABLE IF EXISTS `referer`; -CREATE TABLE `referer` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `referer` ( `url` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `datum` date NOT NULL, `anzahl` int(11) NOT NULL, PRIMARY KEY (`url`,`datum`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `semaphore` +-- Table structure for table `semaphore` -- DROP TABLE IF EXISTS `semaphore`; -CREATE TABLE `semaphore` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `semaphore` ( `ressource` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`ressource`), KEY `Zeitindex` (`zeit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Die Tabelle, die hoffentlich alle Zugriffsprobleme loesen wi'; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `shop` +-- Table structure for table `shop` -- DROP TABLE IF EXISTS `shop`; -CREATE TABLE `shop` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `shop` ( `item` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0', `mal` int(3) NOT NULL DEFAULT '0', `datensatz` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1267,13 +1432,16 @@ CREATE TABLE `shop` ( `com` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Kein Kommentar', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `sp_item` +-- Table structure for table `sp_item` -- DROP TABLE IF EXISTS `sp_item`; -CREATE TABLE `sp_item` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `sp_item` ( `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `preis` int(10) NOT NULL DEFAULT '0', `wert` mediumint(5) NOT NULL DEFAULT '0', @@ -1281,17 +1449,20 @@ CREATE TABLE `sp_item` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `slot` int(2) NOT NULL DEFAULT '0', - `tausch_lvl` int(2) NOT NULL DEFAULT '1', + `tausch_lvl` int(2) unsigned NOT NULL DEFAULT '1', `tausch_anzahl` int(4) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `sp_ware` +-- Table structure for table `sp_ware` -- DROP TABLE IF EXISTS `sp_ware`; -CREATE TABLE `sp_ware` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `sp_ware` ( `item` int(11) NOT NULL DEFAULT '0', `user` int(11) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1300,26 +1471,32 @@ CREATE TABLE `sp_ware` ( KEY `user` (`user`), CONSTRAINT `fk_sp_ware_item` FOREIGN KEY (`item`) REFERENCES `sp_item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_sp_ware_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=1081 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `spammer` +-- Table structure for table `spammer` -- DROP TABLE IF EXISTS `spammer`; -CREATE TABLE `spammer` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `spammer` ( `userid` int(11) NOT NULL, `bann_until` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`userid`,`bann_until`), CONSTRAINT `fk_spammer_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `t_kampf` +-- Table structure for table `t_kampf` -- DROP TABLE IF EXISTS `t_kampf`; -CREATE TABLE `t_kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1353,13 +1530,34 @@ CREATE TABLE `t_kampf` ( PRIMARY KEY (`id`), KEY `besucher` (`besucher`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `top_kampf` +-- Table structure for table `tasking` +-- + +DROP TABLE IF EXISTS `tasking`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `tasking` ( + `task_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `script_name` varchar(15) NOT NULL, + `parameter` varchar(255) NOT NULL, + `schedule_time` int(10) unsigned NOT NULL, + `mode` smallint(5) unsigned NOT NULL, + `catchup` tinyint(1) NOT NULL, + PRIMARY KEY (`task_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `top_kampf` -- DROP TABLE IF EXISTS `top_kampf`; -CREATE TABLE `top_kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `top_kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1399,14 +1597,17 @@ CREATE TABLE `top_kampf` ( `steh` int(11) NOT NULL, `sitz` int(11) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=375 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `transaktionen` +-- Table structure for table `transaktionen` -- DROP TABLE IF EXISTS `transaktionen`; -CREATE TABLE `transaktionen` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `transaktionen` ( `kaeufer` int(11) DEFAULT NULL, `verkaeufer` int(11) DEFAULT NULL, `item` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, @@ -1417,13 +1618,16 @@ CREATE TABLE `transaktionen` ( `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, KEY `Kaeufer` (`kaeufer`,`verkaeufer`,`zeit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `turnier1` +-- Table structure for table `turnier1` -- DROP TABLE IF EXISTS `turnier1`; -CREATE TABLE `turnier1` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `besitzer` int(20) NOT NULL DEFAULT '0', `charakter` int(25) NOT NULL DEFAULT '0', @@ -1433,14 +1637,30 @@ CREATE TABLE `turnier1` ( KEY `charakter` (`charakter`), CONSTRAINT `turnier1_besitzer` FOREIGN KEY (`besitzer`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `turnier1_char` FOREIGN KEY (`charakter`) REFERENCES `chars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `turnier_instances` +-- Table structure for table `turnier_gebuehr` +-- + +DROP TABLE IF EXISTS `turnier_gebuehr`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier_gebuehr` ( + `art` varchar(10) COLLATE utf8_unicode_ci NOT NULL, + `gebuehr` int(11) NOT NULL DEFAULT '0' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `turnier_instances` -- DROP TABLE IF EXISTS `turnier_instances`; -CREATE TABLE `turnier_instances` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier_instances` ( `turnier_id` int(10) unsigned NOT NULL, `event_id` int(10) unsigned NOT NULL, `turnier_version` int(10) unsigned NOT NULL, @@ -1450,13 +1670,16 @@ CREATE TABLE `turnier_instances` ( KEY `fk_turnier_instances_events` (`event_id`,`turnier_id`), CONSTRAINT `fk_turnier_instances_turnier_verisons` FOREIGN KEY (`turnier_type_id`, `turnier_version`) REFERENCES `turnier_versions` (`turnier_type_id`, `turnier_version`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `turnier_kampf` +-- Table structure for table `turnier_kampf` -- DROP TABLE IF EXISTS `turnier_kampf`; -CREATE TABLE `turnier_kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier_kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1497,26 +1720,31 @@ CREATE TABLE `turnier_kampf` ( KEY `char1` (`char1`), KEY `char2` (`char2`), KEY `round` (`round`) -) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `turnier_types` +-- Table structure for table `turnier_types` -- DROP TABLE IF EXISTS `turnier_types`; -CREATE TABLE `turnier_types` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier_types` ( `turnier_type_id` int(10) unsigned NOT NULL, `turnier_type_name` varchar(30) NOT NULL, PRIMARY KEY (`turnier_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `turnier_versions` +-- Table structure for table `turnier_versions` -- DROP TABLE IF EXISTS `turnier_versions`; -CREATE TABLE `turnier_versions` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `turnier_versions` ( `turnier_type_id` int(10) unsigned NOT NULL, `turnier_version` int(10) unsigned NOT NULL, `fusion_chars` tinyint(1) NOT NULL, @@ -1539,30 +1767,33 @@ CREATE TABLE `turnier_versions` ( PRIMARY KEY (`turnier_type_id`,`turnier_version`), CONSTRAINT `fk_turnier_versions_turnier_types` FOREIGN KEY (`turnier_type_id`) REFERENCES `turnier_types` (`turnier_type_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `umsatz` +-- Table structure for table `umsatz` -- DROP TABLE IF EXISTS `umsatz`; -CREATE TABLE `umsatz` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `umsatz` ( `betrag` decimal(10,2) NOT NULL, - `waehrung` varchar(10) COLLATE utf8_unicode_ci NOT NULL, `instanz` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `kommentar` text COLLATE utf8_unicode_ci NOT NULL, `datum` date NOT NULL, `malus` decimal(10,2) NOT NULL, PRIMARY KEY (`instanz`,`datum`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Hier werden alle Umsaetze verzeichnet'; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user` +-- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; -CREATE TABLE `user` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user` ( `nickname` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `passwort` varchar(200) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mail` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1593,15 +1824,17 @@ CREATE TABLE `user` ( KEY `ip` (`ip`), KEY `fk_user_clan` (`clan`), CONSTRAINT `fk_user_clan` FOREIGN KEY (`clan`) REFERENCES `clan` (`id`) ON DELETE SET NULL ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=3584 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_activation` +-- Table structure for table `user_activation` -- DROP TABLE IF EXISTS `user_activation`; -CREATE TABLE `user_activation` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_activation` ( `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `username` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `passwort` varchar(50) COLLATE utf8_unicode_ci NOT NULL, @@ -1609,42 +1842,31 @@ CREATE TABLE `user_activation` ( `registerdate` date NOT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - -DROP TABLE IF EXISTS `user_meta_data`; -CREATE TABLE `user_meta_data` ( - `user_id` INTEGER NOT NULL, - `key` VARCHAR(32) NOT NULL, - `value` VARCHAR(32) NOT NULL, - PRIMARY KEY (`user_id`, `key`), - CONSTRAINT `user_meta_data_userid` FOREIGN KEY `user_meta_data_userid` (`user_id`) - REFERENCES `user` (`id`) - ON DELETE CASCADE - ON UPDATE CASCADE -) -ENGINE = InnoDB -CHARACTER SET utf8 COLLATE utf8_general_ci; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_adblock` +-- Table structure for table `user_adblock` -- DROP TABLE IF EXISTS `user_adblock`; -CREATE TABLE `user_adblock` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_adblock` ( `userid` int(11) NOT NULL, - `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`userid`,`time`), CONSTRAINT `user_adblock_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_clan` +-- Table structure for table `user_clan` -- DROP TABLE IF EXISTS `user_clan`; -CREATE TABLE `user_clan` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_clan` ( `spende` bigint(20) NOT NULL, `userid` int(11) NOT NULL, `clanid` int(11) NOT NULL, @@ -1653,15 +1875,16 @@ CREATE TABLE `user_clan` ( CONSTRAINT `fk_user_clan_clanid` FOREIGN KEY (`clanid`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_user_clan_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_clan_invitations` +-- Table structure for table `user_clan_invitations` -- DROP TABLE IF EXISTS `user_clan_invitations`; -CREATE TABLE `user_clan_invitations` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_clan_invitations` ( `userid` int(11) NOT NULL, `clanid` int(11) NOT NULL, `valid` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, @@ -1670,69 +1893,93 @@ CREATE TABLE `user_clan_invitations` ( CONSTRAINT `user_clan_invitations_clanid` FOREIGN KEY (`clanid`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `user_clan_invitations_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_gruppe` +-- Table structure for table `user_gruppe` -- DROP TABLE IF EXISTS `user_gruppe`; -CREATE TABLE `user_gruppe` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_gruppe` ( `gruppen_id` int(11) NOT NULL AUTO_INCREMENT, `gruppen_name` varchar(50) NOT NULL, `gruppen_beschreibung` text, PRIMARY KEY (`gruppen_id`), UNIQUE KEY `name` (`gruppen_name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Dumping data for table `user_gruppe` +-- +LOCK TABLES `user_gruppe` WRITE; +/*!40000 ALTER TABLE `user_gruppe` DISABLE KEYS */; +INSERT INTO `user_gruppe` (`gruppen_id`, `gruppen_name`, `gruppen_beschreibung`) VALUES (1,'admin',NULL),(2,'tester',NULL),(3,'entwickler',NULL),(4,'designer',NULL),(5,'werbung_an',NULL),(6,'inaktiv_loeschschutz',NULL),(7,'aktiv_loeschschutz',NULL),(8,'aktiv_chat',NULL); +/*!40000 ALTER TABLE `user_gruppe` ENABLE KEYS */; +UNLOCK TABLES; -- --- Definition of table `user_gruppe_zuordnung` +-- Table structure for table `user_gruppe_zuordnung` -- DROP TABLE IF EXISTS `user_gruppe_zuordnung`; -CREATE TABLE `user_gruppe_zuordnung` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_gruppe_zuordnung` ( `user_id` int(11) NOT NULL DEFAULT '0', `gruppen_id` int(11) NOT NULL DEFAULT '0', UNIQUE KEY `user_id` (`user_id`,`gruppen_id`), KEY `fk_gruppe_user_gruppe` (`gruppen_id`), - CONSTRAINT `user_gruppe_zuordnung_userid` FOREIGN KEY (`user_id` ) REFERENCES `user` (`id` ) ON DELETE CASCADE ON UPDATE CASCADE, - INDEX `user_gruppe_zuordnung_userid` (`user_id` ASC) + KEY `user_gruppe_zuordnung_userid` (`user_id`), + CONSTRAINT `user_gruppe_zuordnung_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `user_rename` +-- Table structure for table `user_meta_data` +-- + +DROP TABLE IF EXISTS `user_meta_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_meta_data` ( + `user_id` int(11) NOT NULL, + `key` varchar(32) NOT NULL, + `value` varchar(32) NOT NULL, + PRIMARY KEY (`user_id`,`key`), + CONSTRAINT `user_meta_data_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `user_rename` -- DROP TABLE IF EXISTS `user_rename`; -CREATE TABLE `user_rename` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_rename` ( `userid` int(11) NOT NULL, `datum` date NOT NULL, `pre_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `post_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, - `wunsch` tinyint(4) NOT NULL DEFAULT '0', + `wunsch` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`userid`,`datum`), CONSTRAINT `fk_user_rename_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `user_rename` --- - -/*!40000 ALTER TABLE `user_rename` DISABLE KEYS */; -LOCK TABLES `user_rename` WRITE; -INSERT INTO `user_rename` VALUES (3576,'2011-08-24','Coyote Starrk','Aizen',0); -UNLOCK TABLES; -/*!40000 ALTER TABLE `user_rename` ENABLE KEYS */; - - --- --- Definition of table `user_ticker` +-- Table structure for table `user_ticker` -- DROP TABLE IF EXISTS `user_ticker`; -CREATE TABLE `user_ticker` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_ticker` ( `userid` int(11) NOT NULL, `text` text COLLATE utf8_unicode_ci NOT NULL, `msgid` int(11) NOT NULL, @@ -1740,35 +1987,31 @@ CREATE TABLE `user_ticker` ( KEY `new_index` (`userid`,`msgid`,`date`), CONSTRAINT `fk_user_ticker_userid` FOREIGN KEY (`userid`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `vote` +-- Table structure for table `vote` -- DROP TABLE IF EXISTS `vote`; -CREATE TABLE `vote` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `vote` ( `user` int(20) NOT NULL DEFAULT '0', `vote` int(20) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `vote` --- - -/*!40000 ALTER TABLE `vote` DISABLE KEYS */; -LOCK TABLES `vote` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `vote` ENABLE KEYS */; - - --- --- Definition of table `wanted_kampf` +-- Table structure for table `wanted_kampf` -- DROP TABLE IF EXISTS `wanted_kampf`; -CREATE TABLE `wanted_kampf` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `wanted_kampf` ( `hp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `hp2` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `mp1` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -1808,23 +2051,16 @@ CREATE TABLE `wanted_kampf` ( KEY `char1` (`char1`), KEY `char2` (`char2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `wanted_kampf` --- - -/*!40000 ALTER TABLE `wanted_kampf` DISABLE KEYS */; -LOCK TABLES `wanted_kampf` WRITE; -UNLOCK TABLES; -/*!40000 ALTER TABLE `wanted_kampf` ENABLE KEYS */; - - --- --- Definition of table `ware` +-- Table structure for table `ware` -- DROP TABLE IF EXISTS `ware`; -CREATE TABLE `ware` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `ware` ( `item_id` int(20) NOT NULL DEFAULT '0', `user` int(20) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1834,14 +2070,17 @@ CREATE TABLE `ware` ( KEY `fk_ware_item_id` (`item_id`), CONSTRAINT `fk_ware_item_id` FOREIGN KEY (`item_id`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_ware_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=15931 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `wochen_markt` +-- Table structure for table `wochen_markt` -- DROP TABLE IF EXISTS `wochen_markt`; -CREATE TABLE `wochen_markt` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `wochen_markt` ( `item` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `starke` int(2) NOT NULL DEFAULT '0', `ver` int(2) NOT NULL DEFAULT '0', @@ -1859,19 +2098,21 @@ CREATE TABLE `wochen_markt` ( `art` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'normal', `info` text COLLATE utf8_unicode_ci NOT NULL, `kategorie` varchar(20) COLLATE utf8_unicode_ci NOT NULL, - `tausch_lvl` int(2) NOT NULL DEFAULT '1', + `tausch_lvl` int(2) unsigned NOT NULL DEFAULT '1', `tausch_anzahl` int(4) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `item` (`item`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; -- --- Definition of table `wochen_ware` +-- Table structure for table `wochen_ware` -- DROP TABLE IF EXISTS `wochen_ware`; -CREATE TABLE `wochen_ware` ( +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `wochen_ware` ( `item` int(25) NOT NULL DEFAULT '0', `user` int(25) NOT NULL DEFAULT '0', `id` int(11) NOT NULL AUTO_INCREMENT, @@ -1880,64 +2121,9 @@ CREATE TABLE `wochen_ware` ( KEY `fk_wochen_ware_user` (`user`), CONSTRAINT `fk_wochen_ware_item` FOREIGN KEY (`item`) REFERENCES `wochen_markt` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_wochen_ware_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; - - -CREATE TABLE `tasking` ( - `task_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, - `script_name` varchar(15) NOT NULL, - `parameter` varchar(255) NOT NULL, - `schedule_time` INTEGER UNSIGNED NOT NULL, - `mode` SMALLINT UNSIGNED NOT NULL, - `catchup` BOOLEAN NOT NULL, - PRIMARY KEY (`task_id`) -) -ENGINE = InnoDB -CHARACTER SET utf8 COLLATE utf8_general_ci; - --- --- Definition of table `clan_chatrooms` --- - -DROP TABLE IF EXISTS `clan_chatrooms`; -CREATE TABLE `clan_chatrooms` ( - `clan_chat_id` int(11) NOT NULL AUTO_INCREMENT, - `foreign_id` varchar(255) NOT NULL, - PRIMARY KEY (`clan_chat_id`) -) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; - - - -DROP TABLE IF EXISTS `clan_chatroom_clans`; -CREATE TABLE `clan_chatroom_clans` ( - `clan_chat_id` int(11) NOT NULL, - `clan_id` int(11) NOT NULL, - KEY `clan_chatroom_clans_id` (`clan_chat_id`), - KEY `clan_chatroom_clans_clan` (`clan_id`), - CONSTRAINT `clan_chatroom_clans_clan` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `clan_chatroom_clans_id` FOREIGN KEY (`clan_chat_id`) REFERENCES `clan_chatrooms` (`clan_chat_id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- --- Definition of table `clan_chatroom_messages` --- - -DROP TABLE IF EXISTS `clan_chatroom_messages`; -CREATE TABLE `clan_chatroom_messages` ( - `clan_chat_id` int(11) NOT NULL, - `user_id` int(11) NOT NULL, - `message` varchar(255) NOT NULL, - `msg_id` int(11) NOT NULL, - `zeit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`clan_chat_id`,`msg_id`), - CONSTRAINT `clan_chatroom_messages_id` FOREIGN KEY (`clan_chat_id`) REFERENCES `clan_chatrooms` (`clan_chat_id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - - - - - +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; @@ -1945,4 +2131,6 @@ CREATE TABLE `clan_chatroom_messages` ( /*!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 */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; \ No newline at end of file +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2015-06-09 22:43:55