Chatting room php & mysql (6)

Source: Internet
Author: User
# Corresponding database # phpMyAdminMySQL (the best combination with PHP)-Dump # phpwizard. netphpMyAdmin # HOST: localhost: 3306 database: study28 # metadata # corresponding database


# PhpMyAdmin MySQL (the best combination with PHP)-Dump
# Http://phpwizard.net/phpMyAdmin/
#
# HOST: localhost: 3306 database: study28

#--------------------------------------------------------
#
# Data table structure '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
);


#--------------------------------------------------------
#
# Data table structure '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
);


#--------------------------------------------------------
#
# Data table structure '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
);


#--------------------------------------------------------
#
# Data table structure '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,
Holobby 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)
);


#--------------------------------------------------------
#
# Data table structure '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
);


#--------------------------------------------------------
#

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.