text: -- phpMyAdmin SQL Dump
  -- version 4.1.14
  -- http://www.phpmyadmin.net
  --
  -- Host: 127.0.0.1
  -- Generation Time: Mar 03, 2019 at 02:33 PM
  -- Server version: 5.6.17
  -- PHP Version: 5.5.12
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!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 */;
  
  --
  -- Database: `symfonytest`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `category`
  --
  
  CREATE TABLE IF NOT EXISTS `category` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `UNIQ_64C19C15E237E06` (`name`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
  
  --
  -- Dumping data for table `category`
  --
  
  INSERT INTO `category` (`id`, `name`) VALUES
  (5, 'Food'),
  (3, 'IT'),
  (4, 'Medical'),
  (6, 'Music'),
  (2, 'NON IT'),
  (7, 'Travel');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `comments`
  --
  
  CREATE TABLE IF NOT EXISTS `comments` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `post_id` int(11) DEFAULT NULL,
    `comment` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `created_at` datetime NOT NULL,
    `updated_at` datetime NOT NULL,
    PRIMARY KEY (`id`),
    KEY `IDX_5F9E962A4B89032C` (`post_id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ;
  
  --
  -- Dumping data for table `comments`
  --
  
  INSERT INTO `comments` (`id`, `post_id`, `comment`, `created_at`, `updated_at`) VALUES
  (4, 8, 'sddddddddddddddddddd', '2019-02-03 18:28:02', '2019-02-03 18:28:02'),
  (5, 8, 'comment2', '2019-02-03 18:28:42', '2019-02-03 18:28:42'),
  (6, 8, 'test', '2019-02-10 08:11:49', '2019-02-10 08:11:49');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `post`
  --
  
  CREATE TABLE IF NOT EXISTS `post` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `category_id` int(11) DEFAULT NULL,
    `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `user_id` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `IDX_5A8A6C8D12469DE2` (`category_id`),
    KEY `IDX_5A8A6C8DA76ED395` (`user_id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=29 ;
  
  --
  -- Dumping data for table `post`
  --
  
  INSERT INTO `post` (`id`, `category_id`, `title`, `description`, `image`, `user_id`) VALUES
  (7, 3, 'post3', 'desc3', '', 7),
  (8, 3, 'post4 edit', 'desc4', '', 7),
  (28, 5, 'food related post edit', 'foodieeeeeeeeeee edit', '', 7);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `post_tags`
  --
  
  CREATE TABLE IF NOT EXISTS `post_tags` (
    `post_id` int(11) NOT NULL,
    `tags_id` int(11) NOT NULL,
    PRIMARY KEY (`post_id`,`tags_id`),
    KEY `IDX_A6E9F32D4B89032C` (`post_id`),
    KEY `IDX_A6E9F32D8D7B4FB4` (`tags_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  
  --
  -- Dumping data for table `post_tags`
  --
  
  INSERT INTO `post_tags` (`post_id`, `tags_id`) VALUES
  (8, 2),
  (8, 3),
  (28, 1),
  (28, 4);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `tags`
  --
  
  CREATE TABLE IF NOT EXISTS `tags` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
  
  --
  -- Dumping data for table `tags`
  --
  
  INSERT INTO `tags` (`id`, `name`) VALUES
  (1, 'Burger'),
  (2, 'Pizza'),
  (3, 'Pasta'),
  (4, 'Noodles'),
  (5, 'Shoes'),
  (6, 'Shirts'),
  (7, 'Jeans'),
  (8, 'Top');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `userinfo`
  --
  
  CREATE TABLE IF NOT EXISTS `userinfo` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `phonenumber` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
  
  --
  -- Dumping data for table `userinfo`
  --
  
  INSERT INTO `userinfo` (`id`, `phonenumber`) VALUES
  (1, 44444);
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE IF NOT EXISTS `users` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `username_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `email` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `email_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `enabled` tinyint(1) NOT NULL,
    `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `last_login` datetime DEFAULT NULL,
    `confirmation_token` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL,
    `password_requested_at` datetime DEFAULT NULL,
    `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
    `first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `userinfo_id` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `UNIQ_1483A5E992FC23A8` (`username_canonical`),
    UNIQUE KEY `UNIQ_1483A5E9A0D96FBF` (`email_canonical`),
    UNIQUE KEY `UNIQ_1483A5E9C05FB297` (`confirmation_token`),
    UNIQUE KEY `UNIQ_1483A5E9C1EA3D46` (`userinfo_id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`id`, `username`, `username_canonical`, `email`, `email_canonical`, `enabled`, `salt`, `password`, `last_login`, `confirmation_token`, `password_requested_at`, `roles`, `first_name`, `last_name`, `address`, `userinfo_id`) VALUES
  (5, 'prashantas', 'prashantas', 'prashantjaiswaasl2003@gmail.com', 'prashantjaiswaasl2003@gmail.com', 0, NULL, '$2y$13$ofsEkamP4.ar0KsdsjzKyuerYM8Y0/J9G2CDEeugYGI3iTqZSkdSy', NULL, 'q0KkX-bUmo8nNQbaPZGRglWecybjDSENawqriB8XDiQ', NULL, 'a:1:{i:0;s:9:"ROLE_USER";}', '', '', '', NULL),
  (7, 'Prashant', 'prashant', 'prashantjaiswal2003@gmail.com', 'prashantjaiswal2003@gmail.com', 1, NULL, '$2y$13$KzdD.sPcts4n3F8iayD05e1cmvoUbRAnr/eIm3B3nK7qk31PiTBhC', '2019-03-02 12:56:53', NULL, NULL, 'a:1:{i:0;s:9:"ROLE_USER";}', 'Prashant', 'Jaiswal', 'Mohali 5 phase', NULL),
  (8, 'asdas', 'asdas', 'prashantsdaajaiswal2003@gmail.com', 'prashantsdaajaiswal2003@gmail.com', 0, NULL, '$2y$13$E5pT5jtnB2yMwQafWfdPb.nXoxmVJH4CrvoYIBdsKyDNSPDxVTAi2', NULL, '0jrFeG4xf993YVc_dPYRf5sqvJTxaBtaroKcCNC4WeU', NULL, 'a:1:{i:0;s:9:"ROLE_USER";}', 'sdfewwe', 'rwe', 'eter', NULL),
  (12, 'admin', 'admin', 'admin@gmail.com', 'admin@gmail.com', 1, NULL, '$2y$13$p3GHZA/FbUAeb8/Q8f.0re74cpblrkGwAUoLJdQ1Imzo5pJqYjEWG', '2019-03-03 14:03:52', NULL, NULL, 'a:2:{i:0;s:9:"ROLE_USER";i:1;s:10:"ROLE_ADMIN";}', 'Admin', '', '', NULL),
  (13, 'sdfef', 'sdfef', 'asdas@fff.gg', 'asdas@fff.gg', 1, NULL, '$2y$13$lDZ7w3CKH18rUtV/ETg.de59hXxein/iYosSLm4jxUuVc9iMbbPJW', '2019-03-03 13:58:41', NULL, NULL, 'a:1:{i:0;s:9:"ROLE_USER";}', 'ddd', 'fff', 'dfdsf', 1);
  
  --
  -- Constraints for dumped tables
  --
  
  --
  -- Constraints for table `comments`
  --
  ALTER TABLE `comments`
    ADD CONSTRAINT `FK_5F9E962A4B89032C` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `post`
  --
  ALTER TABLE `post`
    ADD CONSTRAINT `FK_5A8A6C8D12469DE2` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `FK_5A8A6C8DA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `post_tags`
  --
  ALTER TABLE `post_tags`
    ADD CONSTRAINT `FK_A6E9F32D4B89032C` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE,
    ADD CONSTRAINT `FK_A6E9F32D8D7B4FB4` FOREIGN KEY (`tags_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE;
  
  --
  -- Constraints for table `users`
  --
  ALTER TABLE `users`
    ADD CONSTRAINT `FK_1483A5E9C1EA3D46` FOREIGN KEY (`userinfo_id`) REFERENCES `userinfo` (`id`);
  
  /*!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 */;
  