Core/Garrisons: Basics for garrisons

This commit is contained in:
Shauren
2015-05-08 00:03:15 +02:00
parent 0972552e84
commit 5b725db033
39 changed files with 2100 additions and 100 deletions

View File

@@ -0,0 +1,36 @@
--
-- Table structure for table `character_garrison`
--
DROP TABLE IF EXISTS `character_garrison`;
CREATE TABLE `character_garrison` (
`guid` bigint(20) unsigned NOT NULL,
`siteLevelId` int(10) unsigned NOT NULL DEFAULT '0',
`followerActivationsRemainingToday` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `character_garrison_blueprints`
--
DROP TABLE IF EXISTS `character_garrison_blueprints`;
CREATE TABLE `character_garrison_blueprints` (
`guid` bigint(20) unsigned NOT NULL,
`buildingId` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`,`buildingId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `character_garrison_buildings`
--
DROP TABLE IF EXISTS `character_garrison_buildings`;
CREATE TABLE `character_garrison_buildings` (
`guid` bigint(20) unsigned NOT NULL,
`plotInstanceId` int(10) unsigned NOT NULL DEFAULT '0',
`buildingId` int(10) unsigned NOT NULL DEFAULT '0',
`timeBuilt` bigint(20) unsigned NOT NULL,
`active` tinyint(3) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`,`plotInstanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;