欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

BBS(php & mysql)完整版(八)

程序员文章站 2022-04-20 09:53:00
//完毕 wish you sucess!! # phpmyadmin mysql-dump # http://phpwizard.net/phpmyadmin/ # #...
//完毕 wish you sucess!!

# phpmyadmin mysql-dump
# http://phpwizard.net/phpmyadmin/
#
# 主机: localhost:3306 数据库 : database
# --------------------------------------------------------
#
# 数据表的结构 'bbs_html'
#

create table bbs_html (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   date1 varchar(20) not null,
   title varchar(40) not null,
   content text not null,
   r1 int(15) default '0' not null,
   r2 int(15) default '0' not null,
   number tinyint(4) default '0' not null,
   row tinyint(5) default '0' not null,
   r3 int(15) default '0' not null,
   r4 int(15) default '0' not null,
   r5 int(15) default '0' not null,
   unique id (id)
);


# --------------------------------------------------------
#
# 数据表的结构 'bbs_js'
#

create table bbs_js (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   date1 varchar(20) not null,
   title varchar(40) not null,
   content text not null,
   r1 int(15) default '0' not null,
   r2 int(15) default '0' not null,
   number tinyint(4) default '0' not null,
   row tinyint(5) default '0' not null,
   r3 int(15) default '0' not null,
   r4 int(15) default '0' not null,
   r5 int(15) default '0' not null,
   unique id (id)
);


# --------------------------------------------------------
#
# 数据表的结构 'bbs_mysql'
#

create table bbs_mysql (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   date1 varchar(20) not null,
   title varchar(40) not null,
   content text not null,
   r1 int(15) default '0' not null,
   r2 int(15) default '0' not null,
   number tinyint(4) default '0' not null,
   row tinyint(5) default '0' not null,
   r3 int(15) default '0' not null,
   r4 int(15) default '0' not null,
   r5 int(15) default '0' not null,
   unique id (id)
);


# --------------------------------------------------------
#
# 数据表的结构 'bbs_php'
#

create table bbs_php (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   date1 varchar(20) not null,
   title varchar(40) not null,
   content text not null,
   r1 int(15) default '0' not null,
   r2 int(15) default '0' not null,
   number tinyint(4) default '0' not null,
   row tinyint(5) default '0' not null,
   r3 int(15) default '0' not null,
   r4 int(15) default '0' not null,
   r5 int(15) default '0' not null,
   unique id (id)
);


# --------------------------------------------------------
#
# 数据表的结构 'bbs_re'
#

create table bbs_re (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   title varchar(40) not null,
   content text not null,
   date1 varchar(30) not null
);


# --------------------------------------------------------
#
# 数据表的结构 'user'
#

create table user (
   id int(15) default '0' not null,
   userid varchar(20) not null,
   name varchar(20) not null,
   passwd varchar(20) not null,
   sex varchar(5) not null,
   age char(3) not null,
   question varchar(20) not null,
   answer varchar(20) not null,
   birthday varchar(20) not null,
   oicq varchar(10) not null,
   height varchar(4) not null,
   myphoto char(3) not null,
   email varchar(30) not null,
   homepage varchar(40) not null,
   hobby varchar(40) not null,
   number varchar(10) not null,
   room varchar(20) not null,
   department varchar(20) not null,
   phone varchar(20) not null,
   ready1 varchar(10) not null,
   ready2 varchar(10) not null,
   ready3 varchar(10) not null,
   unique userid (userid),
   key id (id, userid)
);


# --------------------------------------------------------
#
# 数据表的结构 'user_stus'
#

create table user_stus (
   id int(15) default '0' not null,
   status varchar(6) not null,
   userid varchar(15) default '0' not null,
   ip varchar(20) not null,
   r2 char(2) not null,
   r3 char(2) not null,
   r4 char(2) not null,
   primary key (userid)
);