聊天室php&mysql(六)

來源:互聯網
上載者:User
關鍵字 聊天室php&mysql(六)
# 相應的 資料庫


# phpMyAdmin MySQL(和PHP搭配之最佳組合)-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
);


# --------------------------------------------------------
#
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.