-- MySQL dump 10.11 -- -- Host: localhost Database: qwench -- ------------------------------------------------------ -- Server version 5.0.51b-community-nt /*!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 */; -- -- Table structure for table `answers` -- DROP TABLE IF EXISTS `answers`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `answers` ( `id` int(10) unsigned NOT NULL auto_increment, `questionid` int(10) unsigned NOT NULL, `description` text character set latin1 NOT NULL, `created` timestamp NOT NULL default '0000-00-00 00:00:00', `updated` timestamp NOT NULL default '0000-00-00 00:00:00', `userid` int(10) unsigned NOT NULL, `accepted` int(10) unsigned NOT NULL, `votes` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `answers_votes` -- DROP TABLE IF EXISTS `answers_votes`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `answers_votes` ( `id` int(10) unsigned NOT NULL auto_increment, `answerid` int(10) unsigned NOT NULL, `userid` int(10) unsigned NOT NULL, `vote` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=72 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `comments` -- DROP TABLE IF EXISTS `comments`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `comments` ( `id` int(10) unsigned NOT NULL auto_increment, `type` int(10) unsigned NOT NULL, `comment` text character set latin1 NOT NULL, `votes` int(10) unsigned NOT NULL default '0', `created` timestamp NOT NULL default '0000-00-00 00:00:00', `userid` int(10) unsigned NOT NULL, `typeid` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8; SET character_set_client = @saved_cs_client; -- -- Table structure for table `comments_votes` -- DROP TABLE IF EXISTS `comments_votes`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `comments_votes` ( `id` int(10) unsigned NOT NULL auto_increment, `commentid` int(10) unsigned NOT NULL, `userid` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8; SET character_set_client = @saved_cs_client; -- -- Table structure for table `favorites` -- DROP TABLE IF EXISTS `favorites`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `favorites` ( `id` int(10) unsigned NOT NULL auto_increment, `questionid` int(10) unsigned NOT NULL, `userid` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `questions` -- DROP TABLE IF EXISTS `questions`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `questions` ( `id` int(10) unsigned NOT NULL auto_increment, `title` text character set latin1 NOT NULL, `description` text character set latin1 NOT NULL, `created` timestamp NOT NULL default '0000-00-00 00:00:00', `updated` timestamp NOT NULL default '0000-00-00 00:00:00', `link` text character set latin1 NOT NULL, `userid` int(10) unsigned NOT NULL, `slug` text character set latin1 NOT NULL, `linkcache` longtext character set latin1 NOT NULL, `votes` int(11) NOT NULL default '0', PRIMARY KEY (`id`), FULLTEXT KEY `title` (`title`,`description`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8; SET character_set_client = @saved_cs_client; -- -- Table structure for table `questions_votes` -- DROP TABLE IF EXISTS `questions_votes`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `questions_votes` ( `id` int(10) unsigned NOT NULL auto_increment, `questionid` int(10) unsigned NOT NULL, `userid` int(10) unsigned NOT NULL, `vote` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `tags` -- DROP TABLE IF EXISTS `tags`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `tags` ( `id` int(10) unsigned NOT NULL auto_increment, `tag` varchar(255) character set latin1 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `tags_questions` -- DROP TABLE IF EXISTS `tags_questions`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `tags_questions` ( `id` int(10) unsigned NOT NULL auto_increment, `tagid` int(10) unsigned NOT NULL, `questionid` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=93 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL auto_increment, `username` varchar(255) character set latin1 NOT NULL, `password` varchar(255) character set latin1 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; SET character_set_client = @saved_cs_client; /*!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 2009-09-11 7:03:59