port over some changes from Trinity version including one possible memory leak fix
[AHbot.git] / sql / characters.sql
blobc6f18a19305615d9c195dd6d7ca4abe137ca266c
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_7802_02_characters_character_achievement_progress` 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   `position_x` float NOT NULL default '0',
201   `position_y` float NOT NULL default '0',
202   `position_z` float NOT NULL default '0',
203   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
204   `dungeon_difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0',
205   `orientation` float NOT NULL default '0',
206   `taximask` longtext,
207   `online` tinyint(3) unsigned NOT NULL default '0',
208   `cinematic` tinyint(3) unsigned NOT NULL default '0',
209   `totaltime` int(11) unsigned NOT NULL default '0',
210   `leveltime` int(11) unsigned NOT NULL default '0',
211   `logout_time` bigint(20) unsigned NOT NULL default '0',
212   `is_logout_resting` tinyint(3) unsigned NOT NULL default '0',
213   `rest_bonus` float NOT NULL default '0',
214   `resettalents_cost` int(11) unsigned NOT NULL default '0',
215   `resettalents_time` bigint(20) unsigned NOT NULL default '0',
216   `trans_x` float NOT NULL default '0',
217   `trans_y` float NOT NULL default '0',
218   `trans_z` float NOT NULL default '0',
219   `trans_o` float NOT NULL default '0',
220   `transguid` bigint(20) unsigned NOT NULL default '0',
221   `extra_flags` int(11) unsigned NOT NULL default '0',
222   `stable_slots` tinyint(1) unsigned NOT NULL default '0',
223   `at_login` int(11) unsigned NOT NULL default '0',
224   `zone` int(11) unsigned NOT NULL default '0',
225   `death_expire_time` bigint(20) unsigned NOT NULL default '0',
226   `taxi_path` text,
227   `arena_pending_points` int(10) UNSIGNED NOT NULL default '0',
228   `bgid` int(10) unsigned NOT NULL default '0',
229   `bgteam` int(10) unsigned NOT NULL default '0',
230   `bgmap` int(10) unsigned NOT NULL default '0',
231   `bgx` float NOT NULL default '0',
232   `bgy` float NOT NULL default '0',
233   `bgz` float NOT NULL default '0',
234   `bgo` float 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=MyISAM 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=MyISAM 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` smallint(5) unsigned NOT NULL default '0',
302   `type` tinyint(3) unsigned NOT NULL default '0',
303   `misc` tinyint(3) unsigned NOT NULL default '0',
304   PRIMARY KEY  (`guid`,`button`)
305 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
308 -- Dumping data for table `character_action`
311 LOCK TABLES `character_action` WRITE;
312 /*!40000 ALTER TABLE `character_action` DISABLE KEYS */;
313 /*!40000 ALTER TABLE `character_action` ENABLE KEYS */;
314 UNLOCK TABLES;
317 -- Table structure for table `character_aura`
320 DROP TABLE IF EXISTS `character_aura`;
321 CREATE TABLE `character_aura` (
322   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
323   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
324   `spell` int(11) unsigned NOT NULL default '0',
325   `effect_index` int(11) unsigned NOT NULL default '0',
326   `stackcount` int(11) NOT NULL default '1',
327   `amount` int(11) NOT NULL default '0',
328   `maxduration` int(11) NOT NULL default '0',
329   `remaintime` int(11) NOT NULL default '0',
330   `remaincharges` int(11) NOT NULL default '0',
331   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
332 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
335 -- Dumping data for table `character_aura`
338 LOCK TABLES `character_aura` WRITE;
339 /*!40000 ALTER TABLE `character_aura` DISABLE KEYS */;
340 /*!40000 ALTER TABLE `character_aura` ENABLE KEYS */;
341 UNLOCK TABLES;
344 -- Table structure for table `character_declinedname`
347 DROP TABLE IF EXISTS `character_declinedname`;
348 CREATE TABLE `character_declinedname` (
349   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
350   `genitive` varchar(15) NOT NULL default '',
351   `dative` varchar(15) NOT NULL default '',
352   `accusative` varchar(15) NOT NULL default '',
353   `instrumental` varchar(15) NOT NULL default '',
354   `prepositional` varchar(15) NOT NULL default '',
355   PRIMARY KEY  (`guid`)
356 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
359 -- Dumping data for table `character_declinedname`
362 LOCK TABLES `character_declinedname` WRITE;
363 /*!40000 ALTER TABLE `character_declinedname` DISABLE KEYS */;
364 /*!40000 ALTER TABLE `character_declinedname` ENABLE KEYS */;
365 UNLOCK TABLES;
368 -- Table structure for table `character_gifts`
371 DROP TABLE IF EXISTS `character_gifts`;
372 CREATE TABLE `character_gifts` (
373   `guid` int(20) unsigned NOT NULL default '0',
374   `item_guid` int(11) unsigned NOT NULL default '0',
375   `entry` int(20) unsigned NOT NULL default '0',
376   `flags` int(20) unsigned NOT NULL default '0',
377   PRIMARY KEY  (`item_guid`),
378   KEY `idx_guid` (`guid`)
379 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
382 -- Dumping data for table `character_gifts`
385 LOCK TABLES `character_gifts` WRITE;
386 /*!40000 ALTER TABLE `character_gifts` DISABLE KEYS */;
387 /*!40000 ALTER TABLE `character_gifts` ENABLE KEYS */;
388 UNLOCK TABLES;
391 -- Table structure for table `character_homebind`
394 DROP TABLE IF EXISTS `character_homebind`;
395 CREATE TABLE `character_homebind` (
396   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
397   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
398   `zone` int(11) unsigned NOT NULL default '0' COMMENT 'Zone Identifier',
399   `position_x` float NOT NULL default '0',
400   `position_y` float NOT NULL default '0',
401   `position_z` float NOT NULL default '0',
402   PRIMARY KEY  (`guid`)
403 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
406 -- Dumping data for table `character_homebind`
409 LOCK TABLES `character_homebind` WRITE;
410 /*!40000 ALTER TABLE `character_homebind` DISABLE KEYS */;
411 /*!40000 ALTER TABLE `character_homebind` ENABLE KEYS */;
412 UNLOCK TABLES;
415 -- Table structure for table `character_instance`
418 DROP TABLE IF EXISTS `character_instance`;
419 CREATE TABLE `character_instance` (
420   `guid` int(11) unsigned NOT NULL default '0',
421   `instance` int(11) unsigned NOT NULL default '0',
422   `permanent` tinyint(1) unsigned NOT NULL default '0',
423   PRIMARY KEY  (`guid`,`instance`),
424   KEY `instance` (`instance`)
425 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
428 -- Dumping data for table `character_instance`
431 LOCK TABLES `character_instance` WRITE;
432 /*!40000 ALTER TABLE `character_instance` DISABLE KEYS */;
433 /*!40000 ALTER TABLE `character_instance` ENABLE KEYS */;
434 UNLOCK TABLES;
437 -- Table structure for table `character_inventory`
440 DROP TABLE IF EXISTS `character_inventory`;
441 CREATE TABLE `character_inventory` (
442   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
443   `bag` int(11) unsigned NOT NULL default '0',
444   `slot` tinyint(3) unsigned NOT NULL default '0',
445   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Global Unique Identifier',
446   `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
447   PRIMARY KEY  (`item`),
448   KEY `idx_guid` (`guid`)
449 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
452 -- Dumping data for table `character_inventory`
455 LOCK TABLES `character_inventory` WRITE;
456 /*!40000 ALTER TABLE `character_inventory` DISABLE KEYS */;
457 /*!40000 ALTER TABLE `character_inventory` ENABLE KEYS */;
458 UNLOCK TABLES;
461 -- Table structure for table `character_pet`
464 DROP TABLE IF EXISTS `character_pet`;
465 CREATE TABLE `character_pet` (
466   `id` int(11) unsigned NOT NULL default '0',
467   `entry` int(11) unsigned NOT NULL default '0',
468   `owner` int(11) unsigned NOT NULL default '0',
469   `modelid` int(11) unsigned default '0',
470   `CreatedBySpell` int(11) unsigned NOT NULL default '0',
471   `PetType` tinyint(3) unsigned NOT NULL default '0',
472   `level` int(11) unsigned NOT NULL default '1',
473   `exp` int(11) unsigned NOT NULL default '0',
474   `Reactstate` tinyint(1) unsigned NOT NULL default '0',
475   `talentpoints` int(11) unsigned NOT NULL default '0',
476   `name` varchar(100) default 'Pet',
477   `renamed` tinyint(1) unsigned NOT NULL default '0',
478   `slot` int(11) unsigned NOT NULL default '0',
479   `curhealth` int(11) unsigned NOT NULL default '1',
480   `curmana` int(11) unsigned NOT NULL default '0',
481   `curhappiness` int(11) unsigned NOT NULL default '0',
482   `savetime` bigint(20) unsigned NOT NULL default '0',
483   `resettalents_cost` int(11) unsigned NOT NULL default '0',
484   `resettalents_time` bigint(20) unsigned NOT NULL default '0',
485   `abdata` longtext,
486   `teachspelldata` longtext,
487   PRIMARY KEY  (`id`),
488   KEY `owner` (`owner`)
489 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
492 -- Dumping data for table `character_pet`
495 LOCK TABLES `character_pet` WRITE;
496 /*!40000 ALTER TABLE `character_pet` DISABLE KEYS */;
497 /*!40000 ALTER TABLE `character_pet` ENABLE KEYS */;
498 UNLOCK TABLES;
501 -- Table structure for table `character_pet_declinedname`
504 DROP TABLE IF EXISTS `character_pet_declinedname`;
505 CREATE TABLE `character_pet_declinedname` (
506   `id` int(11) unsigned NOT NULL default '0',
507   `owner` int(11) unsigned NOT NULL default '0',
508   `genitive` varchar(12) NOT NULL default '',
509   `dative` varchar(12) NOT NULL default '',
510   `accusative` varchar(12) NOT NULL default '',
511   `instrumental` varchar(12) NOT NULL default '',
512   `prepositional` varchar(12) NOT NULL default '',
513   PRIMARY KEY  (`id`),
514   KEY owner_key (`owner`)
515 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
518 -- Dumping data for table `character_pet_declinedname`
521 LOCK TABLES `character_pet_declinedname` WRITE;
522 /*!40000 ALTER TABLE `character_pet_declinedname` DISABLE KEYS */;
523 /*!40000 ALTER TABLE `character_pet_declinedname` ENABLE KEYS */;
524 UNLOCK TABLES;
527 -- Table structure for table `character_queststatus`
530 DROP TABLE IF EXISTS `character_queststatus`;
531 CREATE TABLE `character_queststatus` (
532   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
533   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
534   `status` int(11) unsigned NOT NULL default '0',
535   `rewarded` tinyint(1) unsigned NOT NULL default '0',
536   `explored` tinyint(1) unsigned NOT NULL default '0',
537   `timer` bigint(20) unsigned NOT NULL default '0',
538   `mobcount1` int(11) unsigned NOT NULL default '0',
539   `mobcount2` int(11) unsigned NOT NULL default '0',
540   `mobcount3` int(11) unsigned NOT NULL default '0',
541   `mobcount4` int(11) unsigned NOT NULL default '0',
542   `itemcount1` int(11) unsigned NOT NULL default '0',
543   `itemcount2` int(11) unsigned NOT NULL default '0',
544   `itemcount3` int(11) unsigned NOT NULL default '0',
545   `itemcount4` int(11) unsigned NOT NULL default '0',
546   PRIMARY KEY  (`guid`,`quest`)
547 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
550 -- Dumping data for table `character_queststatus`
553 LOCK TABLES `character_queststatus` WRITE;
554 /*!40000 ALTER TABLE `character_queststatus` DISABLE KEYS */;
555 /*!40000 ALTER TABLE `character_queststatus` ENABLE KEYS */;
556 UNLOCK TABLES;
559 -- Table structure for table `character_queststatus_daily`
562 DROP TABLE IF EXISTS `character_queststatus_daily`;
563 CREATE TABLE `character_queststatus_daily` (
564   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
565   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
566   `time` bigint(20) unsigned NOT NULL default '0',
567   PRIMARY KEY  (`guid`,`quest`),
568   KEY `idx_guid` (`guid`)
569 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
572 -- Dumping data for table `character_queststatus_daily`
575 LOCK TABLES `character_queststatus_daily` WRITE;
576 /*!40000 ALTER TABLE `character_queststatus_daily` DISABLE KEYS */;
577 /*!40000 ALTER TABLE `character_queststatus_daily` ENABLE KEYS */;
578 UNLOCK TABLES;
581 -- Table structure for table `character_reputation`
584 DROP TABLE IF EXISTS `character_reputation`;
585 CREATE TABLE `character_reputation` (
586   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
587   `faction` int(11) unsigned NOT NULL default '0',
588   `standing` int(11) NOT NULL default '0',
589   `flags` int(11) NOT NULL default '0',
590   PRIMARY KEY  (`guid`,`faction`)
591 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
594 -- Dumping data for table `character_reputation`
597 LOCK TABLES `character_reputation` WRITE;
598 /*!40000 ALTER TABLE `character_reputation` DISABLE KEYS */;
599 /*!40000 ALTER TABLE `character_reputation` ENABLE KEYS */;
600 UNLOCK TABLES;
603 -- Table structure for table `character_social`
606 DROP TABLE IF EXISTS `character_social`;
607 CREATE TABLE `character_social` (
608   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
609   `friend` int(11) unsigned NOT NULL default '0' COMMENT 'Friend Global Unique Identifier',
610   `flags` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Friend Flags',
611   `note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note',
612   PRIMARY KEY  (`guid`,`friend`,`flags`),
613   KEY `guid` (`guid`),
614   KEY `friend` (`friend`),
615   KEY `guid_flags` (`guid`,`flags`),
616   KEY `friend_flags` (`friend`,`flags`)
617 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
620 -- Dumping data for table `character_social`
623 LOCK TABLES `character_social` WRITE;
624 /*!40000 ALTER TABLE `character_social` DISABLE KEYS */;
625 /*!40000 ALTER TABLE `character_social` ENABLE KEYS */;
626 UNLOCK TABLES;
629 -- Table structure for table `character_spell`
632 DROP TABLE IF EXISTS `character_spell`;
633 CREATE TABLE `character_spell` (
634   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
635   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
636   `active` tinyint(3) unsigned NOT NULL default '1',
637   `disabled` tinyint(3) unsigned NOT NULL default '0',
638   PRIMARY KEY  (`guid`,`spell`)
639 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
642 -- Dumping data for table `character_spell`
645 LOCK TABLES `character_spell` WRITE;
646 /*!40000 ALTER TABLE `character_spell` DISABLE KEYS */;
647 /*!40000 ALTER TABLE `character_spell` ENABLE KEYS */;
648 UNLOCK TABLES;
651 -- Table structure for table `character_spell_cooldown`
654 DROP TABLE IF EXISTS `character_spell_cooldown`;
655 CREATE TABLE `character_spell_cooldown` (
656   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
657   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
658   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
659   `time` bigint(20) unsigned NOT NULL default '0',
660   PRIMARY KEY  (`guid`,`spell`)
661 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
664 -- Dumping data for table `character_spell_cooldown`
667 LOCK TABLES `character_spell_cooldown` WRITE;
668 /*!40000 ALTER TABLE `character_spell_cooldown` DISABLE KEYS */;
669 /*!40000 ALTER TABLE `character_spell_cooldown` ENABLE KEYS */;
670 UNLOCK TABLES;
673 -- Table structure for table `character_ticket`
676 DROP TABLE IF EXISTS `character_ticket`;
677 CREATE TABLE `character_ticket` (
678   `ticket_id` int(11) unsigned NOT NULL auto_increment,
679   `guid` int(11) unsigned NOT NULL default '0',
680   `ticket_text` text,
681   `ticket_lastchange` TIMESTAMP ON  UPDATE  CURRENT_TIMESTAMP  NOT  NULL  DEFAULT CURRENT_TIMESTAMP,
682   PRIMARY KEY  (`ticket_id`)
683 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
686 -- Dumping data for table `character_ticket`
689 LOCK TABLES `character_ticket` WRITE;
690 /*!40000 ALTER TABLE `character_ticket` DISABLE KEYS */;
691 /*!40000 ALTER TABLE `character_ticket` ENABLE KEYS */;
692 UNLOCK TABLES;
695 -- Table structure for table `character_tutorial`
698 DROP TABLE IF EXISTS `character_tutorial`;
699 CREATE TABLE `character_tutorial` (
700   `account` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Account Identifier',
701   `realmid` int(11) unsigned NOT NULL default '0' COMMENT 'Realm Identifier',
702   `tut0` int(11) unsigned NOT NULL default '0',
703   `tut1` int(11) unsigned NOT NULL default '0',
704   `tut2` int(11) unsigned NOT NULL default '0',
705   `tut3` int(11) unsigned NOT NULL default '0',
706   `tut4` int(11) unsigned NOT NULL default '0',
707   `tut5` int(11) unsigned NOT NULL default '0',
708   `tut6` int(11) unsigned NOT NULL default '0',
709   `tut7` int(11) unsigned NOT NULL default '0',
710   PRIMARY KEY  (`account`,`realmid`),
711   KEY acc_key (`account`)
712 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
715 -- Dumping data for table `character_tutorial`
718 LOCK TABLES `character_tutorial` WRITE;
719 /*!40000 ALTER TABLE `character_tutorial` DISABLE KEYS */;
720 /*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */;
721 UNLOCK TABLES;
724 -- Table structure for table `corpse`
727 DROP TABLE IF EXISTS `corpse`;
728 CREATE TABLE `corpse` (
729   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
730   `player` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
731   `position_x` float NOT NULL default '0',
732   `position_y` float NOT NULL default '0',
733   `position_z` float NOT NULL default '0',
734   `orientation` float NOT NULL default '0',
735   `zone` int(11) unsigned NOT NULL default '38' COMMENT 'Zone Identifier',
736   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
737   `phaseMask` smallint(5) unsigned NOT NULL default '1',
738   `data` longtext,
739   `time` bigint(20) unsigned NOT NULL default '0',
740   `corpse_type` tinyint(3) unsigned NOT NULL default '0',
741   `instance` int(11) unsigned NOT NULL default '0',
742   PRIMARY KEY  (`guid`),
743   KEY `idx_type` (`corpse_type`),
744   KEY `instance` (`instance`)
745 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Death System';
748 -- Dumping data for table `corpse`
751 LOCK TABLES `corpse` WRITE;
752 /*!40000 ALTER TABLE `corpse` DISABLE KEYS */;
753 /*!40000 ALTER TABLE `corpse` ENABLE KEYS */;
754 UNLOCK TABLES;
757 -- Table structure for table `groups`
760 DROP TABLE IF EXISTS `groups`;
761 CREATE TABLE `groups` (
762   `leaderGuid` int(11) unsigned NOT NULL,
763   `mainTank` int(11) unsigned NOT NULL,
764   `mainAssistant` int(11) unsigned NOT NULL,
765   `lootMethod` tinyint(4) unsigned NOT NULL,
766   `looterGuid` int(11) unsigned NOT NULL,
767   `lootThreshold` tinyint(4) unsigned NOT NULL,
768   `icon1` int(11) unsigned NOT NULL,
769   `icon2` int(11) unsigned NOT NULL,
770   `icon3` int(11) unsigned NOT NULL,
771   `icon4` int(11) unsigned NOT NULL,
772   `icon5` int(11) unsigned NOT NULL,
773   `icon6` int(11) unsigned NOT NULL,
774   `icon7` int(11) unsigned NOT NULL,
775   `icon8` int(11) unsigned NOT NULL,
776   `isRaid` tinyint(1) unsigned NOT NULL,
777   `difficulty` tinyint(3) unsigned NOT NULL default '0',
778   PRIMARY KEY  (`leaderGuid`)
779 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
782 -- Dumping data for table `groups`
785 LOCK TABLES `groups` WRITE;
786 /*!40000 ALTER TABLE `groups` DISABLE KEYS */;
787 /*!40000 ALTER TABLE `groups` ENABLE KEYS */;
788 UNLOCK TABLES;
790 -- ----------------------------
791 -- Table structure for group_instance
792 -- ----------------------------
793 DROP TABLE IF EXISTS `group_instance`;
794 CREATE TABLE `group_instance` (
795   `leaderGuid` int(11) unsigned NOT NULL default '0',
796   `instance` int(11) unsigned NOT NULL default '0',
797   `permanent` tinyint(1) unsigned NOT NULL default '0',
798   PRIMARY KEY  (`leaderGuid`,`instance`),
799   KEY `instance` (`instance`)
800 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
803 -- Dumping data for table `group_instance`
806 LOCK TABLES `group_instance` WRITE;
807 /*!40000 ALTER TABLE `group_instance` DISABLE KEYS */;
808 /*!40000 ALTER TABLE `group_instance` ENABLE KEYS */;
809 UNLOCK TABLES;
812 -- Table structure for table `group_member`
815 DROP TABLE IF EXISTS `group_member`;
816 CREATE TABLE `group_member` (
817   `leaderGuid` int(11) unsigned NOT NULL,
818   `memberGuid` int(11) unsigned NOT NULL,
819   `assistant` tinyint(1) unsigned NOT NULL,
820   `subgroup` smallint(6) unsigned NOT NULL,
821   PRIMARY KEY  (`leaderGuid`,`memberGuid`)
822 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
825 -- Dumping data for table `group_member`
828 LOCK TABLES `group_member` WRITE;
829 /*!40000 ALTER TABLE `group_member` DISABLE KEYS */;
830 /*!40000 ALTER TABLE `group_member` ENABLE KEYS */;
831 UNLOCK TABLES;
834 -- Table structure for table `guild`
837 DROP TABLE IF EXISTS `guild`;
838 CREATE TABLE `guild` (
839   `guildid` int(6) unsigned NOT NULL default '0',
840   `name` varchar(255) NOT NULL default '',
841   `leaderguid` int(6) unsigned NOT NULL default '0',
842   `EmblemStyle` int(5) NOT NULL default '0',
843   `EmblemColor` int(5) NOT NULL default '0',
844   `BorderStyle` int(5) NOT NULL default '0',
845   `BorderColor` int(5) NOT NULL default '0',
846   `BackgroundColor` int(5) NOT NULL default '0',
847   `info` text NOT NULL,
848   `motd` varchar(255) NOT NULL default '',
849   `createdate` datetime default NULL,
850   `BankMoney` bigint(20) NOT NULL default '0',
851   PRIMARY KEY  (`guildid`)
852 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
855 -- Dumping data for table `guild`
858 LOCK TABLES `guild` WRITE;
859 /*!40000 ALTER TABLE `guild` DISABLE KEYS */;
860 /*!40000 ALTER TABLE `guild` ENABLE KEYS */;
861 UNLOCK TABLES;
864 -- Table structure for table `guild_bank_eventlog`
867 DROP TABLE IF EXISTS `guild_bank_eventlog`;
868 CREATE TABLE `guild_bank_eventlog` (
869   `guildid` int(11) unsigned NOT NULL default '0',
870   `LogGuid` int(11) unsigned NOT NULL default '0',
871   `LogEntry` tinyint(1) unsigned NOT NULL default '0',
872   `TabId` tinyint(1) unsigned NOT NULL default '0',
873   `PlayerGuid` int(11) unsigned NOT NULL default '0',
874   `ItemOrMoney` int(11) unsigned NOT NULL default '0',
875   `ItemStackCount` tinyint(3) unsigned NOT NULL default '0',
876   `DestTabId` tinyint(1) unsigned NOT NULL default '0',
877   `TimeStamp` bigint(20) unsigned NOT NULL default '0',
878   PRIMARY KEY  (`guildid`,`LogGuid`),
879   KEY `guildid_key` (`guildid`)
880 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
883 -- Dumping data for table `guild_bank_eventlog`
886 LOCK TABLES `guild_bank_eventlog` WRITE;
887 /*!40000 ALTER TABLE `guild_bank_eventlog` DISABLE KEYS */;
888 /*!40000 ALTER TABLE `guild_bank_eventlog` ENABLE KEYS */;
889 UNLOCK TABLES;
892 -- Table structure for table `guild_bank_item`
895 DROP TABLE IF EXISTS `guild_bank_item`;
896 CREATE TABLE `guild_bank_item` (
897   `guildid` int(11) unsigned NOT NULL default '0',
898   `TabId` tinyint(1) unsigned NOT NULL default '0',
899   `SlotId` tinyint(3) unsigned NOT NULL default '0',
900   `item_guid` int(11) unsigned NOT NULL default '0',
901   `item_entry` int(11) unsigned NOT NULL default '0',
902   PRIMARY KEY  (`guildid`,`tabid`,`slotid`),
903   KEY `guildid_key` (`guildid`)
904 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
907 -- Dumping data for table `guild_bank_item`
910 LOCK TABLES `guild_bank_item` WRITE;
911 /*!40000 ALTER TABLE `guild_bank_item` DISABLE KEYS */;
912 /*!40000 ALTER TABLE `guild_bank_item` ENABLE KEYS */;
913 UNLOCK TABLES;
916 -- Table structure for table `guild_bank_right`
919 DROP TABLE IF EXISTS `guild_bank_right`;
920 CREATE TABLE `guild_bank_right` (
921   `guildid` int(11) unsigned NOT NULL default '0',
922   `TabId` tinyint(1) unsigned NOT NULL default '0',
923   `rid` int(11) unsigned NOT NULL default '0',
924   `gbright` tinyint(3) unsigned NOT NULL default '0',
925   `SlotPerDay` int(11) unsigned NOT NULL default '0',
926   PRIMARY KEY  (`guildid`,`TabId`,`rid`),
927   KEY `guildid_key` (`guildid`)
928 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
931 -- Dumping data for table `guild_bank_right`
934 LOCK TABLES `guild_bank_right` WRITE;
935 /*!40000 ALTER TABLE `guild_bank_right` DISABLE KEYS */;
936 /*!40000 ALTER TABLE `guild_bank_right` ENABLE KEYS */;
937 UNLOCK TABLES;
940 -- Table structure for table `guild_bank_tab`
943 DROP TABLE IF EXISTS `guild_bank_tab`;
944 CREATE TABLE `guild_bank_tab` (
945   `guildid` int(11) unsigned NOT NULL default '0',
946   `TabId` tinyint(1) unsigned NOT NULL default '0',
947   `TabName` varchar(100) NOT NULL default '',
948   `TabIcon` varchar(100) NOT NULL default '',
949   `TabText` text,
950   PRIMARY KEY  (`guildid`,`TabId`),
951   KEY `guildid_key` (`guildid`)
952 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
955 -- Dumping data for table `guild_bank_tab`
958 LOCK TABLES `guild_bank_tab` WRITE;
959 /*!40000 ALTER TABLE `guild_bank_tab` DISABLE KEYS */;
960 /*!40000 ALTER TABLE `guild_bank_tab` ENABLE KEYS */;
961 UNLOCK TABLES;
964 -- Table structure for table `guild_eventlog`
967 DROP TABLE IF EXISTS `guild_eventlog`;
968 CREATE TABLE `guild_eventlog` (
969   `guildid` int(11) NOT NULL COMMENT 'Guild Identificator',
970   `LogGuid` int(11) NOT NULL COMMENT 'Log entry identificator',
971   `EventType` tinyint(1) NOT NULL COMMENT 'Event type',
972   `PlayerGuid1` int(11) NOT NULL COMMENT 'Player 1',
973   `PlayerGuid2` int(11) NOT NULL COMMENT 'Player 2',
974   `NewRank` tinyint(2) NOT NULL COMMENT 'New rank(in case promotion/demotion)',
975   `TimeStamp` bigint(20) NOT NULL COMMENT 'Event UNIX time'
976 ) ENGINE = InnoDB DEFAULT CHARSET = latin1 COMMENT 'Guild Eventlog';
979 -- Dumping data for table `guild_eventlog`
982 LOCK TABLES `guild_eventlog` WRITE;
983 /*!40000 ALTER TABLE `guild_eventlog` DISABLE KEYS */;
984 /*!40000 ALTER TABLE `guild_eventlog` ENABLE KEYS */;
985 UNLOCK TABLES;
988 -- Table structure for table `guild_member`
991 DROP TABLE IF EXISTS `guild_member`;
992 CREATE TABLE `guild_member` (
993   `guildid` int(6) unsigned NOT NULL default '0',
994   `guid` int(11) unsigned NOT NULL default '0',
995   `rank` tinyint(2) unsigned NOT NULL default '0',
996   `pnote` varchar(255) NOT NULL default '',
997   `offnote` varchar(255) NOT NULL default '',
998   `BankResetTimeMoney` int(11) unsigned NOT NULL default '0',
999   `BankRemMoney` int(11) unsigned NOT NULL default '0',
1000   `BankResetTimeTab0` int(11) unsigned NOT NULL default '0',
1001   `BankRemSlotsTab0` int(11) unsigned NOT NULL default '0',
1002   `BankResetTimeTab1` int(11) unsigned NOT NULL default '0',
1003   `BankRemSlotsTab1` int(11) unsigned NOT NULL default '0',
1004   `BankResetTimeTab2` int(11) unsigned NOT NULL default '0',
1005   `BankRemSlotsTab2` int(11) unsigned NOT NULL default '0',
1006   `BankResetTimeTab3` int(11) unsigned NOT NULL default '0',
1007   `BankRemSlotsTab3` int(11) unsigned NOT NULL default '0',
1008   `BankResetTimeTab4` int(11) unsigned NOT NULL default '0',
1009   `BankRemSlotsTab4` int(11) unsigned NOT NULL default '0',
1010   `BankResetTimeTab5` int(11) unsigned NOT NULL default '0',
1011   `BankRemSlotsTab5` int(11) unsigned NOT NULL default '0',
1012   KEY `guildid_key` (`guildid`),
1013   KEY `guildid_rank_key` (`guildid`,`rank`),
1014   UNIQUE KEY `guid_key` (`guid`)
1015 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System';
1018 -- Dumping data for table `guild_member`
1021 LOCK TABLES `guild_member` WRITE;
1022 /*!40000 ALTER TABLE `guild_member` DISABLE KEYS */;
1023 /*!40000 ALTER TABLE `guild_member` ENABLE KEYS */;
1024 UNLOCK TABLES;
1027 -- Table structure for table `guild_rank`
1030 DROP TABLE IF EXISTS `guild_rank`;
1031 CREATE TABLE `guild_rank` (
1032   `guildid` int(6) unsigned NOT NULL default '0',
1033   `rid` int(11) unsigned NOT NULL,
1034   `rname` varchar(255) NOT NULL default '',
1035   `rights` int(3) unsigned NOT NULL default '0',
1036   `BankMoneyPerDay` int(11) unsigned NOT NULL default '0',
1037   PRIMARY KEY  (`guildid`,`rid`)
1038 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1041 -- Dumping data for table `guild_rank`
1044 LOCK TABLES `guild_rank` WRITE;
1045 /*!40000 ALTER TABLE `guild_rank` DISABLE KEYS */;
1046 /*!40000 ALTER TABLE `guild_rank` ENABLE KEYS */;
1047 UNLOCK TABLES;
1050 -- Table structure for table `instance`
1053 DROP TABLE IF EXISTS `instance`;
1054 CREATE TABLE `instance` (
1055   `id` int(11) unsigned NOT NULL default '0',
1056   `map` int(11) unsigned NOT NULL default '0',
1057   `resettime` bigint(40) NOT NULL default '0',
1058   `difficulty` tinyint(1) unsigned NOT NULL default '0',
1059   `data` longtext,
1060   PRIMARY KEY  (`id`),
1061   KEY `map` (`map`),
1062   KEY `resettime` (`resettime`)
1063 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1066 -- Dumping data for table `instance`
1069 LOCK TABLES `instance` WRITE;
1070 /*!40000 ALTER TABLE `instance` DISABLE KEYS */;
1071 /*!40000 ALTER TABLE `instance` ENABLE KEYS */;
1072 UNLOCK TABLES;
1074 -- ----------------------------
1075 -- Table structure for instance_reset
1076 -- ----------------------------
1077 DROP TABLE IF EXISTS `instance_reset`;
1078 CREATE TABLE `instance_reset` (
1079   `mapid` int(11) unsigned NOT NULL default '0',
1080   `resettime` bigint(40) NOT NULL default '0',
1081   PRIMARY KEY  (`mapid`)
1082 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1085 -- Dumping data for table `instance_reset`
1088 LOCK TABLES `instance_reset` WRITE;
1089 /*!40000 ALTER TABLE `instance_reset` DISABLE KEYS */;
1090 /*!40000 ALTER TABLE `instance_reset` ENABLE KEYS */;
1091 UNLOCK TABLES;
1094 -- Table structure for table `item_instance`
1097 DROP TABLE IF EXISTS `item_instance`;
1098 CREATE TABLE `item_instance` (
1099   `guid` int(11) unsigned NOT NULL default '0',
1100   `owner_guid` int(11) unsigned NOT NULL default '0',
1101   `data` longtext,
1102   PRIMARY KEY  (`guid`),
1103   KEY `idx_owner_guid` (`owner_guid`)
1104 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System';
1107 -- Dumping data for table `item_instance`
1110 LOCK TABLES `item_instance` WRITE;
1111 /*!40000 ALTER TABLE `item_instance` DISABLE KEYS */;
1112 /*!40000 ALTER TABLE `item_instance` ENABLE KEYS */;
1113 UNLOCK TABLES;
1116 -- Table structure for table `item_text`
1119 DROP TABLE IF EXISTS `item_text`;
1120 CREATE TABLE `item_text` (
1121   `id` int(11) unsigned NOT NULL default '0',
1122   `text` longtext,
1123   PRIMARY KEY  (`id`)
1124 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Item System';
1127 -- Dumping data for table `item_text`
1130 LOCK TABLES `item_text` WRITE;
1131 /*!40000 ALTER TABLE `item_text` DISABLE KEYS */;
1132 /*!40000 ALTER TABLE `item_text` ENABLE KEYS */;
1133 UNLOCK TABLES;
1136 -- Table structure for table `mail`
1139 DROP TABLE IF EXISTS `mail`;
1140 CREATE TABLE `mail` (
1141   `id` int(11) unsigned NOT NULL default '0' COMMENT 'Identifier',
1142   `messageType` tinyint(3) unsigned NOT NULL default '0',
1143   `stationery` tinyint(3) NOT NULL default '41',
1144   `mailTemplateId` mediumint(8) unsigned NOT NULL default '0',
1145   `sender` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1146   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1147   `subject` longtext,
1148   `itemTextId` int(11) unsigned NOT NULL default '0',
1149   `has_items` tinyint(3) unsigned NOT NULL default '0',
1150   `expire_time` bigint(40) NOT NULL default '0',
1151   `deliver_time` bigint(40) NOT NULL default '0',
1152   `money` int(11) unsigned NOT NULL default '0',
1153   `cod` int(11) unsigned NOT NULL default '0',
1154   `checked` tinyint(3) unsigned NOT NULL default '0',
1155   PRIMARY KEY  (`id`),
1156   KEY `idx_receiver` (`receiver`)
1157 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Mail System';
1160 -- Dumping data for table `mail`
1163 LOCK TABLES `mail` WRITE;
1164 /*!40000 ALTER TABLE `mail` DISABLE KEYS */;
1165 /*!40000 ALTER TABLE `mail` ENABLE KEYS */;
1166 UNLOCK TABLES;
1169 -- Table structure for table `mail_items`
1172 DROP TABLE IF EXISTS `mail_items`;
1173 CREATE TABLE `mail_items` (
1174   `mail_id` int(11) NOT NULL default '0',
1175   `item_guid` int(11) NOT NULL default '0',
1176   `item_template` int(11) NOT NULL default '0',
1177   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1178   PRIMARY KEY  (`mail_id`,`item_guid`),
1179   KEY `idx_receiver` (`receiver`)
1180 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
1183 -- Dumping data for table `mail_items`
1186 LOCK TABLES `mail_items` WRITE;
1187 /*!40000 ALTER TABLE `mail_items` DISABLE KEYS */;
1188 /*!40000 ALTER TABLE `mail_items` ENABLE KEYS */;
1189 UNLOCK TABLES;
1192 -- Table structure for table `pet_aura`
1195 DROP TABLE IF EXISTS `pet_aura`;
1196 CREATE TABLE `pet_aura` (
1197   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1198   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
1199   `spell` int(11) unsigned NOT NULL default '0',
1200   `effect_index` int(11) unsigned NOT NULL default '0',
1201   `stackcount` int(11) NOT NULL default '1',
1202   `amount` int(11) NOT NULL default '0',
1203   `maxduration` int(11) NOT NULL default '0',
1204   `remaintime` int(11) NOT NULL default '0',
1205   `remaincharges` int(11) NOT NULL default '0',
1206   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
1207 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1210 -- Dumping data for table `pet_aura`
1213 LOCK TABLES `pet_aura` WRITE;
1214 /*!40000 ALTER TABLE `pet_aura` DISABLE KEYS */;
1215 /*!40000 ALTER TABLE `pet_aura` ENABLE KEYS */;
1216 UNLOCK TABLES;
1219 -- Table structure for table `pet_spell`
1222 DROP TABLE IF EXISTS `pet_spell`;
1223 CREATE TABLE `pet_spell` (
1224   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1225   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1226   `active` int(11) unsigned NOT NULL default '0',
1227   PRIMARY KEY  (`guid`,`spell`)
1228 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1231 -- Dumping data for table `pet_spell`
1234 LOCK TABLES `pet_spell` WRITE;
1235 /*!40000 ALTER TABLE `pet_spell` DISABLE KEYS */;
1236 /*!40000 ALTER TABLE `pet_spell` ENABLE KEYS */;
1237 UNLOCK TABLES;
1240 -- Table structure for table `pet_spell_cooldown`
1243 DROP TABLE IF EXISTS `pet_spell_cooldown`;
1244 CREATE TABLE `pet_spell_cooldown` (
1245   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
1246   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1247   `time` bigint(20) unsigned NOT NULL default '0',
1248   PRIMARY KEY  (`guid`,`spell`)
1249 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1252 -- Dumping data for table `pet_spell_cooldown`
1255 LOCK TABLES `pet_spell_cooldown` WRITE;
1256 /*!40000 ALTER TABLE `pet_spell_cooldown` DISABLE KEYS */;
1257 /*!40000 ALTER TABLE `pet_spell_cooldown` ENABLE KEYS */;
1258 UNLOCK TABLES;
1261 -- Table structure for table `petition`
1264 DROP TABLE IF EXISTS `petition`;
1265 CREATE TABLE `petition` (
1266   `ownerguid` int(10) unsigned NOT NULL,
1267   `petitionguid` int(10) unsigned default '0',
1268   `name` varchar(255) NOT NULL default '',
1269   `type` int(10) unsigned NOT NULL default '0',
1270   PRIMARY KEY  (`ownerguid`,`type`),
1271   UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
1272 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1275 -- Dumping data for table `petition`
1278 LOCK TABLES `petition` WRITE;
1279 /*!40000 ALTER TABLE `petition` DISABLE KEYS */;
1280 /*!40000 ALTER TABLE `petition` ENABLE KEYS */;
1281 UNLOCK TABLES;
1284 -- Table structure for table `petition_sign`
1287 DROP TABLE IF EXISTS `petition_sign`;
1288 CREATE TABLE `petition_sign` (
1289   `ownerguid` int(10) unsigned NOT NULL,
1290   `petitionguid` int(11) unsigned NOT NULL default '0',
1291   `playerguid` int(11) unsigned NOT NULL default '0',
1292   `player_account` int(11) unsigned NOT NULL default '0',
1293   `type` int(10) unsigned NOT NULL default '0',
1294   PRIMARY KEY  (`petitionguid`,`playerguid`)
1295 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1298 -- Dumping data for table `petition_sign`
1301 LOCK TABLES `petition_sign` WRITE;
1302 /*!40000 ALTER TABLE `petition_sign` DISABLE KEYS */;
1303 /*!40000 ALTER TABLE `petition_sign` ENABLE KEYS */;
1304 UNLOCK TABLES;
1305 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1308 -- Table structure for table `saved_variables`
1311 DROP TABLE IF EXISTS `saved_variables`;
1312 CREATE TABLE `saved_variables` (
1313     `NextArenaPointDistributionTime` bigint(40) UNSIGNED NOT NULL DEFAULT '0'
1314 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Variable Saves';
1317 -- Dumping data for table `saved_variables`
1320 LOCK TABLES `saved_variables` WRITE;
1321 /*!40000 ALTER TABLE `saved_variables` DISABLE KEYS */;
1322 /*!40000 ALTER TABLE `saved_variables` ENABLE KEYS */;
1323 UNLOCK TABLES;
1324 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1327 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1328 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1329 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1330 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1331 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1332 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1333 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1335 -- Dump completed on 2008-01-10 11:37:06