Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Table structure for table `comments`
- --
- DROP TABLE IF EXISTS `comments`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `comments` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `node_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `state` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'published',
- `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
- `body` text COLLATE utf8_unicode_ci,
- `wiki_body` text COLLATE utf8_unicode_ci,
- `score` int(11) DEFAULT '0',
- `answered_to_self` tinyint(1) DEFAULT '0',
- `materialized_path` varchar(1022) COLLATE utf8_unicode_ci DEFAULT NULL,
- `created_at` datetime DEFAULT NULL,
- `updated_at` datetime DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `index_comments_on_node_id` (`node_id`),
- KEY `index_comments_on_state_and_created_at` (`state`,`created_at`),
- KEY `index_comments_on_state_and_materialized_path_and_created_at` (`state`,`materialized_path`(255),`created_at`),
- KEY `index_comments_on_user_id_and_answered_to_self` (`user_id`,`answered_to_self`),
- KEY `index_comments_on_user_id_and_state_and_created_at` (`user_id`,`state`,`created_at`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1179824 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement