Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. --
  2. -- Table structure for table `comments`
  3. --
  4.  
  5. DROP TABLE IF EXISTS `comments`;
  6. /*!40101 SET @saved_cs_client = @@character_set_client */;
  7. /*!40101 SET character_set_client = utf8 */;
  8. CREATE TABLE `comments` (
  9. `id` int(11) NOT NULL AUTO_INCREMENT,
  10. `node_id` int(11) DEFAULT NULL,
  11. `user_id` int(11) DEFAULT NULL,
  12. `state` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'published',
  13. `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  14. `body` text COLLATE utf8_unicode_ci,
  15. `wiki_body` text COLLATE utf8_unicode_ci,
  16. `score` int(11) DEFAULT '0',
  17. `answered_to_self` tinyint(1) DEFAULT '0',
  18. `materialized_path` varchar(1022) COLLATE utf8_unicode_ci DEFAULT NULL,
  19. `created_at` datetime DEFAULT NULL,
  20. `updated_at` datetime DEFAULT NULL,
  21. PRIMARY KEY (`id`),
  22. KEY `index_comments_on_node_id` (`node_id`),
  23. KEY `index_comments_on_state_and_created_at` (`state`,`created_at`),
  24. KEY `index_comments_on_state_and_materialized_path_and_created_at` (`state`,`materialized_path`(255),`created_at`),
  25. KEY `index_comments_on_user_id_and_answered_to_self` (`user_id`,`answered_to_self`),
  26. KEY `index_comments_on_user_id_and_state_and_created_at` (`user_id`,`state`,`created_at`)
  27. ) ENGINE=InnoDB AUTO_INCREMENT=1179824 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  28. /*!40101 SET character_set_client = @saved_cs_client */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement