-- MySQL dump 10.16  Distrib 10.2.17-MariaDB, for Linux (x86_64)
--
-- Host: mariadb    Database: bnetdocs_phoenix_dev
-- ------------------------------------------------------
-- Server version	10.1.36-MariaDB

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Dumping routines for database 'bnetdocs_phoenix_dev'
--

--
-- Table structure for table `tags`
--

DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tags` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `alias_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tags`
--
-- ORDER BY:  `id`

LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
INSERT INTO `tags` (`id`, `name`, `description`, `alias_id`) VALUES (0,'bnetdocs','BNETDocs',NULL),(1,'bnetdocs-labs','BNETDocs: Labs',NULL),(2,'bnetdocs-phoenix','BNETDocs: Phoenix',NULL),(3,'bnetdocs-redux','BNETDocs: Redux',NULL),(4,'bnls','BNLS',NULL),(5,'brood-war','StarCraft: Brood War',15),(6,'broodwar','StarCraft: Brood War',15),(7,'defunct','Defunct',NULL),(8,'diablo','Diablo',NULL),(9,'research-needed','Research Needed',NULL),(10,'sc','StarCraft',13),(11,'sc2','StarCraft II',16),(12,'scbw','StarCraft: Brood War',15),(13,'starcraft','StarCraft',NULL),(14,'starcraft-2','StarCraft II',16),(15,'starcraft-broodwar','StarCraft: Brood War',NULL),(16,'starcraft-ii','StarCraft II',NULL),(17,'warcraft','WarCraft',NULL),(18,'warcraft-2','WarCraft II',20),(19,'warcraft-3','WarCraft III',21),(20,'warcraft-ii','WarCraft II',NULL),(21,'warcraft-iii','WarCraft III',NULL),(22,'wc3','WarCraft III',21),(23,'world-of-warcraft','World of WarCraft',NULL),(24,'wc','WarCraft',17),(25,'botnet-protocol','BotNet Protocol',NULL),(26,'diablo-ii','Diablo II',NULL),(27,'diablo-2','Diablo II',26),(28,'diablo-iii','Diablo III',NULL),(29,'diablo-3','Diablo III',28),(30,'d2','Diablo II',26);
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `tag_relations`
--

DROP TABLE IF EXISTS `tag_relations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag_relations` (
  `tag_id` bigint(20) unsigned NOT NULL,
  `object_type` bigint(20) unsigned NOT NULL,
  `object_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`tag_id`,`object_type`,`object_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `tag_relations`
--
-- ORDER BY:  `tag_id`,`object_type`,`object_id`

LOCK TABLES `tag_relations` WRITE;
/*!40000 ALTER TABLE `tag_relations` DISABLE KEYS */;
INSERT INTO `tag_relations` (`tag_id`, `object_type`, `object_id`) VALUES (0,2,1),(2,2,1),(8,3,174),(13,3,174),(15,3,174),(20,3,174),(21,3,174),(26,3,174);
/*!40000 ALTER TABLE `tag_relations` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-10-21 18:34:22
