chess.sql 4.4 KB
Newer Older
haililiu's avatar
haililiu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50717
Source Host           : localhost:3306
Source Database       : chess

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

Date: 2022-11-02 10:18:03
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for account
-- ----------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `UserName` varchar(200) DEFAULT NULL,
  `Password` varchar(50) DEFAULT NULL,
  `NickName` varchar(200) DEFAULT NULL,
  `Face` varchar(500) DEFAULT NULL,
  `OpenID` varchar(500) DEFAULT NULL,
  `PushClientID` varchar(200) DEFAULT NULL,
  `CreateTime` datetime DEFAULT NULL,
  `LastLoginTime` datetime DEFAULT NULL,
  `ReferrerID` int(11) DEFAULT NULL,
  `Diamond` int(11) DEFAULT NULL,
  `Gold` int(11) DEFAULT NULL,
  `Score` int(11) DEFAULT NULL,
  `SystemName` varchar(20) DEFAULT NULL,
  `PlatformName` varchar(50) DEFAULT NULL,
  `Longitude` varchar(22) DEFAULT NULL,
  `Latitude` varchar(22) DEFAULT NULL,
  `Address` varchar(400) DEFAULT NULL,
  `WinTimes` int(11) DEFAULT NULL,
  `BattleIP` varchar(200) DEFAULT NULL,
  `BattlePort` varchar(100) DEFAULT NULL,
  `BattleCode` varchar(100) DEFAULT NULL,
  `Vip` int(11) DEFAULT NULL,
  `LastGetGoldTime` datetime DEFAULT NULL,
  `IsAI` bit(1) DEFAULT NULL,
  `TaskProcess` int(11) DEFAULT NULL,
  `FirstSignTime` datetime DEFAULT NULL,
  `VipBeginTime` datetime DEFAULT NULL,
  `SignRecord` text,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=1216 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for battlerecord
-- ----------------------------
DROP TABLE IF EXISTS `battlerecord`;
CREATE TABLE `battlerecord` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `BattleCode` varchar(50) DEFAULT NULL,
  `GameNum` int(11) DEFAULT NULL,
  `BeginTime` datetime DEFAULT NULL,
  `EndTime` datetime DEFAULT NULL,
  `BattleContent` longtext,
  `Sider1ID` int(11) DEFAULT NULL,
  `Sider1Score` int(11) DEFAULT NULL,
  `Sider2ID` int(11) DEFAULT NULL,
  `Sider2Score` int(11) DEFAULT NULL,
  `Sider3ID` int(11) DEFAULT NULL,
  `Sider3Score` int(11) DEFAULT NULL,
  `Sider4ID` int(11) DEFAULT NULL,
  `Sider4Score` int(11) DEFAULT NULL,
  `IsFinished` bit(1) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for battleservers
-- ----------------------------
DROP TABLE IF EXISTS `battleservers`;
CREATE TABLE `battleservers` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Name` varchar(200) DEFAULT NULL,
  `IP` varchar(200) DEFAULT NULL,
  `Port` int(11) DEFAULT NULL,
  `State` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for buyrecord
-- ----------------------------
DROP TABLE IF EXISTS `buyrecord`;
CREATE TABLE `buyrecord` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `BuyerID` int(11) DEFAULT NULL,
  `GoodsID` int(11) DEFAULT NULL,
  `Num` int(11) DEFAULT NULL,
  `CostGold` int(11) DEFAULT NULL,
  `CostDiamond` int(11) DEFAULT NULL,
  `NowGold` int(11) DEFAULT NULL,
  `NowDiamond` int(11) DEFAULT NULL,
  `BuyTime` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for friends
-- ----------------------------
DROP TABLE IF EXISTS `friends`;
CREATE TABLE `friends` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `AccountID` int(11) DEFAULT NULL,
  `FriendID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for loginrecord
-- ----------------------------
DROP TABLE IF EXISTS `loginrecord`;
CREATE TABLE `loginrecord` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `AccountID` int(11) DEFAULT NULL,
  `LoginTime` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=694 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Table structure for store
-- ----------------------------
DROP TABLE IF EXISTS `store`;
CREATE TABLE `store` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `Type` varchar(50) DEFAULT NULL,
  `Icon` varchar(200) DEFAULT NULL,
  `Name` varchar(200) DEFAULT NULL,
  `Description` varchar(2000) DEFAULT NULL,
  `Price` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;