Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE DATABASE IF NOT EXISTS `cmsfire` /*!40100 DEFAULT CHARACTER SET latin1 */;
- USE `cmsfire`;
- -- MySQL dump 10.13 Distrib 5.5.24, for osx10.5 (i386)
- --
- -- Host: 127.0.0.1 Database: cmsfire
- -- ------------------------------------------------------
- -- Server version 5.5.25
- /*!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 `category`
- --
- DROP TABLE IF EXISTS `category`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `category` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` varchar(255) DEFAULT NULL,
- `private` int(11) NOT NULL DEFAULT '0',
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `comment`
- --
- DROP TABLE IF EXISTS `comment`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `comment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `storyId` int(11) NOT NULL,
- `userId` int(11) NOT NULL,
- `parentCommentId` int(11) DEFAULT '0',
- `comment` varchar(2048) NOT NULL,
- `submitted` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `deleted` int(11) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `storyId` (`storyId`),
- KEY `userId` (`userId`),
- KEY `parentCommentId` (`parentCommentId`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `comment_spam`
- --
- DROP TABLE IF EXISTS `comment_spam`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `comment_spam` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `userId` int(11) DEFAULT NULL,
- `last_comment_post` varchar(255) DEFAULT NULL,
- `comment_spam_offense_count` int(11) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `comment_vote`
- --
- DROP TABLE IF EXISTS `comment_vote`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `comment_vote` (
- `commentId` int(11) NOT NULL,
- `userId` int(11) NOT NULL,
- `score` int(11) DEFAULT '0',
- KEY `commentId` (`commentId`),
- KEY `userId` (`userId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `story`
- --
- DROP TABLE IF EXISTS `story`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `story` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `link` varchar(2048) DEFAULT NULL,
- `domain` varchar(255) NOT NULL,
- `description` varchar(2048) DEFAULT NULL,
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `deleted` int(11) DEFAULT '0',
- `thumbnail` varchar(2048) DEFAULT NULL,
- `userId` int(11) NOT NULL,
- `categoryId` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `userId` (`userId`),
- KEY `categoryId` (`categoryId`)
- ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `story_vote`
- --
- DROP TABLE IF EXISTS `story_vote`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `story_vote` (
- `storyId` int(11) DEFAULT NULL,
- `userId` int(11) DEFAULT NULL,
- `score` int(11) DEFAULT '0',
- KEY `storyId` (`storyId`),
- KEY `userId` (`userId`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Table structure for table `user`
- --
- DROP TABLE IF EXISTS `user`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `email` varchar(255) DEFAULT NULL,
- `password` varchar(855) NOT NULL,
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `banned` int(11) NOT NULL DEFAULT '0',
- `isAdmin` int(11) DEFAULT '0',
- `isMaster` int(11) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
- /*!40101 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 2014-03-28 8:05:27
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement