Skip to content

Commit

Permalink
Merge pull request #2 from tidezyc/master
Browse files Browse the repository at this point in the history
sql
  • Loading branch information
maybeTomorrow committed Apr 21, 2013
2 parents f327e5d + 9a0ae3b commit 242fec8
Showing 1 changed file with 379 additions and 0 deletions.
379 changes: 379 additions & 0 deletions syj.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
CREATE DATABASE IF NOT EXISTS `siyanjing` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `siyanjing`;
-- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86)
--
-- Host: localhost Database: siyanjing
-- ------------------------------------------------------
-- Server version 5.5.25a

/*!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 `activity`
--

DROP TABLE IF EXISTS `activity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(45) NOT NULL,
`content` varchar(45) DEFAULT NULL,
`author` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `auth_idx` (`author`),
CONSTRAINT `auth` FOREIGN KEY (`author`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `activity`
--

LOCK TABLES `activity` WRITE;
/*!40000 ALTER TABLE `activity` DISABLE KEYS */;
/*!40000 ALTER TABLE `activity` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `activity_record`
--

DROP TABLE IF EXISTS `activity_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_record` (
`activity_id` bigint(20) NOT NULL,
`views` int(11) DEFAULT '0',
`comments` int(11) DEFAULT '0',
PRIMARY KEY (`activity_id`),
UNIQUE KEY `activity_id_UNIQUE` (`activity_id`),
CONSTRAINT `avtivity_id` FOREIGN KEY (`activity_id`) REFERENCES `activity` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `activity_record`
--

LOCK TABLES `activity_record` WRITE;
/*!40000 ALTER TABLE `activity_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `activity_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `blog`
--

DROP TABLE IF EXISTS `blog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blog` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(45) NOT NULL,
`content` varchar(255) NOT NULL,
`author` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `author_idx` (`author`),
CONSTRAINT `author` FOREIGN KEY (`author`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `blog`
--

LOCK TABLES `blog` WRITE;
/*!40000 ALTER TABLE `blog` DISABLE KEYS */;
/*!40000 ALTER TABLE `blog` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `blog_record`
--

DROP TABLE IF EXISTS `blog_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blog_record` (
`blog_id` bigint(20) NOT NULL,
`views` int(11) DEFAULT '0',
`comments` int(11) DEFAULT '0',
PRIMARY KEY (`blog_id`),
UNIQUE KEY `blog_id_UNIQUE` (`blog_id`),
CONSTRAINT `blog_id` FOREIGN KEY (`blog_id`) REFERENCES `blog` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `blog_record`
--

LOCK TABLES `blog_record` WRITE;
/*!40000 ALTER TABLE `blog_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `blog_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- 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` bigint(20) NOT NULL AUTO_INCREMENT,
`target` varchar(45) NOT NULL,
`comment_uname` varchar(45) DEFAULT NULL,
`comment_unickname` varchar(45) DEFAULT NULL,
`at_uname` varchar(45) DEFAULT NULL,
`at_unickname` varchar(45) DEFAULT NULL,
`comment` varchar(255) NOT NULL,
`comment_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
KEY `target` (`target`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `comment`
--

LOCK TABLES `comment` WRITE;
/*!40000 ALTER TABLE `comment` DISABLE KEYS */;
INSERT INTO `comment` VALUES (1,'job_4','test','test',NULL,NULL,'zgeshfjdhfdsfhdsdsfdsfds ','2013-04-20 07:17:29'),(2,'job_4','test','测试中文',NULL,NULL,'zgeshfjdhfdsfhdsdsfdsfds ','2013-04-20 12:18:09'),(3,'job_4','test','test',NULL,NULL,'zgeshfjdhfdsfhdsdsfdsfds ','2013-04-20 07:29:14');
/*!40000 ALTER TABLE `comment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job`
--

DROP TABLE IF EXISTS `job`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(45) NOT NULL,
`content` varchar(255) NOT NULL,
`author` bigint(20) NOT NULL,
`type` int(11) DEFAULT NULL,
`salary` varchar(45) DEFAULT NULL,
`createtime` datetime NOT NULL,
`city` varchar(45) DEFAULT NULL,
`company` varchar(45) DEFAULT NULL,
`name` varchar(45) DEFAULT NULL,
`recruiting_numbers` int(11) DEFAULT NULL,
`email` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`),
KEY `author_wglnfkp_idx` (`author`),
CONSTRAINT `author_wglnfkp` FOREIGN KEY (`author`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job`
--

LOCK TABLES `job` WRITE;
/*!40000 ALTER TABLE `job` DISABLE KEYS */;
INSERT INTO `job` VALUES (4,'有钱','1、有钱\r\n2、有钱',1,4,'2500199999','2013-04-12 18:01:19','有钱','有钱','有钱',1,'有钱');
/*!40000 ALTER TABLE `job` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `job_record`
--

DROP TABLE IF EXISTS `job_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job_record` (
`id` bigint(20) NOT NULL,
`views` int(11) DEFAULT '0',
`comments` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `job_id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `job_record`
--

LOCK TABLES `job_record` WRITE;
/*!40000 ALTER TABLE `job_record` DISABLE KEYS */;
INSERT INTO `job_record` VALUES (1,0,0);
/*!40000 ALTER TABLE `job_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `news`
--

DROP TABLE IF EXISTS `news`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(45) NOT NULL,
`content` varchar(255) NOT NULL,
`author` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `author_idx` (`author`),
CONSTRAINT `author_id` FOREIGN KEY (`author`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `news`
--

LOCK TABLES `news` WRITE;
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `news_record`
--

DROP TABLE IF EXISTS `news_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news_record` (
`news_id` bigint(20) NOT NULL,
`views` int(11) DEFAULT '0',
`comments` int(11) DEFAULT '0',
PRIMARY KEY (`news_id`),
UNIQUE KEY `news_id_UNIQUE` (`news_id`),
CONSTRAINT `news_id` FOREIGN KEY (`news_id`) REFERENCES `news` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `news_record`
--

LOCK TABLES `news_record` WRITE;
/*!40000 ALTER TABLE `news_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `news_record` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_info`
--

DROP TABLE IF EXISTS `user_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uid` bigint(20) NOT NULL,
`gender` varchar(20) NOT NULL,
`birth` varchar(45) DEFAULT NULL,
`location` varchar(255) DEFAULT NULL,
`mobile` varchar(45) DEFAULT NULL,
`email` varchar(45) DEFAULT NULL,
`signature` varchar(255) DEFAULT NULL,
`blog` varchar(100) DEFAULT NULL,
`wunit` varchar(255) DEFAULT NULL,
`wpost` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_info`
--

LOCK TABLES `user_info` WRITE;
/*!40000 ALTER TABLE `user_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_info` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `user_role`
--

DROP TABLE IF EXISTS `user_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`role` varchar(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `USER_ID` (`user_id`),
KEY `USERID_idx` (`user_id`),
CONSTRAINT `USERID` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `user_role`
--

LOCK TABLES `user_role` WRITE;
/*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
INSERT INTO `user_role` VALUES (1,2,'ROLE_USER');
/*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`username` varchar(15) NOT NULL,
`password` varchar(60) NOT NULL,
`name` varchar(45) NOT NULL,
`email` varchar(25) NOT NULL,
`avatar` varchar(45) DEFAULT NULL,
`verify` varchar(255) DEFAULT NULL,
`verified` bit(1) NOT NULL,
`lastlogin` datetime DEFAULT NULL,
`enabled` bit(1) NOT NULL DEFAULT b'1',
PRIMARY KEY (`id`),
UNIQUE KEY `index_uname` (`username`),
UNIQUE KEY `index_email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'2013-04-12 01:42:26','123','123','234','234',NULL,NULL,'',NULL,''),(2,'2013-04-17 14:13:17','test','43bac31e54aeb1990bde3aefece94a1dcae7ceaf','test','[email protected]',NULL,NULL,'','2013-04-20 23:58:19',''),(3,'2013-04-20 04:48:05','zyc','91cfddcd3362c3f22bd95b9f33f826051d8e488f','','[email protected]',NULL,'oFF32p2aUVbnjoV6evYfuWMucxqCO1Ddvp9','\0',NULL,''),(5,'2013-04-20 04:58:40','zyc1','6800120beaf782406be23d977e9f2928d172de37','','[email protected]',NULL,'YtwxGH2FIN39GnFuMXct6nP3hV5VJXV5bbI','\0',NULL,'');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!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 2013-04-21 0:05:29

0 comments on commit 242fec8

Please sign in to comment.