[8633] Fix possible build error at ASSERT redefine.
[getmangos.git] / sql / characters.sql
blob88664efcac8823d4e6a9d00b0844faf1e01af5c8
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_8596_01_characters_bugreport` 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` longtext NOT NULL default '',
175   `content` longtext 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_account_data`
254 DROP TABLE IF EXISTS `character_account_data`;
255 CREATE TABLE `character_account_data` (
256   `guid` int(11) unsigned NOT NULL default '0',
257   `type` int(11) unsigned NOT NULL default '0',
258   `time` bigint(11) unsigned NOT NULL default '0',
259   `data` longtext NOT NULL,
260   PRIMARY KEY  (`guid`,`type`)
261 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
264 -- Dumping data for table `character_account_data`
267 LOCK TABLES `character_account_data` WRITE;
268 /*!40000 ALTER TABLE `character_account_data` DISABLE KEYS */;
269 /*!40000 ALTER TABLE `character_account_data` ENABLE KEYS */;
270 UNLOCK TABLES;
273 -- Table structure for table `character_achievement`
276 DROP TABLE IF EXISTS `character_achievement`;
277 CREATE TABLE `character_achievement` (
278   `guid` int(11) unsigned NOT NULL,
279   `achievement` int(11) unsigned  NOT NULL,
280   `date` bigint(11) unsigned NOT NULL default '0',
281   PRIMARY KEY  (`guid`,`achievement`)
282 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
285 -- Dumping data for table `character_achievement`
288 LOCK TABLES `character_achievement` WRITE;
289 /*!40000 ALTER TABLE `character_achievement` DISABLE KEYS */;
290 /*!40000 ALTER TABLE `character_achievement` ENABLE KEYS */;
291 UNLOCK TABLES;
294 -- Table structure for table `character_achievement_progress`
297 DROP TABLE IF EXISTS `character_achievement_progress`;
298 CREATE TABLE `character_achievement_progress` (
299   `guid` int(11) unsigned NOT NULL,
300   `criteria` int(11) unsigned NOT NULL,
301   `counter` int(11) unsigned NOT NULL,
302   `date` bigint(11) unsigned NOT NULL default '0',
303   PRIMARY KEY  (`guid`,`criteria`)
304 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
307 -- Dumping data for table `character_achievement_progress`
310 LOCK TABLES `character_achievement_progress` WRITE;
311 /*!40000 ALTER TABLE `character_achievement_progress` DISABLE KEYS */;
312 /*!40000 ALTER TABLE `character_achievement_progress` ENABLE KEYS */;
313 UNLOCK TABLES;
316 -- Table structure for table `character_action`
319 DROP TABLE IF EXISTS `character_action`;
320 CREATE TABLE `character_action` (
321   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
322   `button` tinyint(3) unsigned NOT NULL default '0',
323   `action` int(11) unsigned NOT NULL default '0',
324   `type` tinyint(3) unsigned NOT NULL default '0',
325   PRIMARY KEY  (`guid`,`button`)
326 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
329 -- Dumping data for table `character_action`
332 LOCK TABLES `character_action` WRITE;
333 /*!40000 ALTER TABLE `character_action` DISABLE KEYS */;
334 /*!40000 ALTER TABLE `character_action` ENABLE KEYS */;
335 UNLOCK TABLES;
338 -- Table structure for table `character_aura`
341 DROP TABLE IF EXISTS `character_aura`;
342 CREATE TABLE `character_aura` (
343   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
344   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
345   `spell` int(11) unsigned NOT NULL default '0',
346   `effect_index` int(11) unsigned NOT NULL default '0',
347   `stackcount` int(11) NOT NULL default '1',
348   `amount` int(11) NOT NULL default '0',
349   `maxduration` int(11) NOT NULL default '0',
350   `remaintime` int(11) NOT NULL default '0',
351   `remaincharges` int(11) NOT NULL default '0',
352   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
353 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
356 -- Dumping data for table `character_aura`
359 LOCK TABLES `character_aura` WRITE;
360 /*!40000 ALTER TABLE `character_aura` DISABLE KEYS */;
361 /*!40000 ALTER TABLE `character_aura` ENABLE KEYS */;
362 UNLOCK TABLES;
365 -- Table structure for table `character_battleground_data`
368 DROP TABLE IF EXISTS `character_battleground_data`;
369 CREATE TABLE `character_battleground_data` (
370   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
371   `instance_id` int(11) unsigned NOT NULL default '0',
372   `team` int(11) unsigned NOT NULL default '0',
373   `join_x` float NOT NULL default '0',
374   `join_y` float NOT NULL default '0',
375   `join_z` float NOT NULL default '0',
376   `join_o` float NOT NULL default '0',
377   `join_map` int(11) NOT NULL default '0',
378   `taxi_start` int(11) NOT NULL default '0',
379   `taxi_end` int(11) NOT NULL default '0',
380   `mount_spell` int(11) NOT NULL default '0',
381   PRIMARY KEY  (`guid`)
382 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
385 -- Dumping data for table `character_battleground_data`
388 LOCK TABLES `character_battleground_data` WRITE;
389 /*!40000 ALTER TABLE `character_battleground_data` DISABLE KEYS */;
390 /*!40000 ALTER TABLE `character_battleground_data` ENABLE KEYS */;
391 UNLOCK TABLES;
394 -- Table structure for table `character_declinedname`
397 DROP TABLE IF EXISTS `character_declinedname`;
398 CREATE TABLE `character_declinedname` (
399   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
400   `genitive` varchar(15) NOT NULL default '',
401   `dative` varchar(15) NOT NULL default '',
402   `accusative` varchar(15) NOT NULL default '',
403   `instrumental` varchar(15) NOT NULL default '',
404   `prepositional` varchar(15) NOT NULL default '',
405   PRIMARY KEY  (`guid`)
406 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
409 -- Dumping data for table `character_declinedname`
412 LOCK TABLES `character_declinedname` WRITE;
413 /*!40000 ALTER TABLE `character_declinedname` DISABLE KEYS */;
414 /*!40000 ALTER TABLE `character_declinedname` ENABLE KEYS */;
415 UNLOCK TABLES;
418 -- Table structure for table `character_equipmentsets`
421 DROP TABLE IF EXISTS `character_equipmentsets`;
422 CREATE TABLE `character_equipmentsets` (
423   `guid` int(11) NOT NULL default '0',
424   `setguid` bigint(20) NOT NULL auto_increment,
425   `setindex` tinyint(4) NOT NULL default '0',
426   `name` varchar(100) NOT NULL,
427   `iconname` varchar(100) NOT NULL,
428   `item0` int(11) NOT NULL default '0',
429   `item1` int(11) NOT NULL default '0',
430   `item2` int(11) NOT NULL default '0',
431   `item3` int(11) NOT NULL default '0',
432   `item4` int(11) NOT NULL default '0',
433   `item5` int(11) NOT NULL default '0',
434   `item6` int(11) NOT NULL default '0',
435   `item7` int(11) NOT NULL default '0',
436   `item8` int(11) NOT NULL default '0',
437   `item9` int(11) NOT NULL default '0',
438   `item10` int(11) NOT NULL default '0',
439   `item11` int(11) NOT NULL default '0',
440   `item12` int(11) NOT NULL default '0',
441   `item13` int(11) NOT NULL default '0',
442   `item14` int(11) NOT NULL default '0',
443   `item15` int(11) NOT NULL default '0',
444   `item16` int(11) NOT NULL default '0',
445   `item17` int(11) NOT NULL default '0',
446   `item18` int(11) NOT NULL default '0',
447   PRIMARY KEY  (`setguid`),
448   UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`)
449 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
452 -- Dumping data for table `character_equipmentsets`
455 LOCK TABLES `character_equipmentsets` WRITE;
456 /*!40000 ALTER TABLE `character_equipmentsets` DISABLE KEYS */;
457 /*!40000 ALTER TABLE `character_equipmentsets` ENABLE KEYS */;
458 UNLOCK TABLES;
461 -- Table structure for table `character_gifts`
464 DROP TABLE IF EXISTS `character_gifts`;
465 CREATE TABLE `character_gifts` (
466   `guid` int(20) unsigned NOT NULL default '0',
467   `item_guid` int(11) unsigned NOT NULL default '0',
468   `entry` int(20) unsigned NOT NULL default '0',
469   `flags` int(20) unsigned NOT NULL default '0',
470   PRIMARY KEY  (`item_guid`),
471   KEY `idx_guid` (`guid`)
472 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
475 -- Dumping data for table `character_gifts`
478 LOCK TABLES `character_gifts` WRITE;
479 /*!40000 ALTER TABLE `character_gifts` DISABLE KEYS */;
480 /*!40000 ALTER TABLE `character_gifts` ENABLE KEYS */;
481 UNLOCK TABLES;
484 -- Table structure for table `character_homebind`
487 DROP TABLE IF EXISTS `character_homebind`;
488 CREATE TABLE `character_homebind` (
489   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
490   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
491   `zone` int(11) unsigned NOT NULL default '0' COMMENT 'Zone Identifier',
492   `position_x` float NOT NULL default '0',
493   `position_y` float NOT NULL default '0',
494   `position_z` float NOT NULL default '0',
495   PRIMARY KEY  (`guid`)
496 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
499 -- Dumping data for table `character_homebind`
502 LOCK TABLES `character_homebind` WRITE;
503 /*!40000 ALTER TABLE `character_homebind` DISABLE KEYS */;
504 /*!40000 ALTER TABLE `character_homebind` ENABLE KEYS */;
505 UNLOCK TABLES;
508 -- Table structure for table `character_instance`
511 DROP TABLE IF EXISTS `character_instance`;
512 CREATE TABLE `character_instance` (
513   `guid` int(11) unsigned NOT NULL default '0',
514   `instance` int(11) unsigned NOT NULL default '0',
515   `permanent` tinyint(1) unsigned NOT NULL default '0',
516   PRIMARY KEY  (`guid`,`instance`),
517   KEY `instance` (`instance`)
518 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
521 -- Dumping data for table `character_instance`
524 LOCK TABLES `character_instance` WRITE;
525 /*!40000 ALTER TABLE `character_instance` DISABLE KEYS */;
526 /*!40000 ALTER TABLE `character_instance` ENABLE KEYS */;
527 UNLOCK TABLES;
530 -- Table structure for table `character_inventory`
533 DROP TABLE IF EXISTS `character_inventory`;
534 CREATE TABLE `character_inventory` (
535   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
536   `bag` int(11) unsigned NOT NULL default '0',
537   `slot` tinyint(3) unsigned NOT NULL default '0',
538   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Global Unique Identifier',
539   `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
540   PRIMARY KEY  (`item`),
541   KEY `idx_guid` (`guid`)
542 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
545 -- Dumping data for table `character_inventory`
548 LOCK TABLES `character_inventory` WRITE;
549 /*!40000 ALTER TABLE `character_inventory` DISABLE KEYS */;
550 /*!40000 ALTER TABLE `character_inventory` ENABLE KEYS */;
551 UNLOCK TABLES;
554 -- Table structure for table `character_pet`
557 DROP TABLE IF EXISTS `character_pet`;
558 CREATE TABLE `character_pet` (
559   `id` int(11) unsigned NOT NULL default '0',
560   `entry` int(11) unsigned NOT NULL default '0',
561   `owner` int(11) unsigned NOT NULL default '0',
562   `modelid` int(11) unsigned default '0',
563   `CreatedBySpell` int(11) unsigned NOT NULL default '0',
564   `PetType` tinyint(3) unsigned NOT NULL default '0',
565   `level` int(11) unsigned NOT NULL default '1',
566   `exp` int(11) unsigned NOT NULL default '0',
567   `Reactstate` tinyint(1) unsigned NOT NULL default '0',
568   `name` varchar(100) default 'Pet',
569   `renamed` tinyint(1) unsigned NOT NULL default '0',
570   `slot` int(11) unsigned NOT NULL default '0',
571   `curhealth` int(11) unsigned NOT NULL default '1',
572   `curmana` int(11) unsigned NOT NULL default '0',
573   `curhappiness` int(11) unsigned NOT NULL default '0',
574   `savetime` bigint(20) unsigned NOT NULL default '0',
575   `resettalents_cost` int(11) unsigned NOT NULL default '0',
576   `resettalents_time` bigint(20) unsigned NOT NULL default '0',
577   `abdata` longtext,
578   PRIMARY KEY  (`id`),
579   KEY `owner` (`owner`)
580 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
583 -- Dumping data for table `character_pet`
586 LOCK TABLES `character_pet` WRITE;
587 /*!40000 ALTER TABLE `character_pet` DISABLE KEYS */;
588 /*!40000 ALTER TABLE `character_pet` ENABLE KEYS */;
589 UNLOCK TABLES;
592 -- Table structure for table `character_pet_declinedname`
595 DROP TABLE IF EXISTS `character_pet_declinedname`;
596 CREATE TABLE `character_pet_declinedname` (
597   `id` int(11) unsigned NOT NULL default '0',
598   `owner` int(11) unsigned NOT NULL default '0',
599   `genitive` varchar(12) NOT NULL default '',
600   `dative` varchar(12) NOT NULL default '',
601   `accusative` varchar(12) NOT NULL default '',
602   `instrumental` varchar(12) NOT NULL default '',
603   `prepositional` varchar(12) NOT NULL default '',
604   PRIMARY KEY  (`id`),
605   KEY owner_key (`owner`)
606 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
609 -- Dumping data for table `character_pet_declinedname`
612 LOCK TABLES `character_pet_declinedname` WRITE;
613 /*!40000 ALTER TABLE `character_pet_declinedname` DISABLE KEYS */;
614 /*!40000 ALTER TABLE `character_pet_declinedname` ENABLE KEYS */;
615 UNLOCK TABLES;
618 -- Table structure for table `character_queststatus`
621 DROP TABLE IF EXISTS `character_queststatus`;
622 CREATE TABLE `character_queststatus` (
623   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
624   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
625   `status` int(11) unsigned NOT NULL default '0',
626   `rewarded` tinyint(1) unsigned NOT NULL default '0',
627   `explored` tinyint(1) unsigned NOT NULL default '0',
628   `timer` bigint(20) unsigned NOT NULL default '0',
629   `mobcount1` int(11) unsigned NOT NULL default '0',
630   `mobcount2` int(11) unsigned NOT NULL default '0',
631   `mobcount3` int(11) unsigned NOT NULL default '0',
632   `mobcount4` int(11) unsigned NOT NULL default '0',
633   `itemcount1` int(11) unsigned NOT NULL default '0',
634   `itemcount2` int(11) unsigned NOT NULL default '0',
635   `itemcount3` int(11) unsigned NOT NULL default '0',
636   `itemcount4` int(11) unsigned NOT NULL default '0',
637   PRIMARY KEY  (`guid`,`quest`)
638 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
641 -- Dumping data for table `character_queststatus`
644 LOCK TABLES `character_queststatus` WRITE;
645 /*!40000 ALTER TABLE `character_queststatus` DISABLE KEYS */;
646 /*!40000 ALTER TABLE `character_queststatus` ENABLE KEYS */;
647 UNLOCK TABLES;
650 -- Table structure for table `character_queststatus_daily`
653 DROP TABLE IF EXISTS `character_queststatus_daily`;
654 CREATE TABLE `character_queststatus_daily` (
655   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
656   `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
657   `time` bigint(20) unsigned NOT NULL default '0',
658   PRIMARY KEY  (`guid`,`quest`),
659   KEY `idx_guid` (`guid`)
660 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
663 -- Dumping data for table `character_queststatus_daily`
666 LOCK TABLES `character_queststatus_daily` WRITE;
667 /*!40000 ALTER TABLE `character_queststatus_daily` DISABLE KEYS */;
668 /*!40000 ALTER TABLE `character_queststatus_daily` ENABLE KEYS */;
669 UNLOCK TABLES;
672 -- Table structure for table `character_reputation`
675 DROP TABLE IF EXISTS `character_reputation`;
676 CREATE TABLE `character_reputation` (
677   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
678   `faction` int(11) unsigned NOT NULL default '0',
679   `standing` int(11) NOT NULL default '0',
680   `flags` int(11) NOT NULL default '0',
681   PRIMARY KEY  (`guid`,`faction`)
682 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
685 -- Dumping data for table `character_reputation`
688 LOCK TABLES `character_reputation` WRITE;
689 /*!40000 ALTER TABLE `character_reputation` DISABLE KEYS */;
690 /*!40000 ALTER TABLE `character_reputation` ENABLE KEYS */;
691 UNLOCK TABLES;
694 -- Table structure for table `character_social`
697 DROP TABLE IF EXISTS `character_social`;
698 CREATE TABLE `character_social` (
699   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
700   `friend` int(11) unsigned NOT NULL default '0' COMMENT 'Friend Global Unique Identifier',
701   `flags` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Friend Flags',
702   `note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note',
703   PRIMARY KEY  (`guid`,`friend`,`flags`),
704   KEY `guid` (`guid`),
705   KEY `friend` (`friend`),
706   KEY `guid_flags` (`guid`,`flags`),
707   KEY `friend_flags` (`friend`,`flags`)
708 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
711 -- Dumping data for table `character_social`
714 LOCK TABLES `character_social` WRITE;
715 /*!40000 ALTER TABLE `character_social` DISABLE KEYS */;
716 /*!40000 ALTER TABLE `character_social` ENABLE KEYS */;
717 UNLOCK TABLES;
720 -- Table structure for table `character_spell`
723 DROP TABLE IF EXISTS `character_spell`;
724 CREATE TABLE `character_spell` (
725   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
726   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
727   `active` tinyint(3) unsigned NOT NULL default '1',
728   `disabled` tinyint(3) unsigned NOT NULL default '0',
729   PRIMARY KEY  (`guid`,`spell`)
730 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
733 -- Dumping data for table `character_spell`
736 LOCK TABLES `character_spell` WRITE;
737 /*!40000 ALTER TABLE `character_spell` DISABLE KEYS */;
738 /*!40000 ALTER TABLE `character_spell` ENABLE KEYS */;
739 UNLOCK TABLES;
742 -- Table structure for table `character_spell_cooldown`
745 DROP TABLE IF EXISTS `character_spell_cooldown`;
746 CREATE TABLE `character_spell_cooldown` (
747   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
748   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
749   `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier',
750   `time` bigint(20) unsigned NOT NULL default '0',
751   PRIMARY KEY  (`guid`,`spell`)
752 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
755 -- Dumping data for table `character_spell_cooldown`
758 LOCK TABLES `character_spell_cooldown` WRITE;
759 /*!40000 ALTER TABLE `character_spell_cooldown` DISABLE KEYS */;
760 /*!40000 ALTER TABLE `character_spell_cooldown` ENABLE KEYS */;
761 UNLOCK TABLES;
764 -- Table structure for table `character_ticket`
767 DROP TABLE IF EXISTS `character_ticket`;
768 CREATE TABLE `character_ticket` (
769   `ticket_id` int(11) unsigned NOT NULL auto_increment,
770   `guid` int(11) unsigned NOT NULL default '0',
771   `ticket_text` text,
772   `ticket_lastchange` TIMESTAMP ON  UPDATE  CURRENT_TIMESTAMP  NOT  NULL  DEFAULT CURRENT_TIMESTAMP,
773   PRIMARY KEY  (`ticket_id`)
774 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
777 -- Dumping data for table `character_ticket`
780 LOCK TABLES `character_ticket` WRITE;
781 /*!40000 ALTER TABLE `character_ticket` DISABLE KEYS */;
782 /*!40000 ALTER TABLE `character_ticket` ENABLE KEYS */;
783 UNLOCK TABLES;
786 -- Table structure for table `character_tutorial`
789 DROP TABLE IF EXISTS `character_tutorial`;
790 CREATE TABLE `character_tutorial` (
791   `account` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Account Identifier',
792   `realmid` int(11) unsigned NOT NULL default '0' COMMENT 'Realm Identifier',
793   `tut0` int(11) unsigned NOT NULL default '0',
794   `tut1` int(11) unsigned NOT NULL default '0',
795   `tut2` int(11) unsigned NOT NULL default '0',
796   `tut3` int(11) unsigned NOT NULL default '0',
797   `tut4` int(11) unsigned NOT NULL default '0',
798   `tut5` int(11) unsigned NOT NULL default '0',
799   `tut6` int(11) unsigned NOT NULL default '0',
800   `tut7` int(11) unsigned NOT NULL default '0',
801   PRIMARY KEY  (`account`,`realmid`),
802   KEY acc_key (`account`)
803 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
806 -- Dumping data for table `character_tutorial`
809 LOCK TABLES `character_tutorial` WRITE;
810 /*!40000 ALTER TABLE `character_tutorial` DISABLE KEYS */;
811 /*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */;
812 UNLOCK TABLES;
815 -- Table structure for table `corpse`
818 DROP TABLE IF EXISTS `corpse`;
819 CREATE TABLE `corpse` (
820   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
821   `player` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
822   `position_x` float NOT NULL default '0',
823   `position_y` float NOT NULL default '0',
824   `position_z` float NOT NULL default '0',
825   `orientation` float NOT NULL default '0',
826   `zone` int(11) unsigned NOT NULL default '38' COMMENT 'Zone Identifier',
827   `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
828   `phaseMask` smallint(5) unsigned NOT NULL default '1',
829   `data` longtext,
830   `time` bigint(20) unsigned NOT NULL default '0',
831   `corpse_type` tinyint(3) unsigned NOT NULL default '0',
832   `instance` int(11) unsigned NOT NULL default '0',
833   PRIMARY KEY  (`guid`),
834   KEY `idx_type` (`corpse_type`),
835   KEY `instance` (`instance`)
836 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Death System';
839 -- Dumping data for table `corpse`
842 LOCK TABLES `corpse` WRITE;
843 /*!40000 ALTER TABLE `corpse` DISABLE KEYS */;
844 /*!40000 ALTER TABLE `corpse` ENABLE KEYS */;
845 UNLOCK TABLES;
848 -- Table structure for table `groups`
851 DROP TABLE IF EXISTS `groups`;
852 CREATE TABLE `groups` (
853   `leaderGuid` int(11) unsigned NOT NULL,
854   `mainTank` int(11) unsigned NOT NULL,
855   `mainAssistant` int(11) unsigned NOT NULL,
856   `lootMethod` tinyint(4) unsigned NOT NULL,
857   `looterGuid` int(11) unsigned NOT NULL,
858   `lootThreshold` tinyint(4) unsigned NOT NULL,
859   `icon1` int(11) unsigned NOT NULL,
860   `icon2` int(11) unsigned NOT NULL,
861   `icon3` int(11) unsigned NOT NULL,
862   `icon4` int(11) unsigned NOT NULL,
863   `icon5` int(11) unsigned NOT NULL,
864   `icon6` int(11) unsigned NOT NULL,
865   `icon7` int(11) unsigned NOT NULL,
866   `icon8` int(11) unsigned NOT NULL,
867   `isRaid` tinyint(1) unsigned NOT NULL,
868   `difficulty` tinyint(3) unsigned NOT NULL default '0',
869   `raiddifficulty` int(11) UNSIGNED NOT NULL default '0',
870   PRIMARY KEY  (`leaderGuid`)
871 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
874 -- Dumping data for table `groups`
877 LOCK TABLES `groups` WRITE;
878 /*!40000 ALTER TABLE `groups` DISABLE KEYS */;
879 /*!40000 ALTER TABLE `groups` ENABLE KEYS */;
880 UNLOCK TABLES;
882 -- ----------------------------
883 -- Table structure for group_instance
884 -- ----------------------------
885 DROP TABLE IF EXISTS `group_instance`;
886 CREATE TABLE `group_instance` (
887   `leaderGuid` int(11) unsigned NOT NULL default '0',
888   `instance` int(11) unsigned NOT NULL default '0',
889   `permanent` tinyint(1) unsigned NOT NULL default '0',
890   PRIMARY KEY  (`leaderGuid`,`instance`),
891   KEY `instance` (`instance`)
892 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
895 -- Dumping data for table `group_instance`
898 LOCK TABLES `group_instance` WRITE;
899 /*!40000 ALTER TABLE `group_instance` DISABLE KEYS */;
900 /*!40000 ALTER TABLE `group_instance` ENABLE KEYS */;
901 UNLOCK TABLES;
904 -- Table structure for table `group_member`
907 DROP TABLE IF EXISTS `group_member`;
908 CREATE TABLE `group_member` (
909   `leaderGuid` int(11) unsigned NOT NULL,
910   `memberGuid` int(11) unsigned NOT NULL,
911   `assistant` tinyint(1) unsigned NOT NULL,
912   `subgroup` smallint(6) unsigned NOT NULL,
913   PRIMARY KEY  (`leaderGuid`,`memberGuid`)
914 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
917 -- Dumping data for table `group_member`
920 LOCK TABLES `group_member` WRITE;
921 /*!40000 ALTER TABLE `group_member` DISABLE KEYS */;
922 /*!40000 ALTER TABLE `group_member` ENABLE KEYS */;
923 UNLOCK TABLES;
926 -- Table structure for table `guild`
929 DROP TABLE IF EXISTS `guild`;
930 CREATE TABLE `guild` (
931   `guildid` int(6) unsigned NOT NULL default '0',
932   `name` varchar(255) NOT NULL default '',
933   `leaderguid` int(6) unsigned NOT NULL default '0',
934   `EmblemStyle` int(5) NOT NULL default '0',
935   `EmblemColor` int(5) NOT NULL default '0',
936   `BorderStyle` int(5) NOT NULL default '0',
937   `BorderColor` int(5) NOT NULL default '0',
938   `BackgroundColor` int(5) NOT NULL default '0',
939   `info` text NOT NULL,
940   `motd` varchar(255) NOT NULL default '',
941   `createdate` bigint(20) NOT NULL default '0',
942   `BankMoney` bigint(20) NOT NULL default '0',
943   PRIMARY KEY  (`guildid`)
944 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
947 -- Dumping data for table `guild`
950 LOCK TABLES `guild` WRITE;
951 /*!40000 ALTER TABLE `guild` DISABLE KEYS */;
952 /*!40000 ALTER TABLE `guild` ENABLE KEYS */;
953 UNLOCK TABLES;
956 -- Table structure for table `guild_bank_eventlog`
959 DROP TABLE IF EXISTS `guild_bank_eventlog`;
960 CREATE TABLE `guild_bank_eventlog` (
961   `guildid` int(11) unsigned NOT NULL default '0' COMMENT 'Guild Identificator',
962   `LogGuid` int(11) unsigned NOT NULL default '0' COMMENT 'Log record identificator - auxiliary column',
963   `TabId` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Guild bank TabId',
964   `EventType` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Event type',
965   `PlayerGuid` int(11) unsigned NOT NULL default '0',
966   `ItemOrMoney` int(11) unsigned NOT NULL default '0',
967   `ItemStackCount` tinyint(3) unsigned NOT NULL default '0',
968   `DestTabId` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Destination Tab Id',
969   `TimeStamp` bigint(20) unsigned NOT NULL default '0' COMMENT 'Event UNIX time',
970   PRIMARY KEY  (`guildid`,`LogGuid`,`TabId`),
971   KEY `guildid_key` (`guildid`)
972 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
975 -- Dumping data for table `guild_bank_eventlog`
978 LOCK TABLES `guild_bank_eventlog` WRITE;
979 /*!40000 ALTER TABLE `guild_bank_eventlog` DISABLE KEYS */;
980 /*!40000 ALTER TABLE `guild_bank_eventlog` ENABLE KEYS */;
981 UNLOCK TABLES;
984 -- Table structure for table `guild_bank_item`
987 DROP TABLE IF EXISTS `guild_bank_item`;
988 CREATE TABLE `guild_bank_item` (
989   `guildid` int(11) unsigned NOT NULL default '0',
990   `TabId` tinyint(1) unsigned NOT NULL default '0',
991   `SlotId` tinyint(3) unsigned NOT NULL default '0',
992   `item_guid` int(11) unsigned NOT NULL default '0',
993   `item_entry` int(11) unsigned NOT NULL default '0',
994   PRIMARY KEY  (`guildid`,`tabid`,`slotid`),
995   KEY `guildid_key` (`guildid`)
996 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
999 -- Dumping data for table `guild_bank_item`
1002 LOCK TABLES `guild_bank_item` WRITE;
1003 /*!40000 ALTER TABLE `guild_bank_item` DISABLE KEYS */;
1004 /*!40000 ALTER TABLE `guild_bank_item` ENABLE KEYS */;
1005 UNLOCK TABLES;
1008 -- Table structure for table `guild_bank_right`
1011 DROP TABLE IF EXISTS `guild_bank_right`;
1012 CREATE TABLE `guild_bank_right` (
1013   `guildid` int(11) unsigned NOT NULL default '0',
1014   `TabId` tinyint(1) unsigned NOT NULL default '0',
1015   `rid` int(11) unsigned NOT NULL default '0',
1016   `gbright` tinyint(3) unsigned NOT NULL default '0',
1017   `SlotPerDay` int(11) unsigned NOT NULL default '0',
1018   PRIMARY KEY  (`guildid`,`TabId`,`rid`),
1019   KEY `guildid_key` (`guildid`)
1020 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1023 -- Dumping data for table `guild_bank_right`
1026 LOCK TABLES `guild_bank_right` WRITE;
1027 /*!40000 ALTER TABLE `guild_bank_right` DISABLE KEYS */;
1028 /*!40000 ALTER TABLE `guild_bank_right` ENABLE KEYS */;
1029 UNLOCK TABLES;
1032 -- Table structure for table `guild_bank_tab`
1035 DROP TABLE IF EXISTS `guild_bank_tab`;
1036 CREATE TABLE `guild_bank_tab` (
1037   `guildid` int(11) unsigned NOT NULL default '0',
1038   `TabId` tinyint(1) unsigned NOT NULL default '0',
1039   `TabName` varchar(100) NOT NULL default '',
1040   `TabIcon` varchar(100) NOT NULL default '',
1041   `TabText` text,
1042   PRIMARY KEY  (`guildid`,`TabId`),
1043   KEY `guildid_key` (`guildid`)
1044 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1047 -- Dumping data for table `guild_bank_tab`
1050 LOCK TABLES `guild_bank_tab` WRITE;
1051 /*!40000 ALTER TABLE `guild_bank_tab` DISABLE KEYS */;
1052 /*!40000 ALTER TABLE `guild_bank_tab` ENABLE KEYS */;
1053 UNLOCK TABLES;
1056 -- Table structure for table `guild_eventlog`
1059 DROP TABLE IF EXISTS `guild_eventlog`;
1060 CREATE TABLE `guild_eventlog` (
1061   `guildid` int(11) NOT NULL COMMENT 'Guild Identificator',
1062   `LogGuid` int(11) NOT NULL COMMENT 'Log record identificator - auxiliary column',
1063   `EventType` tinyint(1) NOT NULL COMMENT 'Event type',
1064   `PlayerGuid1` int(11) NOT NULL COMMENT 'Player 1',
1065   `PlayerGuid2` int(11) NOT NULL COMMENT 'Player 2',
1066   `NewRank` tinyint(2) NOT NULL COMMENT 'New rank(in case promotion/demotion)',
1067   `TimeStamp` bigint(20) NOT NULL COMMENT 'Event UNIX time',
1068   PRIMARY KEY (`guildid`, `LogGuid`)
1069 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'Guild Eventlog';
1072 -- Dumping data for table `guild_eventlog`
1075 LOCK TABLES `guild_eventlog` WRITE;
1076 /*!40000 ALTER TABLE `guild_eventlog` DISABLE KEYS */;
1077 /*!40000 ALTER TABLE `guild_eventlog` ENABLE KEYS */;
1078 UNLOCK TABLES;
1081 -- Table structure for table `guild_member`
1084 DROP TABLE IF EXISTS `guild_member`;
1085 CREATE TABLE `guild_member` (
1086   `guildid` int(6) unsigned NOT NULL default '0',
1087   `guid` int(11) unsigned NOT NULL default '0',
1088   `rank` tinyint(2) unsigned NOT NULL default '0',
1089   `pnote` varchar(255) NOT NULL default '',
1090   `offnote` varchar(255) NOT NULL default '',
1091   `BankResetTimeMoney` int(11) unsigned NOT NULL default '0',
1092   `BankRemMoney` int(11) unsigned NOT NULL default '0',
1093   `BankResetTimeTab0` int(11) unsigned NOT NULL default '0',
1094   `BankRemSlotsTab0` int(11) unsigned NOT NULL default '0',
1095   `BankResetTimeTab1` int(11) unsigned NOT NULL default '0',
1096   `BankRemSlotsTab1` int(11) unsigned NOT NULL default '0',
1097   `BankResetTimeTab2` int(11) unsigned NOT NULL default '0',
1098   `BankRemSlotsTab2` int(11) unsigned NOT NULL default '0',
1099   `BankResetTimeTab3` int(11) unsigned NOT NULL default '0',
1100   `BankRemSlotsTab3` int(11) unsigned NOT NULL default '0',
1101   `BankResetTimeTab4` int(11) unsigned NOT NULL default '0',
1102   `BankRemSlotsTab4` int(11) unsigned NOT NULL default '0',
1103   `BankResetTimeTab5` int(11) unsigned NOT NULL default '0',
1104   `BankRemSlotsTab5` int(11) unsigned NOT NULL default '0',
1105   KEY `guildid_key` (`guildid`),
1106   KEY `guildid_rank_key` (`guildid`,`rank`),
1107   UNIQUE KEY `guid_key` (`guid`)
1108 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System';
1111 -- Dumping data for table `guild_member`
1114 LOCK TABLES `guild_member` WRITE;
1115 /*!40000 ALTER TABLE `guild_member` DISABLE KEYS */;
1116 /*!40000 ALTER TABLE `guild_member` ENABLE KEYS */;
1117 UNLOCK TABLES;
1120 -- Table structure for table `guild_rank`
1123 DROP TABLE IF EXISTS `guild_rank`;
1124 CREATE TABLE `guild_rank` (
1125   `guildid` int(6) unsigned NOT NULL default '0',
1126   `rid` int(11) unsigned NOT NULL,
1127   `rname` varchar(255) NOT NULL default '',
1128   `rights` int(3) unsigned NOT NULL default '0',
1129   `BankMoneyPerDay` int(11) unsigned NOT NULL default '0',
1130   PRIMARY KEY  (`guildid`,`rid`)
1131 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1134 -- Dumping data for table `guild_rank`
1137 LOCK TABLES `guild_rank` WRITE;
1138 /*!40000 ALTER TABLE `guild_rank` DISABLE KEYS */;
1139 /*!40000 ALTER TABLE `guild_rank` ENABLE KEYS */;
1140 UNLOCK TABLES;
1143 -- Table structure for table `instance`
1146 DROP TABLE IF EXISTS `instance`;
1147 CREATE TABLE `instance` (
1148   `id` int(11) unsigned NOT NULL default '0',
1149   `map` int(11) unsigned NOT NULL default '0',
1150   `resettime` bigint(40) NOT NULL default '0',
1151   `difficulty` tinyint(1) unsigned NOT NULL default '0',
1152   `data` longtext,
1153   PRIMARY KEY  (`id`),
1154   KEY `map` (`map`),
1155   KEY `resettime` (`resettime`)
1156 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1159 -- Dumping data for table `instance`
1162 LOCK TABLES `instance` WRITE;
1163 /*!40000 ALTER TABLE `instance` DISABLE KEYS */;
1164 /*!40000 ALTER TABLE `instance` ENABLE KEYS */;
1165 UNLOCK TABLES;
1167 -- ----------------------------
1168 -- Table structure for instance_reset
1169 -- ----------------------------
1170 DROP TABLE IF EXISTS `instance_reset`;
1171 CREATE TABLE `instance_reset` (
1172   `mapid` int(11) unsigned NOT NULL default '0',
1173   `resettime` bigint(40) NOT NULL default '0',
1174   PRIMARY KEY  (`mapid`)
1175 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1178 -- Dumping data for table `instance_reset`
1181 LOCK TABLES `instance_reset` WRITE;
1182 /*!40000 ALTER TABLE `instance_reset` DISABLE KEYS */;
1183 /*!40000 ALTER TABLE `instance_reset` ENABLE KEYS */;
1184 UNLOCK TABLES;
1187 -- Table structure for table `item_instance`
1190 DROP TABLE IF EXISTS `item_instance`;
1191 CREATE TABLE `item_instance` (
1192   `guid` int(11) unsigned NOT NULL default '0',
1193   `owner_guid` int(11) unsigned NOT NULL default '0',
1194   `data` longtext,
1195   PRIMARY KEY  (`guid`),
1196   KEY `idx_owner_guid` (`owner_guid`)
1197 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System';
1200 -- Dumping data for table `item_instance`
1203 LOCK TABLES `item_instance` WRITE;
1204 /*!40000 ALTER TABLE `item_instance` DISABLE KEYS */;
1205 /*!40000 ALTER TABLE `item_instance` ENABLE KEYS */;
1206 UNLOCK TABLES;
1209 -- Table structure for table `item_text`
1212 DROP TABLE IF EXISTS `item_text`;
1213 CREATE TABLE `item_text` (
1214   `id` int(11) unsigned NOT NULL default '0',
1215   `text` longtext,
1216   PRIMARY KEY  (`id`)
1217 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Item System';
1220 -- Dumping data for table `item_text`
1223 LOCK TABLES `item_text` WRITE;
1224 /*!40000 ALTER TABLE `item_text` DISABLE KEYS */;
1225 /*!40000 ALTER TABLE `item_text` ENABLE KEYS */;
1226 UNLOCK TABLES;
1229 -- Table structure for table `mail`
1232 DROP TABLE IF EXISTS `mail`;
1233 CREATE TABLE `mail` (
1234   `id` int(11) unsigned NOT NULL default '0' COMMENT 'Identifier',
1235   `messageType` tinyint(3) unsigned NOT NULL default '0',
1236   `stationery` tinyint(3) NOT NULL default '41',
1237   `mailTemplateId` mediumint(8) unsigned NOT NULL default '0',
1238   `sender` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1239   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1240   `subject` longtext,
1241   `itemTextId` int(11) unsigned NOT NULL default '0',
1242   `has_items` tinyint(3) unsigned NOT NULL default '0',
1243   `expire_time` bigint(40) NOT NULL default '0',
1244   `deliver_time` bigint(40) NOT NULL default '0',
1245   `money` int(11) unsigned NOT NULL default '0',
1246   `cod` int(11) unsigned NOT NULL default '0',
1247   `checked` tinyint(3) unsigned NOT NULL default '0',
1248   PRIMARY KEY  (`id`),
1249   KEY `idx_receiver` (`receiver`)
1250 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Mail System';
1253 -- Dumping data for table `mail`
1256 LOCK TABLES `mail` WRITE;
1257 /*!40000 ALTER TABLE `mail` DISABLE KEYS */;
1258 /*!40000 ALTER TABLE `mail` ENABLE KEYS */;
1259 UNLOCK TABLES;
1262 -- Table structure for table `mail_items`
1265 DROP TABLE IF EXISTS `mail_items`;
1266 CREATE TABLE `mail_items` (
1267   `mail_id` int(11) NOT NULL default '0',
1268   `item_guid` int(11) NOT NULL default '0',
1269   `item_template` int(11) NOT NULL default '0',
1270   `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier',
1271   PRIMARY KEY  (`mail_id`,`item_guid`),
1272   KEY `idx_receiver` (`receiver`)
1273 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
1276 -- Dumping data for table `mail_items`
1279 LOCK TABLES `mail_items` WRITE;
1280 /*!40000 ALTER TABLE `mail_items` DISABLE KEYS */;
1281 /*!40000 ALTER TABLE `mail_items` ENABLE KEYS */;
1282 UNLOCK TABLES;
1285 -- Table structure for table `pet_aura`
1288 DROP TABLE IF EXISTS `pet_aura`;
1289 CREATE TABLE `pet_aura` (
1290   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1291   `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier',
1292   `spell` int(11) unsigned NOT NULL default '0',
1293   `effect_index` int(11) unsigned NOT NULL default '0',
1294   `stackcount` int(11) NOT NULL default '1',
1295   `amount` int(11) NOT NULL default '0',
1296   `maxduration` int(11) NOT NULL default '0',
1297   `remaintime` int(11) NOT NULL default '0',
1298   `remaincharges` int(11) NOT NULL default '0',
1299   PRIMARY KEY  (`guid`,`spell`,`effect_index`)
1300 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1303 -- Dumping data for table `pet_aura`
1306 LOCK TABLES `pet_aura` WRITE;
1307 /*!40000 ALTER TABLE `pet_aura` DISABLE KEYS */;
1308 /*!40000 ALTER TABLE `pet_aura` ENABLE KEYS */;
1309 UNLOCK TABLES;
1312 -- Table structure for table `pet_spell`
1315 DROP TABLE IF EXISTS `pet_spell`;
1316 CREATE TABLE `pet_spell` (
1317   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
1318   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1319   `active` int(11) unsigned NOT NULL default '0',
1320   PRIMARY KEY  (`guid`,`spell`)
1321 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System';
1324 -- Dumping data for table `pet_spell`
1327 LOCK TABLES `pet_spell` WRITE;
1328 /*!40000 ALTER TABLE `pet_spell` DISABLE KEYS */;
1329 /*!40000 ALTER TABLE `pet_spell` ENABLE KEYS */;
1330 UNLOCK TABLES;
1333 -- Table structure for table `pet_spell_cooldown`
1336 DROP TABLE IF EXISTS `pet_spell_cooldown`;
1337 CREATE TABLE `pet_spell_cooldown` (
1338   `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part',
1339   `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
1340   `time` bigint(20) unsigned NOT NULL default '0',
1341   PRIMARY KEY  (`guid`,`spell`)
1342 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1345 -- Dumping data for table `pet_spell_cooldown`
1348 LOCK TABLES `pet_spell_cooldown` WRITE;
1349 /*!40000 ALTER TABLE `pet_spell_cooldown` DISABLE KEYS */;
1350 /*!40000 ALTER TABLE `pet_spell_cooldown` ENABLE KEYS */;
1351 UNLOCK TABLES;
1354 -- Table structure for table `petition`
1357 DROP TABLE IF EXISTS `petition`;
1358 CREATE TABLE `petition` (
1359   `ownerguid` int(10) unsigned NOT NULL,
1360   `petitionguid` int(10) unsigned default '0',
1361   `name` varchar(255) NOT NULL default '',
1362   `type` int(10) unsigned NOT NULL default '0',
1363   PRIMARY KEY  (`ownerguid`,`type`),
1364   UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
1365 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1368 -- Dumping data for table `petition`
1371 LOCK TABLES `petition` WRITE;
1372 /*!40000 ALTER TABLE `petition` DISABLE KEYS */;
1373 /*!40000 ALTER TABLE `petition` ENABLE KEYS */;
1374 UNLOCK TABLES;
1377 -- Table structure for table `petition_sign`
1380 DROP TABLE IF EXISTS `petition_sign`;
1381 CREATE TABLE `petition_sign` (
1382   `ownerguid` int(10) unsigned NOT NULL,
1383   `petitionguid` int(11) unsigned NOT NULL default '0',
1384   `playerguid` int(11) unsigned NOT NULL default '0',
1385   `player_account` int(11) unsigned NOT NULL default '0',
1386   `type` int(10) unsigned NOT NULL default '0',
1387   PRIMARY KEY  (`petitionguid`,`playerguid`)
1388 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System';
1391 -- Dumping data for table `petition_sign`
1394 LOCK TABLES `petition_sign` WRITE;
1395 /*!40000 ALTER TABLE `petition_sign` DISABLE KEYS */;
1396 /*!40000 ALTER TABLE `petition_sign` ENABLE KEYS */;
1397 UNLOCK TABLES;
1398 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1401 -- Table structure for table `saved_variables`
1404 DROP TABLE IF EXISTS `saved_variables`;
1405 CREATE TABLE `saved_variables` (
1406     `NextArenaPointDistributionTime` bigint(40) UNSIGNED NOT NULL DEFAULT '0'
1407 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Variable Saves';
1410 -- Dumping data for table `saved_variables`
1413 LOCK TABLES `saved_variables` WRITE;
1414 /*!40000 ALTER TABLE `saved_variables` DISABLE KEYS */;
1415 /*!40000 ALTER TABLE `saved_variables` ENABLE KEYS */;
1416 UNLOCK TABLES;
1417 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
1420 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
1421 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
1422 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
1423 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1424 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1425 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
1426 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
1428 -- Dump completed on 2008-01-10 11:37:06