--- MySQL dump 10.13  Distrib 5.5.29, for osx10.6 (i386)
---
--- Host: localhost    Database: blog_test
--- ------------------------------------------------------
--- Server version	5.5.29
 
-/*!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 */;
+CREATE DATABASE IF NOT EXISTS blog_test;
+USE blog_test;
 
 --
 -- Table structure for table `post_tags`
 --
 
-CREATE DATABASE IF NOT EXISTS blog_test;
+DROP TABLE IF EXISTS `post_tags`;
 
-USE blog_test;
-
-DROP TABLE IF EXISTS `post_tags`;
-/*!40101 SET @saved_cs_client     = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
 CREATE TABLE `post_tags` (
   `idPost` int(11) NOT NULL,
-  `idTag` int(11) NOT NULL,
-  PRIMARY KEY (`idPost`,`idTag`)
+  `tag` varchar(128) NOT NULL,
+  PRIMARY KEY (`idPost`,`tag`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `post_tags`
---
 
 LOCK TABLES `post_tags` WRITE;
-/*!40000 ALTER TABLE `post_tags` DISABLE KEYS */;
-/*!40000 ALTER TABLE `post_tags` ENABLE KEYS */;
+
 UNLOCK TABLES;
 
 --

--

DROP TABLE IF EXISTS `posts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `posts` (
  `idPost` int(11) NOT NULL AUTO_INCREMENT,
  `slug` varchar(255) NOT NULL,

  KEY `slug` (`slug`),
  KEY `users` (`idUser`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `posts`
--

LOCK TABLES `posts` WRITE;

INSERT INTO `posts` VALUES 
(11,'slug-one','Title One','Body of the post <strong>one</strong>',1,'2014-08-11 21:12:35',0),
