Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a db strutor sql file

  • Loading branch information...
commit def554550f537f598e41a90af8bcb433d865e07d 1 parent bf1ade4
David Xie authored
Showing with 125 additions and 0 deletions.
  1. +125 −0 docs/davidblog_structor.sql
125 docs/davidblog_structor.sql
View
@@ -0,0 +1,125 @@
+-- phpMyAdmin SQL Dump
+-- version 3.2.5
+-- http://www.phpmyadmin.net
+--
+-- 主机: localhost
+-- 生成日期: 2010 年 05 月 20 日 07:59
+-- 服务器版本: 5.1.42
+-- PHP 版本: 5.2.13
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+
+/*!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 */;
+
+--
+-- 数据库: `davidblog`
+--
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `admins`
+--
+
+CREATE TABLE IF NOT EXISTS `admins` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `username` varchar(45) NOT NULL,
+ `password` varchar(45) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `comments`
+--
+
+CREATE TABLE IF NOT EXISTS `comments` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `entryId` int(11) NOT NULL,
+ `username` varchar(50) NOT NULL,
+ `email` varchar(75) NOT NULL,
+ `url` varchar(255) NOT NULL,
+ `comment` text NOT NULL,
+ `createdTime` datetime NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `entryId` (`entryId`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `entries`
+--
+
+CREATE TABLE IF NOT EXISTS `entries` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `title` varchar(255) NOT NULL,
+ `content` longtext NOT NULL,
+ `categoryId` int(11) NOT NULL,
+ `createdTime` datetime NOT NULL,
+ `modifiedTime` datetime NOT NULL,
+ `viewNum` int(11) NOT NULL,
+ `commentNum` int(11) NOT NULL,
+ `slug` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=78 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `entry_tag`
+--
+
+CREATE TABLE IF NOT EXISTS `entry_tag` (
+ `entryId` int(11) NOT NULL,
+ `tagId` int(11) NOT NULL,
+ KEY `entryId` (`entryId`,`tagId`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `links`
+--
+
+CREATE TABLE IF NOT EXISTS `links` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(70) NOT NULL,
+ `url` varchar(255) NOT NULL,
+ `createdTime` datetime NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `pages`
+--
+
+CREATE TABLE IF NOT EXISTS `pages` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(255) NOT NULL,
+ `slug` varchar(255) NOT NULL,
+ `content` text NOT NULL,
+ `created_time` datetime NOT NULL,
+ `modified_time` datetime NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `tags`
+--
+
+CREATE TABLE IF NOT EXISTS `tags` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(255) NOT NULL,
+ `entryNum` int(11) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;
Please sign in to comment.
Something went wrong with that request. Please try again.