forked from 82027871/blogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myblog.sql
88 lines (76 loc) · 2.51 KB
/
myblog.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50527
Source Host : 127.0.0.1
Source Database : myblog
Target Server Version : 50527
File Encoding : utf-8
Date: 01/01/2013 16:49:22 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `admin`
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(10) NOT NULL,
`username` varchar(200) NOT NULL,
`password` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `admin`
-- ----------------------------
BEGIN;
INSERT INTO `admin` VALUES ('1', '82027871', '22ccd708c023261cbcce4b50e7ececa9');
COMMIT;
-- ----------------------------
-- Table structure for `blogs`
-- ----------------------------
DROP TABLE IF EXISTS `blogs`;
CREATE TABLE `blogs` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`title` text NOT NULL,
`content` text NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `blogs`
-- ----------------------------
BEGIN;
INSERT INTO `blogs` VALUES ('1', '我的åšå®¢11', '我的åšå®¢1å大打算1', '2012-12-31 18:17:18'), ('2', '我的åšå®¢2', '大è¨æ–¯å¾…会', '2012-12-31 18:20:43');
COMMIT;
-- ----------------------------
-- Table structure for `comment`
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` int(10) NOT NULL,
`pid` int(10) NOT NULL,
`content` text NOT NULL,
`uid` int(11) NOT NULL,
`time` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`username` varchar(200) NOT NULL,
`password` varchar(200) NOT NULL,
`created` datetime NOT NULL,
`last_logintime` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of `user`
-- ----------------------------
BEGIN;
INSERT INTO `user` VALUES ('1', '82027871', '22ccd708c023261cbcce4b50e7ececa9', '2012-12-28 22:21:39', '2012-12-28 22:21:39'), ('2', '', '', '0000-00-00 00:00:00', '2012-12-30 22:53:04');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;