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

聊天室php&mysql(六)

程序员文章站 2022-03-31 12:10:39
#  相应的  数据库 # phpmyadmin mysql-dump # http://phpwizard.net/phpmyad...
#  相应的  数据库


# phpmyadmin mysql-dump
# http://phpwizard.net/phpmyadmin/
#
# 主机: localhost:3306 数据库 : study28

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

create table chat_user (
   userid varchar(20) not null,
   passwd varchar(20) not null,
   last_time int(10) default '0' not null,
   id varchar(20) not null,
   sex varchar(5) not null
);


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

create table chat_user_list (
   userid int(10) default '0' not null,
   passwd varchar(20) not null,
   last_time int(10) default '0' not null,
   id varchar(20) not null,
   sex varchar(5) not null
);


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

create table private_chat (
   sender varchar(20) not null,
   object varchar(20) not null,
   message varchar(255) not null,
   r1 tinyint(4) default '0' not null,
   r2 tinyint(4) default '0' not null
);


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

create table user (
   id varchar(15) 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(20) not null,
   homepage varchar(20) 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,
   key id (id, userid)
);


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

create table user_message (
   userid varchar(20) not null,
   object varchar(15) not null,
   message varchar(255) not null,
   status int(2) default '0' not null,
   action1 varchar(20) not null,
   color varchar(10) default '0' not null,
   row int(10) default '0' not null,
   time1 varchar(10) not null,
   id int(10) default '0' not null
);


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

create table user_stus (
   id varchar(20) not null,
   status varchar(6) not null,
   date1 varchar(30) not null,
   value int(5) default '0' not null,
   photo int(2) default '0' not null,
   number int(4) 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 (id),
   key id (id)
);