/*
Navicat MySQL Data Transfer

Source Server         : ccc
Source Server Version : 50527
Source Host           : localhost:3306
Source Database       : ggtalk

Target Server Type    : MYSQL
Target Server Version : 50527
File Encoding         : 65001

Date: 2016-12-13 12:07:50
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for chatmessagerecord
-- ----------------------------
DROP TABLE IF EXISTS `chatmessagerecord`;
CREATE TABLE `chatmessagerecord` (
  `AutoID` bigint(20) NOT NULL AUTO_INCREMENT,
  `SpeakerID` varchar(20) NOT NULL,
  `AudienceID` varchar(20) NOT NULL,
  `IsGroupChat` bit(20) NOT NULL,
  `Content` longblob NOT NULL,
  `OccureTime` datetime NOT NULL,
  PRIMARY KEY (`AutoID`),
  KEY `IX_ChatMessageRecord` (`SpeakerID`,`AudienceID`,`OccureTime`) USING BTREE,
  KEY `IX_ChatMessageRecord_1` (`AudienceID`,`OccureTime`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of chatmessagerecord
-- ----------------------------

-- ----------------------------
-- Table structure for ggconfiguration
-- ----------------------------
DROP TABLE IF EXISTS `ggconfiguration`;
CREATE TABLE `ggconfiguration` (
  `GGKey` varchar(20) NOT NULL,
  `GGValue` varchar(1000) NOT NULL,
  PRIMARY KEY (`GGKey`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of ggconfiguration
-- ----------------------------
INSERT INTO `ggconfiguration` VALUES ('OrgVersion', '1');

-- ----------------------------
-- Table structure for gggroup
-- ----------------------------
DROP TABLE IF EXISTS `gggroup`;
CREATE TABLE `gggroup` (
  `GroupID` varchar(20) NOT NULL,
  `Name` varchar(20) NOT NULL,
  `CreatorID` varchar(20) NOT NULL,
  `Announce` varchar(200) NOT NULL,
  `Members` varchar(4000) NOT NULL,
  `CreateTime` datetime NOT NULL,
  `Version` int(255) NOT NULL,
  PRIMARY KEY (`GroupID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of gggroup
-- ----------------------------


-- ----------------------------
-- Table structure for gguser
-- ----------------------------
DROP TABLE IF EXISTS `gguser`;
CREATE TABLE `gguser` (
  `UserID` varchar(50) NOT NULL,
  `PasswordMD5` varchar(100) NOT NULL,
  `Name` varchar(50) NOT NULL,
  `Friends` varchar(4000) NOT NULL,
  `CommentNames` varchar(4000) NOT NULL,
  `Signature` varchar(100) NOT NULL,
  `HeadImageIndex` int(255) NOT NULL,
  `HeadImageData` mediumblob,
  `Groups` varchar(1000) NOT NULL,
  `CreateTime` datetime NOT NULL,
  `Version` int(255) NOT NULL,
  PRIMARY KEY (`UserID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of gguser
-- ----------------------------
