Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. CREATE DATABASE IF NOT EXISTS `cmsfire` /*!40100 DEFAULT CHARACTER SET latin1 */;
  2. USE `cmsfire`;
  3. -- MySQL dump 10.13 Distrib 5.5.24, for osx10.5 (i386)
  4. --
  5. -- Host: 127.0.0.1 Database: cmsfire
  6. -- ------------------------------------------------------
  7. -- Server version 5.5.25
  8.  
  9. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  10. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  11. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  12. /*!40101 SET NAMES utf8 */;
  13. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  14. /*!40103 SET TIME_ZONE='+00:00' */;
  15. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  16. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  17. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  18. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  19.  
  20. --
  21. -- Table structure for table `category`
  22. --
  23.  
  24. DROP TABLE IF EXISTS `category`;
  25. /*!40101 SET @saved_cs_client = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `category` (
  28. `id` int(11) NOT NULL AUTO_INCREMENT,
  29. `name` varchar(255) NOT NULL,
  30. `description` varchar(255) DEFAULT NULL,
  31. `private` int(11) NOT NULL DEFAULT '0',
  32. `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  33. PRIMARY KEY (`id`)
  34. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  35. /*!40101 SET character_set_client = @saved_cs_client */;
  36.  
  37. --
  38. -- Table structure for table `comment`
  39. --
  40.  
  41. DROP TABLE IF EXISTS `comment`;
  42. /*!40101 SET @saved_cs_client = @@character_set_client */;
  43. /*!40101 SET character_set_client = utf8 */;
  44. CREATE TABLE `comment` (
  45. `id` int(11) NOT NULL AUTO_INCREMENT,
  46. `storyId` int(11) NOT NULL,
  47. `userId` int(11) NOT NULL,
  48. `parentCommentId` int(11) DEFAULT '0',
  49. `comment` varchar(2048) NOT NULL,
  50. `submitted` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  51. `deleted` int(11) DEFAULT '0',
  52. PRIMARY KEY (`id`),
  53. KEY `storyId` (`storyId`),
  54. KEY `userId` (`userId`),
  55. KEY `parentCommentId` (`parentCommentId`)
  56. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
  57. /*!40101 SET character_set_client = @saved_cs_client */;
  58.  
  59. --
  60. -- Table structure for table `comment_spam`
  61. --
  62.  
  63. DROP TABLE IF EXISTS `comment_spam`;
  64. /*!40101 SET @saved_cs_client = @@character_set_client */;
  65. /*!40101 SET character_set_client = utf8 */;
  66. CREATE TABLE `comment_spam` (
  67. `id` int(11) NOT NULL AUTO_INCREMENT,
  68. `userId` int(11) DEFAULT NULL,
  69. `last_comment_post` varchar(255) DEFAULT NULL,
  70. `comment_spam_offense_count` int(11) DEFAULT '0',
  71. PRIMARY KEY (`id`)
  72. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  73. /*!40101 SET character_set_client = @saved_cs_client */;
  74.  
  75. --
  76. -- Table structure for table `comment_vote`
  77. --
  78.  
  79. DROP TABLE IF EXISTS `comment_vote`;
  80. /*!40101 SET @saved_cs_client = @@character_set_client */;
  81. /*!40101 SET character_set_client = utf8 */;
  82. CREATE TABLE `comment_vote` (
  83. `commentId` int(11) NOT NULL,
  84. `userId` int(11) NOT NULL,
  85. `score` int(11) DEFAULT '0',
  86. KEY `commentId` (`commentId`),
  87. KEY `userId` (`userId`)
  88. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  89. /*!40101 SET character_set_client = @saved_cs_client */;
  90.  
  91. --
  92. -- Table structure for table `story`
  93. --
  94.  
  95. DROP TABLE IF EXISTS `story`;
  96. /*!40101 SET @saved_cs_client = @@character_set_client */;
  97. /*!40101 SET character_set_client = utf8 */;
  98. CREATE TABLE `story` (
  99. `id` int(11) NOT NULL AUTO_INCREMENT,
  100. `name` varchar(255) NOT NULL,
  101. `link` varchar(2048) DEFAULT NULL,
  102. `domain` varchar(255) NOT NULL,
  103. `description` varchar(2048) DEFAULT NULL,
  104. `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  105. `deleted` int(11) DEFAULT '0',
  106. `thumbnail` varchar(2048) DEFAULT NULL,
  107. `userId` int(11) NOT NULL,
  108. `categoryId` int(11) NOT NULL,
  109. PRIMARY KEY (`id`),
  110. KEY `userId` (`userId`),
  111. KEY `categoryId` (`categoryId`)
  112. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
  113. /*!40101 SET character_set_client = @saved_cs_client */;
  114.  
  115. --
  116. -- Table structure for table `story_vote`
  117. --
  118.  
  119. DROP TABLE IF EXISTS `story_vote`;
  120. /*!40101 SET @saved_cs_client = @@character_set_client */;
  121. /*!40101 SET character_set_client = utf8 */;
  122. CREATE TABLE `story_vote` (
  123. `storyId` int(11) DEFAULT NULL,
  124. `userId` int(11) DEFAULT NULL,
  125. `score` int(11) DEFAULT '0',
  126. KEY `storyId` (`storyId`),
  127. KEY `userId` (`userId`)
  128. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  129. /*!40101 SET character_set_client = @saved_cs_client */;
  130.  
  131. --
  132. -- Table structure for table `user`
  133. --
  134.  
  135. DROP TABLE IF EXISTS `user`;
  136. /*!40101 SET @saved_cs_client = @@character_set_client */;
  137. /*!40101 SET character_set_client = utf8 */;
  138. CREATE TABLE `user` (
  139. `id` int(11) NOT NULL AUTO_INCREMENT,
  140. `name` varchar(255) NOT NULL,
  141. `email` varchar(255) DEFAULT NULL,
  142. `password` varchar(855) NOT NULL,
  143. `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  144. `banned` int(11) NOT NULL DEFAULT '0',
  145. `isAdmin` int(11) DEFAULT '0',
  146. `isMaster` int(11) DEFAULT '0',
  147. PRIMARY KEY (`id`)
  148. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  149. /*!40101 SET character_set_client = @saved_cs_client */;
  150. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  151.  
  152. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  153. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  154. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  155. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  156. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  157. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  158. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  159.  
  160. -- Dump completed on 2014-03-28 8:05:27
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement