Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add a db strutor sql file

  • Loading branch information...
commit def554550f537f598e41a90af8bcb433d865e07d 1 parent bf1ade4
David Xie authored

Showing 1 changed file with 125 additions and 0 deletions. Show diff stats Hide diff stats

  1. +125 0 docs/davidblog_structor.sql
125 docs/davidblog_structor.sql
... ... @@ -0,0 +1,125 @@
  1 +-- phpMyAdmin SQL Dump
  2 +-- version 3.2.5
  3 +-- http://www.phpmyadmin.net
  4 +--
  5 +-- 主机: localhost
  6 +-- 生成日期: 2010 年 05 月 20 日 07:59
  7 +-- 服务器版本: 5.1.42
  8 +-- PHP 版本: 5.2.13
  9 +
  10 +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
  11 +
  12 +
  13 +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14 +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15 +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16 +/*!40101 SET NAMES utf8 */;
  17 +
  18 +--
  19 +-- 数据库: `davidblog`
  20 +--
  21 +
  22 +-- --------------------------------------------------------
  23 +
  24 +--
  25 +-- 表的结构 `admins`
  26 +--
  27 +
  28 +CREATE TABLE IF NOT EXISTS `admins` (
  29 + `id` int(11) NOT NULL AUTO_INCREMENT,
  30 + `username` varchar(45) NOT NULL,
  31 + `password` varchar(45) NOT NULL,
  32 + PRIMARY KEY (`id`)
  33 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  34 +
  35 +-- --------------------------------------------------------
  36 +
  37 +--
  38 +-- 表的结构 `comments`
  39 +--
  40 +
  41 +CREATE TABLE IF NOT EXISTS `comments` (
  42 + `id` int(11) NOT NULL AUTO_INCREMENT,
  43 + `entryId` int(11) NOT NULL,
  44 + `username` varchar(50) NOT NULL,
  45 + `email` varchar(75) NOT NULL,
  46 + `url` varchar(255) NOT NULL,
  47 + `comment` text NOT NULL,
  48 + `createdTime` datetime NOT NULL,
  49 + PRIMARY KEY (`id`),
  50 + KEY `entryId` (`entryId`)
  51 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
  52 +
  53 +-- --------------------------------------------------------
  54 +
  55 +--
  56 +-- 表的结构 `entries`
  57 +--
  58 +
  59 +CREATE TABLE IF NOT EXISTS `entries` (
  60 + `id` int(11) NOT NULL AUTO_INCREMENT,
  61 + `title` varchar(255) NOT NULL,
  62 + `content` longtext NOT NULL,
  63 + `categoryId` int(11) NOT NULL,
  64 + `createdTime` datetime NOT NULL,
  65 + `modifiedTime` datetime NOT NULL,
  66 + `viewNum` int(11) NOT NULL,
  67 + `commentNum` int(11) NOT NULL,
  68 + `slug` varchar(255) NOT NULL,
  69 + PRIMARY KEY (`id`)
  70 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=78 ;
  71 +
  72 +-- --------------------------------------------------------
  73 +
  74 +--
  75 +-- 表的结构 `entry_tag`
  76 +--
  77 +
  78 +CREATE TABLE IF NOT EXISTS `entry_tag` (
  79 + `entryId` int(11) NOT NULL,
  80 + `tagId` int(11) NOT NULL,
  81 + KEY `entryId` (`entryId`,`tagId`)
  82 +) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  83 +
  84 +-- --------------------------------------------------------
  85 +
  86 +--
  87 +-- 表的结构 `links`
  88 +--
  89 +
  90 +CREATE TABLE IF NOT EXISTS `links` (
  91 + `id` int(11) NOT NULL AUTO_INCREMENT,
  92 + `name` varchar(70) NOT NULL,
  93 + `url` varchar(255) NOT NULL,
  94 + `createdTime` datetime NOT NULL,
  95 + PRIMARY KEY (`id`)
  96 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
  97 +
  98 +-- --------------------------------------------------------
  99 +
  100 +--
  101 +-- 表的结构 `pages`
  102 +--
  103 +
  104 +CREATE TABLE IF NOT EXISTS `pages` (
  105 + `id` int(11) NOT NULL AUTO_INCREMENT,
  106 + `name` varchar(255) NOT NULL,
  107 + `slug` varchar(255) NOT NULL,
  108 + `content` text NOT NULL,
  109 + `created_time` datetime NOT NULL,
  110 + `modified_time` datetime NOT NULL,
  111 + PRIMARY KEY (`id`)
  112 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  113 +
  114 +-- --------------------------------------------------------
  115 +
  116 +--
  117 +-- 表的结构 `tags`
  118 +--
  119 +
  120 +CREATE TABLE IF NOT EXISTS `tags` (
  121 + `id` int(11) NOT NULL AUTO_INCREMENT,
  122 + `name` varchar(255) NOT NULL,
  123 + `entryNum` int(11) NOT NULL DEFAULT '0',
  124 + PRIMARY KEY (`id`)
  125 +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;

0 comments on commit def5545

Please sign in to comment.
Something went wrong with that request. Please try again.