/*
SQLyog Community Edition- MySQL GUI v8.03 
MySQL - 5.6.26 : Database - d-chat
*********************************************************************
*/





CREATE DATABASE /*!32312 IF NOT EXISTS*/`DChat` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;

USE `DChat`;

/*Table structure for table `tb_friend` */


CREATE TABLE `tb_friend` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `friend_id` int(11) NOT NULL,
  `status` int(2) NOT NULL DEFAULT '0' COMMENT 'if 0:block friend 1: friend',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

/*Data for the table `tb_user` */

