[8416] Fixed problem with double cast form passives at loading.
[getmangos.git] / sql / characters.sql
blobee289d2d0d4fef9221fbb6be966fcb20c3ed8e5c
1 -- MySQL dump 10.11
2 --
3 -- Host: localhost    Database: characters
4 -- ------------------------------------------------------
5 -- Server version       5.0.45-Debian_1ubuntu3.1-log
7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 /*!40101 SET NAMES utf8 */;
11 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 /*!40103 SET TIME_ZONE='+00:00' */;
13 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
19 -- Table structure for table `character_db_version`
22 DROP TABLE IF EXISTS `character_db_version`;
23 CREATE TABLE `character_db_version` (
24   `required_8409_01_characters_guild` bit(1) default NULL
25 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
28 -- Dumping data for table `character_db_version`
31 LOCK TABLES `character_db_version` WRITE;
32 /*!40000 ALTER TABLE `character_db_version` DISABLE KEYS */;
33 INSERT INTO `character_db_version` VALUES
34 (NULL);
35 /*!40000 ALTER TABLE `character_db_version` ENABLE KEYS */;
36 UNLOCK TABLES;
39 -- Table structure for table `account_data`
42 DROP TABLE IF EXISTS `account_data`;
43 CREATE TABLE `account_data` (
44   `account` int(11) unsigned NOT NULL default '0',
45   `type` int(11) unsigned NOT NULL default '0',
46   `time` bigint(11) unsigned NOT NULL default '0',
47   `data` longtext NOT NULL,
48   PRIMARY KEY  (`account`,`type`)
49 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
52 -- Dumping data for table `account_data`
55 LOCK TABLES `account_data` WRITE;
56 /*!40000 ALTER TABLE `account_data` DISABLE KEYS */;
57 /*!40000 ALTER TABLE `account_data` ENABLE KEYS */;
58 UNLOCK TABLES;
61 -- Table structure for table `arena_team`
64 DROP TABLE IF EXISTS `arena_team`;
65 CREATE TABLE `arena_team` (
66   `arenateamid` int(10) unsigned NOT NULL default '0',
67   `name` char(255) NOT NULL,
68   `captainguid` int(10) unsigned NOT NULL default '0',
69   `type` tinyint(3) unsigned NOT NULL default '0',
70   `BackgroundColor` int(10) unsigned NOT NULL default '0',
71   `EmblemStyle` int(10) unsigned NOT NULL default '0',
72   `EmblemColor` int(10) unsigned NOT NULL default '0',
73   `BorderStyle` int(10) unsigned NOT NULL default '0',
74   `BorderColor` int(10) unsigned NOT NULL default '0',
75   PRIMARY KEY  (`arenateamid`)
76 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
79 -- Dumping data for table `arena_team`
82 LOCK TABLES `arena_team` WRITE;
83 /*!40000 ALTER TABLE `arena_team` DISABLE KEYS */;
84 /*!40000 ALTER TABLE `arena_team` ENABLE KEYS */;
85 UNLOCK TABLES;
88 -- Table structure for table `arena_team_member`
91 DROP TABLE IF EXISTS `arena_team_member`;
92 CREATE TABLE `arena_team_member` (
93   `arenateamid` int(10) unsigned NOT NULL default '0',
94   `guid` int(10) unsigned NOT NULL default '0',
95   `played_week` int(10) unsigned NOT NULL default '0',
96   `wons_week` int(10) unsigned NOT NULL default '0',
97   `played_season` int(10) unsigned NOT NULL default '0',
98   `wons_season` int(10) unsigned NOT NULL default '0',
99   `personal_rating` int(10) UNSIGNED NOT NULL DEFAULT '0',
100   PRIMARY KEY  (`arenateamid`,`guid`)
101 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
104 -- Dumping data for table `arena_team_member`
107 LOCK TABLES `arena_team_member` WRITE;
108 /*!40000 ALTER TABLE `arena_team_member` DISABLE KEYS */;
109 /*!40000 ALTER TABLE `arena_team_member` ENABLE KEYS */;
110 UNLOCK TABLES;
113 -- Table structure for table `arena_team_stats`
116 DROP TABLE IF EXISTS `arena_team_stats`;
117 CREATE TABLE `arena_team_stats` (
118   `arenateamid` int(10) unsigned NOT NULL default '0',
119   `rating` int(10) unsigned NOT NULL default '0',
120   `games` int(10) unsigned NOT NULL default '0',
121   `wins` int(10) unsigned NOT NULL default '0',
122   `played` int(10) unsigned NOT NULL default '0',
123   `wins2` int(10) unsigned NOT NULL default '0',
124   `rank` int(10) unsigned NOT NULL default '0',
125   PRIMARY KEY  (`arenateamid`)
126 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
129 -- Dumping data for table `arena_team_stats`
132 LOCK TABLES `arena_team_stats` WRITE;
133 /*!40000 ALTER TABLE `arena_team_stats` DISABLE KEYS */;
134 /*!40000 ALTER TABLE `arena_team_stats` ENABLE KEYS */;
135 UNLOCK TABLES;
138 -- Table structure for table `auctionhouse`
141 DROP TABLE IF EXISTS `auctionhouse`;
142 CREATE TABLE `auctionhouse` (
143   `id` int(11) unsigned NOT NULL default '0',
144   `auctioneerguid` int(11) unsigned NOT NULL default '0',
145   `itemguid` int(11) unsigned NOT NULL default '0',
146   `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
147   `itemowner` int(11) unsigned NOT NULL default '0',
148   `buyoutprice` int(11) NOT NULL default '0',
149   `time` bigint(40) NOT NULL default '0',
150   `buyguid` int(11) unsigned NOT NULL default '0',
151   `lastbid` int(11) NOT NULL default '0',
152   `startbid` int(11) NOT NULL default '0',
153   `deposit` int(11) NOT NULL default '0',
154   PRIMARY KEY  (`id`),
155   UNIQUE KEY `item_guid` (`itemguid`)
156 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
159 -- Dumping data for table `auctionhouse`
162 LOCK TABLES `auctionhouse` WRITE;
163 /*!40000 ALTER TABLE `auctionhouse` DISABLE KEYS */;
164 /*!40000 ALTER TABLE `auctionhouse` ENABLE KEYS */;
165 UNLOCK TABLES;
168 -- Table structure for table `bugreport`
171 DROP TABLE IF EXISTS `bugreport`;
172 CREATE TABLE `bugreport` (
173   `id` int(11) NOT NULL auto_increment COMMENT 'Identifier',
174   `type` varchar(255) NOT NULL default '',
175   `content` varchar(255) NOT NULL default '',
176   PRIMARY KEY  (`id`)
177 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Debug System';
180 -- Dumping data for table `bugreport`
183 LOCK TABLES `bugreport` WRITE;
184 /*!40000 ALTER TABLE `bugreport` DISABLE KEYS */;
185 /*!40000 ALTER TABLE `bugreport` ENABLE KEYS */;
186 UNLOCK TABLES;
189 -- Table structure for table `characters`
192 DROP TABLE IF EXISTS `characters`;
193 CREATE TABLE `characters` (
194   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
195   `account` int(11) unsigned NOT NULL default '0' COMMENT 'Account Identifier',
196   `data` longtext,
197   `name` varchar(12) NOT NULL default '',
198   `race` tinyint(3) unsigned NOT NULL default '0',
199   `class` tinyint(3) unsigned NOT NULL default '0',
200   `gender` TINYINT UNSIGNED NOT NULL default '0',
201   `level` TINYINT UNSIGNED NOT NULL default '0',
202   `xp` INT UNSIGNED NOT NULL default '0',
203   `money` INT UNSIGNED NOT NULL default '0',
204   `playerBytes` INT UNSIGNED NOT NULL default '0',
205   `playerBytes2` INT UNSIGNED NOT NULL default '0',
206   `playerFlags` INT UNSIGNED NOT NULL default '0',
207   `position_x` float NOT NULL default '0',
208   `position_y` float NOT NULL default '0',
209   `position_z` float NOT NULL default '0',
210   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
211   `dungeon_difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0',
212   `orientation` float NOT NULL default '0',
213   `taximask` longtext,
214   `online` tinyint(3) unsigned NOT NULL default '0',
215   `cinematic` tinyint(3) unsigned NOT NULL default '0',
216   `totaltime` int(11) unsigned NOT NULL default '0',
217   `leveltime` int(11) unsigned NOT NULL default '0',
218   `logout_time` bigint(20) unsigned NOT NULL default '0',
219   `is_logout_resting` tinyint(3) unsigned NOT NULL default '0',
220   `rest_bonus` float NOT NULL default '0',
221   `resettalents_cost` int(11) unsigned NOT NULL default '0',
222   `resettalents_time` bigint(20) unsigned NOT NULL default '0',
223   `trans_x` float NOT NULL default '0',
224   `trans_y` float NOT NULL default '0',
225   `trans_z` float NOT NULL default '0',
226   `trans_o` float NOT NULL default '0',
227   `transguid` bigint(20) unsigned NOT NULL default '0',
228   `extra_flags` int(11) unsigned NOT NULL default '0',
229   `stable_slots` tinyint(1) unsigned NOT NULL default '0',
230   `at_login` int(11) unsigned NOT NULL default '0',
231   `zone` int(11) unsigned NOT NULL default '0',
232   `death_expire_time` bigint(20) unsigned NOT NULL default '0',
233   `taxi_path` text,
234   `arena_pending_points` int(10) UNSIGNED NOT NULL default '0',
235   PRIMARY KEY  (`guid`),
236   KEY `idx_account` (`account`),
237   KEY `idx_online` (`online`),
238   KEY `idx_name` (`name`)
239 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
242 -- Dumping data for table `characters`
245 LOCK TABLES `characters` WRITE;
246 /*!40000 ALTER TABLE `characters` DISABLE KEYS */;
247 /*!40000 ALTER TABLE `characters` ENABLE KEYS */;
248 UNLOCK TABLES;
251 -- Table structure for table `character_achievement`
254 DROP TABLE IF EXISTS `character_achievement`;
255 CREATE TABLE `character_achievement` (
256   `guid` int(11) unsigned NOT NULL,
257   `achievement` int(11) unsigned  NOT NULL,
258   `date` bigint(11) unsigned NOT NULL default '0',
259   PRIMARY KEY  (`guid`,`achievement`)
260 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
263 -- Dumping data for table `character_achievement`
266 LOCK TABLES `character_achievement` WRITE;
267 /*!40000 ALTER TABLE `character_achievement` DISABLE KEYS */;
268 /*!40000 ALTER TABLE `character_achievement` ENABLE KEYS */;
269 UNLOCK TABLES;
272 -- Table structure for table `character_achievement_progress`
275 DROP TABLE IF EXISTS `character_achievement_progress`;
276 CREATE TABLE `character_achievement_progress` (
277   `guid` int(11) unsigned NOT NULL,
278   `criteria` int(11) unsigned NOT NULL,
279   `counter` int(11) unsigned NOT NULL,
280   `date` bigint(11) unsigned NOT NULL default '0',
281   PRIMARY KEY  (`guid`,`criteria`)
282 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
285 -- Dumping data for table `character_achievement_progress`
288 LOCK TABLES `character_achievement_progress` WRITE;
289 /*!40000 ALTER TABLE `character_achievement_progress` DISABLE KEYS */;
290 /*!40000 ALTER TABLE `character_achievement_progress` ENABLE KEYS */;
291 UNLOCK TABLES;
294 -- Table structure for table `character_action`
297 DROP TABLE IF EXISTS `character_action`;
298 CREATE TABLE `character_action` (
299   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
300   `button` tinyint(3) unsigned NOT NULL default '0',
301   `action` int(11) unsigned NOT NULL default '0',
302   `type` tinyint(3) unsigned NOT NULL default '0',
303   PRIMARY KEY  (`guid`,`button`)
304 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
307 -- Dumping data for table `character_action`
310 LOCK TABLES `character_action` WRITE;
311 /*!40000 ALTER TABLE `character_action` DISABLE KEYS */;
312 /*!40000 ALTER TABLE `character_action` ENABLE KEYS */;
313 UNLOCK TABLES;
316 -- Table structure for table `character_aura`
319 DROP TABLE IF EXISTS `character_aura`;
320 CREATE TABLE `character_aura` (
321   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
322   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
323   `spell` int(11) unsigned NOT NULL default '0',
324   `effect_index` int(11) unsigned NOT NULL default '0',
325   `stackcount` int(11) NOT NULL default '1',
326   `amount` int(11) NOT NULL default '0',
327   `maxduration` int(11) NOT NULL default '0',
328   `remaintime` int(11) NOT NULL default '0',
329   `remaincharges` int(11) NOT NULL default '0',
330   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
331 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
334 -- Dumping data for table `character_aura`
337 LOCK TABLES `character_aura` WRITE;
338 /*!40000 ALTER TABLE `character_aura` DISABLE KEYS */;
339 /*!40000 ALTER TABLE `character_aura` ENABLE KEYS */;
340 UNLOCK TABLES;
343 -- Table structure for table `character_battleground_data`
346 DROP TABLE IF EXISTS `character_battleground_data`;
347 CREATE TABLE `character_battleground_data` (
348   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
349   `instance_id` int(11) unsigned NOT NULL default '0',
350   `team` int(11) unsigned NOT NULL default '0',
351   `join_x` float NOT NULL default '0',
352   `join_y` float NOT NULL default '0',
353   `join_z` float NOT NULL default '0',
354   `join_o` float NOT NULL default '0',
355   `join_map` int(11) NOT NULL default '0',
356   `taxi_start` int(11) NOT NULL default '0',
357   `taxi_end` int(11) NOT NULL default '0',
358   `mount_spell` int(11) NOT NULL default '0',
359   PRIMARY KEY  (`guid`)
360 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
363 -- Dumping data for table `character_battleground_data`
366 LOCK TABLES `character_battleground_data` WRITE;
367 /*!40000 ALTER TABLE `character_battleground_data` DISABLE KEYS */;
368 /*!40000 ALTER TABLE `character_battleground_data` ENABLE KEYS */;
369 UNLOCK TABLES;
372 -- Table structure for table `character_declinedname`
375 DROP TABLE IF EXISTS `character_declinedname`;
376 CREATE TABLE `character_declinedname` (
377   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
378   `genitive` varchar(15) NOT NULL default '',
379   `dative` varchar(15) NOT NULL default '',
380   `accusative` varchar(15) NOT NULL default '',
381   `instrumental` varchar(15) NOT NULL default '',
382   `prepositional` varchar(15) NOT NULL default '',
383   PRIMARY KEY  (`guid`)
384 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
387 -- Dumping data for table `character_declinedname`
390 LOCK TABLES `character_declinedname` WRITE;
391 /*!40000 ALTER TABLE `character_declinedname` DISABLE KEYS */;
392 /*!40000 ALTER TABLE `character_declinedname` ENABLE KEYS */;
393 UNLOCK TABLES;
396 -- Table structure for table `character_equipmentsets`
399 DROP TABLE IF EXISTS `character_equipmentsets`;
400 CREATE TABLE `character_equipmentsets` (
401   `guid` int(11) NOT NULL default '0',
402   `setguid` bigint(20) NOT NULL auto_increment,
403   `setindex` tinyint(4) NOT NULL default '0',
404   `name` varchar(100) NOT NULL,
405   `iconname` varchar(100) NOT NULL,
406   `item0` int(11) NOT NULL default '0',
407   `item1` int(11) NOT NULL default '0',
408   `item2` int(11) NOT NULL default '0',
409   `item3` int(11) NOT NULL default '0',
410   `item4` int(11) NOT NULL default '0',
411   `item5` int(11) NOT NULL default '0',
412   `item6` int(11) NOT NULL default '0',
413   `item7` int(11) NOT NULL default '0',
414   `item8` int(11) NOT NULL default '0',
415   `item9` int(11) NOT NULL default '0',
416   `item10` int(11) NOT NULL default '0',
417   `item11` int(11) NOT NULL default '0',
418   `item12` int(11) NOT NULL default '0',
419   `item13` int(11) NOT NULL default '0',
420   `item14` int(11) NOT NULL default '0',
421   `item15` int(11) NOT NULL default '0',
422   `item16` int(11) NOT NULL default '0',
423   `item17` int(11) NOT NULL default '0',
424   `item18` int(11) NOT NULL default '0',
425   PRIMARY KEY  (`setguid`),
426   UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`)
427 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
430 -- Dumping data for table `character_equipmentsets`
433 LOCK TABLES `character_equipmentsets` WRITE;
434 /*!40000 ALTER TABLE `character_equipmentsets` DISABLE KEYS */;
435 /*!40000 ALTER TABLE `character_equipmentsets` ENABLE KEYS */;
436 UNLOCK TABLES;
439 -- Table structure for table `character_gifts`
442 DROP TABLE IF EXISTS `character_gifts`;
443 CREATE TABLE `character_gifts` (
444   `guid` int(20) unsigned NOT NULL default '0',
445   `item_guid` int(11) unsigned NOT NULL default '0',
446   `entry` int(20) unsigned NOT NULL default '0',
447   `flags` int(20) unsigned NOT NULL default '0',
448   PRIMARY KEY  (`item_guid`),
449   KEY `idx_guid` (`guid`)
450 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
453 -- Dumping data for table `character_gifts`
456 LOCK TABLES `character_gifts` WRITE;
457 /*!40000 ALTER TABLE `character_gifts` DISABLE KEYS */;
458 /*!40000 ALTER TABLE `character_gifts` ENABLE KEYS */;
459 UNLOCK TABLES;
462 -- Table structure for table `character_homebind`
465 DROP TABLE IF EXISTS `character_homebind`;
466 CREATE TABLE `character_homebind` (
467   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
468   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
469   `zone` int(11) unsigned NOT NULL default '0' COMMENT 'Zone Identifier',
470   `position_x` float NOT NULL default '0',
471   `position_y` float NOT NULL default '0',
472   `position_z` float NOT NULL default '0',
473   PRIMARY KEY  (`guid`)
474 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
477 -- Dumping data for table `character_homebind`
480 LOCK TABLES `character_homebind` WRITE;
481 /*!40000 ALTER TABLE `character_homebind` DISABLE KEYS */;
482 /*!40000 ALTER TABLE `character_homebind` ENABLE KEYS */;
483 UNLOCK TABLES;
486 -- Table structure for table `character_instance`
489 DROP TABLE IF EXISTS `character_instance`;
490 CREATE TABLE `character_instance` (
491   `guid` int(11) unsigned NOT NULL default '0',
492   `instance` int(11) unsigned NOT NULL default '0',
493   `permanent` tinyint(1) unsigned NOT NULL default '0',
494   PRIMARY KEY  (`guid`,`instance`),
495   KEY `instance` (`instance`)
496 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
499 -- Dumping data for table `character_instance`
502 LOCK TABLES `character_instance` WRITE;
503 /*!40000 ALTER TABLE `character_instance` DISABLE KEYS */;
504 /*!40000 ALTER TABLE `character_instance` ENABLE KEYS */;
505 UNLOCK TABLES;
508 -- Table structure for table `character_inventory`
511 DROP TABLE IF EXISTS `character_inventory`;
512 CREATE TABLE `character_inventory` (
513   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
514   `bag` int(11) unsigned NOT NULL default '0',
515   `slot` tinyint(3) unsigned NOT NULL default '0',
516   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Global Unique Identifier',
517   `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
518   PRIMARY KEY  (`item`),
519   KEY `idx_guid` (`guid`)
520 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
523 -- Dumping data for table `character_inventory`
526 LOCK TABLES `character_inventory` WRITE;
527 /*!40000 ALTER TABLE `character_inventory` DISABLE KEYS */;
528 /*!40000 ALTER TABLE `character_inventory` ENABLE KEYS */;
529 UNLOCK TABLES;
532 -- Table structure for table `character_pet`
535 DROP TABLE IF EXISTS `character_pet`;
536 CREATE TABLE `character_pet` (
537   `id` int(11) unsigned NOT NULL default '0',
538   `entry` int(11) unsigned NOT NULL default '0',
539   `owner` int(11) unsigned NOT NULL default '0',
540   `modelid` int(11) unsigned default '0',
541   `CreatedBySpell` int(11) unsigned NOT NULL default '0',
542   `PetType` tinyint(3) unsigned NOT NULL default '0',
543   `level` int(11) unsigned NOT NULL default '1',
544   `exp` int(11) unsigned NOT NULL default '0',
545   `Reactstate` tinyint(1) unsigned NOT NULL default '0',
546   `name` varchar(100) default 'Pet',
547   `renamed` tinyint(1) unsigned NOT NULL default '0',
548   `slot` int(11) unsigned NOT NULL default '0',
549   `curhealth` int(11) unsigned NOT NULL default '1',
550   `curmana` int(11) unsigned NOT NULL default '0',
551   `curhappiness` int(11) unsigned NOT NULL default '0',
552   `savetime` bigint(20) unsigned NOT NULL default '0',
553   `resettalents_cost` int(11) unsigned NOT NULL default '0',
554   `resettalents_time` bigint(20) unsigned NOT NULL default '0',
555   `abdata` longtext,
556   PRIMARY KEY  (`id`),
557   KEY `owner` (`owner`)
558 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
561 -- Dumping data for table `character_pet`
564 LOCK TABLES `character_pet` WRITE;
565 /*!40000 ALTER TABLE `character_pet` DISABLE KEYS */;
566 /*!40000 ALTER TABLE `character_pet` ENABLE KEYS */;
567 UNLOCK TABLES;
570 -- Table structure for table `character_pet_declinedname`
573 DROP TABLE IF EXISTS `character_pet_declinedname`;
574 CREATE TABLE `character_pet_declinedname` (
575   `id` int(11) unsigned NOT NULL default '0',
576   `owner` int(11) unsigned NOT NULL default '0',
577   `genitive` varchar(12) NOT NULL default '',
578   `dative` varchar(12) NOT NULL default '',
579   `accusative` varchar(12) NOT NULL default '',
580   `instrumental` varchar(12) NOT NULL default '',
581   `prepositional` varchar(12) NOT NULL default '',
582   PRIMARY KEY  (`id`),
583   KEY owner_key (`owner`)
584 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
587 -- Dumping data for table `character_pet_declinedname`
590 LOCK TABLES `character_pet_declinedname` WRITE;
591 /*!40000 ALTER TABLE `character_pet_declinedname` DISABLE KEYS */;
592 /*!40000 ALTER TABLE `character_pet_declinedname` ENABLE KEYS */;
593 UNLOCK TABLES;
596 -- Table structure for table `character_queststatus`
599 DROP TABLE IF EXISTS `character_queststatus`;
600 CREATE TABLE `character_queststatus` (
601   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
602   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
603   `status` int(11) unsigned NOT NULL default '0',
604   `rewarded` tinyint(1) unsigned NOT NULL default '0',
605   `explored` tinyint(1) unsigned NOT NULL default '0',
606   `timer` bigint(20) unsigned NOT NULL default '0',
607   `mobcount1` int(11) unsigned NOT NULL default '0',
608   `mobcount2` int(11) unsigned NOT NULL default '0',
609   `mobcount3` int(11) unsigned NOT NULL default '0',
610   `mobcount4` int(11) unsigned NOT NULL default '0',
611   `itemcount1` int(11) unsigned NOT NULL default '0',
612   `itemcount2` int(11) unsigned NOT NULL default '0',
613   `itemcount3` int(11) unsigned NOT NULL default '0',
614   `itemcount4` int(11) unsigned NOT NULL default '0',
615   PRIMARY KEY  (`guid`,`quest`)
616 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
619 -- Dumping data for table `character_queststatus`
622 LOCK TABLES `character_queststatus` WRITE;
623 /*!40000 ALTER TABLE `character_queststatus` DISABLE KEYS */;
624 /*!40000 ALTER TABLE `character_queststatus` ENABLE KEYS */;
625 UNLOCK TABLES;
628 -- Table structure for table `character_queststatus_daily`
631 DROP TABLE IF EXISTS `character_queststatus_daily`;
632 CREATE TABLE `character_queststatus_daily` (
633   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
634   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
635   `time` bigint(20) unsigned NOT NULL default '0',
636   PRIMARY KEY  (`guid`,`quest`),
637   KEY `idx_guid` (`guid`)
638 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
641 -- Dumping data for table `character_queststatus_daily`
644 LOCK TABLES `character_queststatus_daily` WRITE;
645 /*!40000 ALTER TABLE `character_queststatus_daily` DISABLE KEYS */;
646 /*!40000 ALTER TABLE `character_queststatus_daily` ENABLE KEYS */;
647 UNLOCK TABLES;
650 -- Table structure for table `character_reputation`
653 DROP TABLE IF EXISTS `character_reputation`;
654 CREATE TABLE `character_reputation` (
655   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
656   `faction` int(11) unsigned NOT NULL default '0',
657   `standing` int(11) NOT NULL default '0',
658   `flags` int(11) NOT NULL default '0',
659   PRIMARY KEY  (`guid`,`faction`)
660 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
663 -- Dumping data for table `character_reputation`
666 LOCK TABLES `character_reputation` WRITE;
667 /*!40000 ALTER TABLE `character_reputation` DISABLE KEYS */;
668 /*!40000 ALTER TABLE `character_reputation` ENABLE KEYS */;
669 UNLOCK TABLES;
672 -- Table structure for table `character_social`
675 DROP TABLE IF EXISTS `character_social`;
676 CREATE TABLE `character_social` (
677   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
678   `friend` int(11) unsigned NOT NULL default '0' COMMENT 'Friend Global Unique Identifier',
679   `flags` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Friend Flags',
680   `note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note',
681   PRIMARY KEY  (`guid`,`friend`,`flags`),
682   KEY `guid` (`guid`),
683   KEY `friend` (`friend`),
684   KEY `guid_flags` (`guid`,`flags`),
685   KEY `friend_flags` (`friend`,`flags`)
686 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
689 -- Dumping data for table `character_social`
692 LOCK TABLES `character_social` WRITE;
693 /*!40000 ALTER TABLE `character_social` DISABLE KEYS */;
694 /*!40000 ALTER TABLE `character_social` ENABLE KEYS */;
695 UNLOCK TABLES;
698 -- Table structure for table `character_spell`
701 DROP TABLE IF EXISTS `character_spell`;
702 CREATE TABLE `character_spell` (
703   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
704   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
705   `active` tinyint(3) unsigned NOT NULL default '1',
706   `disabled` tinyint(3) unsigned NOT NULL default '0',
707   PRIMARY KEY  (`guid`,`spell`)
708 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
711 -- Dumping data for table `character_spell`
714 LOCK TABLES `character_spell` WRITE;
715 /*!40000 ALTER TABLE `character_spell` DISABLE KEYS */;
716 /*!40000 ALTER TABLE `character_spell` ENABLE KEYS */;
717 UNLOCK TABLES;
720 -- Table structure for table `character_spell_cooldown`
723 DROP TABLE IF EXISTS `character_spell_cooldown`;
724 CREATE TABLE `character_spell_cooldown` (
725   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
726   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
727   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
728   `time` bigint(20) unsigned NOT NULL default '0',
729   PRIMARY KEY  (`guid`,`spell`)
730 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
733 -- Dumping data for table `character_spell_cooldown`
736 LOCK TABLES `character_spell_cooldown` WRITE;
737 /*!40000 ALTER TABLE `character_spell_cooldown` DISABLE KEYS */;
738 /*!40000 ALTER TABLE `character_spell_cooldown` ENABLE KEYS */;
739 UNLOCK TABLES;
742 -- Table structure for table `character_ticket`
745 DROP TABLE IF EXISTS `character_ticket`;
746 CREATE TABLE `character_ticket` (
747   `ticket_id` int(11) unsigned NOT NULL auto_increment,
748   `guid` int(11) unsigned NOT NULL default '0',
749   `ticket_text` text,
750   `ticket_lastchange` TIMESTAMP ON  UPDATE  CURRENT_TIMESTAMP  NOT  NULL  DEFAULT CURRENT_TIMESTAMP,
751   PRIMARY KEY  (`ticket_id`)
752 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
755 -- Dumping data for table `character_ticket`
758 LOCK TABLES `character_ticket` WRITE;
759 /*!40000 ALTER TABLE `character_ticket` DISABLE KEYS */;
760 /*!40000 ALTER TABLE `character_ticket` ENABLE KEYS */;
761 UNLOCK TABLES;
764 -- Table structure for table `character_tutorial`
767 DROP TABLE IF EXISTS `character_tutorial`;
768 CREATE TABLE `character_tutorial` (
769   `account` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Account Identifier',
770   `realmid` int(11) unsigned NOT NULL default '0' COMMENT 'Realm Identifier',
771   `tut0` int(11) unsigned NOT NULL default '0',
772   `tut1` int(11) unsigned NOT NULL default '0',
773   `tut2` int(11) unsigned NOT NULL default '0',
774   `tut3` int(11) unsigned NOT NULL default '0',
775   `tut4` int(11) unsigned NOT NULL default '0',
776   `tut5` int(11) unsigned NOT NULL default '0',
777   `tut6` int(11) unsigned NOT NULL default '0',
778   `tut7` int(11) unsigned NOT NULL default '0',
779   PRIMARY KEY  (`account`,`realmid`),
780   KEY acc_key (`account`)
781 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
784 -- Dumping data for table `character_tutorial`
787 LOCK TABLES `character_tutorial` WRITE;
788 /*!40000 ALTER TABLE `character_tutorial` DISABLE KEYS */;
789 /*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */;
790 UNLOCK TABLES;
793 -- Table structure for table `corpse`
796 DROP TABLE IF EXISTS `corpse`;
797 CREATE TABLE `corpse` (
798   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
799   `player` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
800   `position_x` float NOT NULL default '0',
801   `position_y` float NOT NULL default '0',
802   `position_z` float NOT NULL default '0',
803   `orientation` float NOT NULL default '0',
804   `zone` int(11) unsigned NOT NULL default '38' COMMENT 'Zone Identifier',
805   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
806   `phaseMask` smallint(5) unsigned NOT NULL default '1',
807   `data` longtext,
808   `time` bigint(20) unsigned NOT NULL default '0',
809   `corpse_type` tinyint(3) unsigned NOT NULL default '0',
810   `instance` int(11) unsigned NOT NULL default '0',
811   PRIMARY KEY  (`guid`),
812   KEY `idx_type` (`corpse_type`),
813   KEY `instance` (`instance`)
814 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Death System';
817 -- Dumping data for table `corpse`
820 LOCK TABLES `corpse` WRITE;
821 /*!40000 ALTER TABLE `corpse` DISABLE KEYS */;
822 /*!40000 ALTER TABLE `corpse` ENABLE KEYS */;
823 UNLOCK TABLES;
826 -- Table structure for table `groups`
829 DROP TABLE IF EXISTS `groups`;
830 CREATE TABLE `groups` (
831   `leaderGuid` int(11) unsigned NOT NULL,
832   `mainTank` int(11) unsigned NOT NULL,
833   `mainAssistant` int(11) unsigned NOT NULL,
834   `lootMethod` tinyint(4) unsigned NOT NULL,
835   `looterGuid` int(11) unsigned NOT NULL,
836   `lootThreshold` tinyint(4) unsigned NOT NULL,
837   `icon1` int(11) unsigned NOT NULL,
838   `icon2` int(11) unsigned NOT NULL,
839   `icon3` int(11) unsigned NOT NULL,
840   `icon4` int(11) unsigned NOT NULL,
841   `icon5` int(11) unsigned NOT NULL,
842   `icon6` int(11) unsigned NOT NULL,
843   `icon7` int(11) unsigned NOT NULL,
844   `icon8` int(11) unsigned NOT NULL,
845   `isRaid` tinyint(1) unsigned NOT NULL,
846   `difficulty` tinyint(3) unsigned NOT NULL default '0',
847   PRIMARY KEY  (`leaderGuid`)
848 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
851 -- Dumping data for table `groups`
854 LOCK TABLES `groups` WRITE;
855 /*!40000 ALTER TABLE `groups` DISABLE KEYS */;
856 /*!40000 ALTER TABLE `groups` ENABLE KEYS */;
857 UNLOCK TABLES;
859 -- ----------------------------
860 -- Table structure for group_instance
861 -- ----------------------------
862 DROP TABLE IF EXISTS `group_instance`;
863 CREATE TABLE `group_instance` (
864   `leaderGuid` int(11) unsigned NOT NULL default '0',
865   `instance` int(11) unsigned NOT NULL default '0',
866   `permanent` tinyint(1) unsigned NOT NULL default '0',
867   PRIMARY KEY  (`leaderGuid`,`instance`),
868   KEY `instance` (`instance`)
869 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
872 -- Dumping data for table `group_instance`
875 LOCK TABLES `group_instance` WRITE;
876 /*!40000 ALTER TABLE `group_instance` DISABLE KEYS */;
877 /*!40000 ALTER TABLE `group_instance` ENABLE KEYS */;
878 UNLOCK TABLES;
881 -- Table structure for table `group_member`
884 DROP TABLE IF EXISTS `group_member`;
885 CREATE TABLE `group_member` (
886   `leaderGuid` int(11) unsigned NOT NULL,
887   `memberGuid` int(11) unsigned NOT NULL,
888   `assistant` tinyint(1) unsigned NOT NULL,
889   `subgroup` smallint(6) unsigned NOT NULL,
890   PRIMARY KEY  (`leaderGuid`,`memberGuid`)
891 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
894 -- Dumping data for table `group_member`
897 LOCK TABLES `group_member` WRITE;
898 /*!40000 ALTER TABLE `group_member` DISABLE KEYS */;
899 /*!40000 ALTER TABLE `group_member` ENABLE KEYS */;
900 UNLOCK TABLES;
903 -- Table structure for table `guild`
906 DROP TABLE IF EXISTS `guild`;
907 CREATE TABLE `guild` (
908   `guildid` int(6) unsigned NOT NULL default '0',
909   `name` varchar(255) NOT NULL default '',
910   `leaderguid` int(6) unsigned NOT NULL default '0',
911   `EmblemStyle` int(5) NOT NULL default '0',
912   `EmblemColor` int(5) NOT NULL default '0',
913   `BorderStyle` int(5) NOT NULL default '0',
914   `BorderColor` int(5) NOT NULL default '0',
915   `BackgroundColor` int(5) NOT NULL default '0',
916   `info` text NOT NULL,
917   `motd` varchar(255) NOT NULL default '',
918   `createdate` bigint(20) NOT NULL default '0',
919   `BankMoney` bigint(20) NOT NULL default '0',
920   PRIMARY KEY  (`guildid`)
921 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
924 -- Dumping data for table `guild`
927 LOCK TABLES `guild` WRITE;
928 /*!40000 ALTER TABLE `guild` DISABLE KEYS */;
929 /*!40000 ALTER TABLE `guild` ENABLE KEYS */;
930 UNLOCK TABLES;
933 -- Table structure for table `guild_bank_eventlog`
936 DROP TABLE IF EXISTS `guild_bank_eventlog`;
937 CREATE TABLE `guild_bank_eventlog` (
938   `guildid` int(11) unsigned NOT NULL default '0' COMMENT 'Guild Identificator',
939   `LogGuid` int(11) unsigned NOT NULL default '0' COMMENT 'Log record identificator - auxiliary column',
940   `TabId` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Guild bank TabId',
941   `EventType` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Event type',
942   `PlayerGuid` int(11) unsigned NOT NULL default '0',
943   `ItemOrMoney` int(11) unsigned NOT NULL default '0',
944   `ItemStackCount` tinyint(3) unsigned NOT NULL default '0',
945   `DestTabId` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Destination Tab Id',
946   `TimeStamp` bigint(20) unsigned NOT NULL default '0' COMMENT 'Event UNIX time',
947   PRIMARY KEY  (`guildid`,`LogGuid`,`TabId`),
948   KEY `guildid_key` (`guildid`)
949 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
952 -- Dumping data for table `guild_bank_eventlog`
955 LOCK TABLES `guild_bank_eventlog` WRITE;
956 /*!40000 ALTER TABLE `guild_bank_eventlog` DISABLE KEYS */;
957 /*!40000 ALTER TABLE `guild_bank_eventlog` ENABLE KEYS */;
958 UNLOCK TABLES;
961 -- Table structure for table `guild_bank_item`
964 DROP TABLE IF EXISTS `guild_bank_item`;
965 CREATE TABLE `guild_bank_item` (
966   `guildid` int(11) unsigned NOT NULL default '0',
967   `TabId` tinyint(1) unsigned NOT NULL default '0',
968   `SlotId` tinyint(3) unsigned NOT NULL default '0',
969   `item_guid` int(11) unsigned NOT NULL default '0',
970   `item_entry` int(11) unsigned NOT NULL default '0',
971   PRIMARY KEY  (`guildid`,`tabid`,`slotid`),
972   KEY `guildid_key` (`guildid`)
973 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
976 -- Dumping data for table `guild_bank_item`
979 LOCK TABLES `guild_bank_item` WRITE;
980 /*!40000 ALTER TABLE `guild_bank_item` DISABLE KEYS */;
981 /*!40000 ALTER TABLE `guild_bank_item` ENABLE KEYS */;
982 UNLOCK TABLES;
985 -- Table structure for table `guild_bank_right`
988 DROP TABLE IF EXISTS `guild_bank_right`;
989 CREATE TABLE `guild_bank_right` (
990   `guildid` int(11) unsigned NOT NULL default '0',
991   `TabId` tinyint(1) unsigned NOT NULL default '0',
992   `rid` int(11) unsigned NOT NULL default '0',
993   `gbright` tinyint(3) unsigned NOT NULL default '0',
994   `SlotPerDay` int(11) unsigned NOT NULL default '0',
995   PRIMARY KEY  (`guildid`,`TabId`,`rid`),
996   KEY `guildid_key` (`guildid`)
997 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1000 -- Dumping data for table `guild_bank_right`
1003 LOCK TABLES `guild_bank_right` WRITE;
1004 /*!40000 ALTER TABLE `guild_bank_right` DISABLE KEYS */;
1005 /*!40000 ALTER TABLE `guild_bank_right` ENABLE KEYS */;
1006 UNLOCK TABLES;
1009 -- Table structure for table `guild_bank_tab`
1012 DROP TABLE IF EXISTS `guild_bank_tab`;
1013 CREATE TABLE `guild_bank_tab` (
1014   `guildid` int(11) unsigned NOT NULL default '0',
1015   `TabId` tinyint(1) unsigned NOT NULL default '0',
1016   `TabName` varchar(100) NOT NULL default '',
1017   `TabIcon` varchar(100) NOT NULL default '',
1018   `TabText` text,
1019   PRIMARY KEY  (`guildid`,`TabId`),
1020   KEY `guildid_key` (`guildid`)
1021 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1024 -- Dumping data for table `guild_bank_tab`
1027 LOCK TABLES `guild_bank_tab` WRITE;
1028 /*!40000 ALTER TABLE `guild_bank_tab` DISABLE KEYS */;
1029 /*!40000 ALTER TABLE `guild_bank_tab` ENABLE KEYS */;
1030 UNLOCK TABLES;
1033 -- Table structure for table `guild_eventlog`
1036 DROP TABLE IF EXISTS `guild_eventlog`;
1037 CREATE TABLE `guild_eventlog` (
1038   `guildid` int(11) NOT NULL COMMENT 'Guild Identificator',
1039   `LogGuid` int(11) NOT NULL COMMENT 'Log record identificator - auxiliary column',
1040   `EventType` tinyint(1) NOT NULL COMMENT 'Event type',
1041   `PlayerGuid1` int(11) NOT NULL COMMENT 'Player 1',
1042   `PlayerGuid2` int(11) NOT NULL COMMENT 'Player 2',
1043   `NewRank` tinyint(2) NOT NULL COMMENT 'New rank(in case promotion/demotion)',
1044   `TimeStamp` bigint(20) NOT NULL COMMENT 'Event UNIX time',
1045   PRIMARY KEY (`guildid`, `LogGuid`)
1046 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'Guild Eventlog';
1049 -- Dumping data for table `guild_eventlog`
1052 LOCK TABLES `guild_eventlog` WRITE;
1053 /*!40000 ALTER TABLE `guild_eventlog` DISABLE KEYS */;
1054 /*!40000 ALTER TABLE `guild_eventlog` ENABLE KEYS */;
1055 UNLOCK TABLES;
1058 -- Table structure for table `guild_member`
1061 DROP TABLE IF EXISTS `guild_member`;
1062 CREATE TABLE `guild_member` (
1063   `guildid` int(6) unsigned NOT NULL default '0',
1064   `guid` int(11) unsigned NOT NULL default '0',
1065   `rank` tinyint(2) unsigned NOT NULL default '0',
1066   `pnote` varchar(255) NOT NULL default '',
1067   `offnote` varchar(255) NOT NULL default '',
1068   `BankResetTimeMoney` int(11) unsigned NOT NULL default '0',
1069   `BankRemMoney` int(11) unsigned NOT NULL default '0',
1070   `BankResetTimeTab0` int(11) unsigned NOT NULL default '0',
1071   `BankRemSlotsTab0` int(11) unsigned NOT NULL default '0',
1072   `BankResetTimeTab1` int(11) unsigned NOT NULL default '0',
1073   `BankRemSlotsTab1` int(11) unsigned NOT NULL default '0',
1074   `BankResetTimeTab2` int(11) unsigned NOT NULL default '0',
1075   `BankRemSlotsTab2` int(11) unsigned NOT NULL default '0',
1076   `BankResetTimeTab3` int(11) unsigned NOT NULL default '0',
1077   `BankRemSlotsTab3` int(11) unsigned NOT NULL default '0',
1078   `BankResetTimeTab4` int(11) unsigned NOT NULL default '0',
1079   `BankRemSlotsTab4` int(11) unsigned NOT NULL default '0',
1080   `BankResetTimeTab5` int(11) unsigned NOT NULL default '0',
1081   `BankRemSlotsTab5` int(11) unsigned NOT NULL default '0',
1082   KEY `guildid_key` (`guildid`),
1083   KEY `guildid_rank_key` (`guildid`,`rank`),
1084   UNIQUE KEY `guid_key` (`guid`)
1085 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System';
1088 -- Dumping data for table `guild_member`
1091 LOCK TABLES `guild_member` WRITE;
1092 /*!40000 ALTER TABLE `guild_member` DISABLE KEYS */;
1093 /*!40000 ALTER TABLE `guild_member` ENABLE KEYS */;
1094 UNLOCK TABLES;
1097 -- Table structure for table `guild_rank`
1100 DROP TABLE IF EXISTS `guild_rank`;
1101 CREATE TABLE `guild_rank` (
1102   `guildid` int(6) unsigned NOT NULL default '0',
1103   `rid` int(11) unsigned NOT NULL,
1104   `rname` varchar(255) NOT NULL default '',
1105   `rights` int(3) unsigned NOT NULL default '0',
1106   `BankMoneyPerDay` int(11) unsigned NOT NULL default '0',
1107   PRIMARY KEY  (`guildid`,`rid`)
1108 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1111 -- Dumping data for table `guild_rank`
1114 LOCK TABLES `guild_rank` WRITE;
1115 /*!40000 ALTER TABLE `guild_rank` DISABLE KEYS */;
1116 /*!40000 ALTER TABLE `guild_rank` ENABLE KEYS */;
1117 UNLOCK TABLES;
1120 -- Table structure for table `instance`
1123 DROP TABLE IF EXISTS `instance`;
1124 CREATE TABLE `instance` (
1125   `id` int(11) unsigned NOT NULL default '0',
1126   `map` int(11) unsigned NOT NULL default '0',
1127   `resettime` bigint(40) NOT NULL default '0',
1128   `difficulty` tinyint(1) unsigned NOT NULL default '0',
1129   `data` longtext,
1130   PRIMARY KEY  (`id`),
1131   KEY `map` (`map`),
1132   KEY `resettime` (`resettime`)
1133 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1136 -- Dumping data for table `instance`
1139 LOCK TABLES `instance` WRITE;
1140 /*!40000 ALTER TABLE `instance` DISABLE KEYS */;
1141 /*!40000 ALTER TABLE `instance` ENABLE KEYS */;
1142 UNLOCK TABLES;
1144 -- ----------------------------
1145 -- Table structure for instance_reset
1146 -- ----------------------------
1147 DROP TABLE IF EXISTS `instance_reset`;
1148 CREATE TABLE `instance_reset` (
1149   `mapid` int(11) unsigned NOT NULL default '0',
1150   `resettime` bigint(40) NOT NULL default '0',
1151   PRIMARY KEY  (`mapid`)
1152 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1155 -- Dumping data for table `instance_reset`
1158 LOCK TABLES `instance_reset` WRITE;
1159 /*!40000 ALTER TABLE `instance_reset` DISABLE KEYS */;
1160 /*!40000 ALTER TABLE `instance_reset` ENABLE KEYS */;
1161 UNLOCK TABLES;
1164 -- Table structure for table `item_instance`
1167 DROP TABLE IF EXISTS `item_instance`;
1168 CREATE TABLE `item_instance` (
1169   `guid` int(11) unsigned NOT NULL default '0',
1170   `owner_guid` int(11) unsigned NOT NULL default '0',
1171   `data` longtext,
1172   PRIMARY KEY  (`guid`),
1173   KEY `idx_owner_guid` (`owner_guid`)
1174 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System';
1177 -- Dumping data for table `item_instance`
1180 LOCK TABLES `item_instance` WRITE;
1181 /*!40000 ALTER TABLE `item_instance` DISABLE KEYS */;
1182 /*!40000 ALTER TABLE `item_instance` ENABLE KEYS */;
1183 UNLOCK TABLES;
1186 -- Table structure for table `item_text`
1189 DROP TABLE IF EXISTS `item_text`;
1190 CREATE TABLE `item_text` (
1191   `id` int(11) unsigned NOT NULL default '0',
1192   `text` longtext,
1193   PRIMARY KEY  (`id`)
1194 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Item System';
1197 -- Dumping data for table `item_text`
1200 LOCK TABLES `item_text` WRITE;
1201 /*!40000 ALTER TABLE `item_text` DISABLE KEYS */;
1202 /*!40000 ALTER TABLE `item_text` ENABLE KEYS */;
1203 UNLOCK TABLES;
1206 -- Table structure for table `mail`
1209 DROP TABLE IF EXISTS `mail`;
1210 CREATE TABLE `mail` (
1211   `id` int(11) unsigned NOT NULL default '0' COMMENT 'Identifier',
1212   `messageType` tinyint(3) unsigned NOT NULL default '0',
1213   `stationery` tinyint(3) NOT NULL default '41',
1214   `mailTemplateId` mediumint(8) unsigned NOT NULL default '0',
1215   `sender` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1216   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1217   `subject` longtext,
1218   `itemTextId` int(11) unsigned NOT NULL default '0',
1219   `has_items` tinyint(3) unsigned NOT NULL default '0',
1220   `expire_time` bigint(40) NOT NULL default '0',
1221   `deliver_time` bigint(40) NOT NULL default '0',
1222   `money` int(11) unsigned NOT NULL default '0',
1223   `cod` int(11) unsigned NOT NULL default '0',
1224   `checked` tinyint(3) unsigned NOT NULL default '0',
1225   PRIMARY KEY  (`id`),
1226   KEY `idx_receiver` (`receiver`)
1227 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Mail System';
1230 -- Dumping data for table `mail`
1233 LOCK TABLES `mail` WRITE;
1234 /*!40000 ALTER TABLE `mail` DISABLE KEYS */;
1235 /*!40000 ALTER TABLE `mail` ENABLE KEYS */;
1236 UNLOCK TABLES;
1239 -- Table structure for table `mail_items`
1242 DROP TABLE IF EXISTS `mail_items`;
1243 CREATE TABLE `mail_items` (
1244   `mail_id` int(11) NOT NULL default '0',
1245   `item_guid` int(11) NOT NULL default '0',
1246   `item_template` int(11) NOT NULL default '0',
1247   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1248   PRIMARY KEY  (`mail_id`,`item_guid`),
1249   KEY `idx_receiver` (`receiver`)
1250 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
1253 -- Dumping data for table `mail_items`
1256 LOCK TABLES `mail_items` WRITE;
1257 /*!40000 ALTER TABLE `mail_items` DISABLE KEYS */;
1258 /*!40000 ALTER TABLE `mail_items` ENABLE KEYS */;
1259 UNLOCK TABLES;
1262 -- Table structure for table `pet_aura`
1265 DROP TABLE IF EXISTS `pet_aura`;
1266 CREATE TABLE `pet_aura` (
1267   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1268   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
1269   `spell` int(11) unsigned NOT NULL default '0',
1270   `effect_index` int(11) unsigned NOT NULL default '0',
1271   `stackcount` int(11) NOT NULL default '1',
1272   `amount` int(11) NOT NULL default '0',
1273   `maxduration` int(11) NOT NULL default '0',
1274   `remaintime` int(11) NOT NULL default '0',
1275   `remaincharges` int(11) NOT NULL default '0',
1276   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
1277 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1280 -- Dumping data for table `pet_aura`
1283 LOCK TABLES `pet_aura` WRITE;
1284 /*!40000 ALTER TABLE `pet_aura` DISABLE KEYS */;
1285 /*!40000 ALTER TABLE `pet_aura` ENABLE KEYS */;
1286 UNLOCK TABLES;
1289 -- Table structure for table `pet_spell`
1292 DROP TABLE IF EXISTS `pet_spell`;
1293 CREATE TABLE `pet_spell` (
1294   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1295   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1296   `active` int(11) unsigned NOT NULL default '0',
1297   PRIMARY KEY  (`guid`,`spell`)
1298 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1301 -- Dumping data for table `pet_spell`
1304 LOCK TABLES `pet_spell` WRITE;
1305 /*!40000 ALTER TABLE `pet_spell` DISABLE KEYS */;
1306 /*!40000 ALTER TABLE `pet_spell` ENABLE KEYS */;
1307 UNLOCK TABLES;
1310 -- Table structure for table `pet_spell_cooldown`
1313 DROP TABLE IF EXISTS `pet_spell_cooldown`;
1314 CREATE TABLE `pet_spell_cooldown` (
1315   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
1316   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1317   `time` bigint(20) unsigned NOT NULL default '0',
1318   PRIMARY KEY  (`guid`,`spell`)
1319 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1322 -- Dumping data for table `pet_spell_cooldown`
1325 LOCK TABLES `pet_spell_cooldown` WRITE;
1326 /*!40000 ALTER TABLE `pet_spell_cooldown` DISABLE KEYS */;
1327 /*!40000 ALTER TABLE `pet_spell_cooldown` ENABLE KEYS */;
1328 UNLOCK TABLES;
1331 -- Table structure for table `petition`
1334 DROP TABLE IF EXISTS `petition`;
1335 CREATE TABLE `petition` (
1336   `ownerguid` int(10) unsigned NOT NULL,
1337   `petitionguid` int(10) unsigned default '0',
1338   `name` varchar(255) NOT NULL default '',
1339   `type` int(10) unsigned NOT NULL default '0',
1340   PRIMARY KEY  (`ownerguid`,`type`),
1341   UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
1342 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1345 -- Dumping data for table `petition`
1348 LOCK TABLES `petition` WRITE;
1349 /*!40000 ALTER TABLE `petition` DISABLE KEYS */;
1350 /*!40000 ALTER TABLE `petition` ENABLE KEYS */;
1351 UNLOCK TABLES;
1354 -- Table structure for table `petition_sign`
1357 DROP TABLE IF EXISTS `petition_sign`;
1358 CREATE TABLE `petition_sign` (
1359   `ownerguid` int(10) unsigned NOT NULL,
1360   `petitionguid` int(11) unsigned NOT NULL default '0',
1361   `playerguid` int(11) unsigned NOT NULL default '0',
1362   `player_account` int(11) unsigned NOT NULL default '0',
1363   `type` int(10) unsigned NOT NULL default '0',
1364   PRIMARY KEY  (`petitionguid`,`playerguid`)
1365 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1368 -- Dumping data for table `petition_sign`
1371 LOCK TABLES `petition_sign` WRITE;
1372 /*!40000 ALTER TABLE `petition_sign` DISABLE KEYS */;
1373 /*!40000 ALTER TABLE `petition_sign` ENABLE KEYS */;
1374 UNLOCK TABLES;
1375 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1378 -- Table structure for table `saved_variables`
1381 DROP TABLE IF EXISTS `saved_variables`;
1382 CREATE TABLE `saved_variables` (
1383     `NextArenaPointDistributionTime` bigint(40) UNSIGNED NOT NULL DEFAULT '0'
1384 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Variable Saves';
1387 -- Dumping data for table `saved_variables`
1390 LOCK TABLES `saved_variables` WRITE;
1391 /*!40000 ALTER TABLE `saved_variables` DISABLE KEYS */;
1392 /*!40000 ALTER TABLE `saved_variables` ENABLE KEYS */;
1393 UNLOCK TABLES;
1394 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1397 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1398 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1399 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1400 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1401 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1402 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1403 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1405 -- Dump completed on 2008-01-10 11:37:06