[gamedb]
This commit is contained in:
parent
4fe0431846
commit
c3344d271c
128
sql/gamedb.sql
128
sql/gamedb.sql
@ -113,7 +113,13 @@ CREATE TABLE `user` (
|
||||
`create_user` int(11) NOT NULL DEFAULT '0' COMMENT '是否创角',
|
||||
`sex` int(11) NOT NULL DEFAULT '0' COMMENT '性别',
|
||||
`sumlot_coin` double NOT NULL DEFAULT '0' COMMENT '累计抽奖剩余金额',
|
||||
|
||||
`lv` int(11) NOT NULL DEFAULT '0' COMMENT '玩家等级',
|
||||
`lv_exp` int(11) NOT NULL DEFAULT '0' COMMENT '玩家当前等级的经验',
|
||||
`money_of_week` int(11) NOT NULL DEFAULT '0' COMMENT '玩家本周通过战斗获得的金币数量',
|
||||
`team_name` tinyblob COMMENT '玩家战队昵称',
|
||||
`hi_id` int(11) NOT NULL DEFAULT '0' COMMENT '头像ID',
|
||||
`hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '当前使用的英雄ID',
|
||||
`season_point` int(11) NOT NULL DEFAULT '0' COMMENT '赛季积分',
|
||||
`max_integral` int(11) NOT NULL DEFAULT '0' COMMENT '最高积分',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid` (`accountid`)
|
||||
@ -428,4 +434,124 @@ CREATE TABLE `draw` (
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_drawid` (`accountid`, `id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `hero`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `hero`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `hero` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`id` int(11) NOT NULL DEFAULT '0' COMMENT '英雄id',
|
||||
`lv` int(11) NOT NULL DEFAULT '0' COMMENT '英雄等级',
|
||||
`skinid` int(11) NOT NULL DEFAULT '0' COMMENT '皮肤id',
|
||||
`skill1_lv1` int(11) NOT NULL DEFAULT '1' COMMENT '必杀技等级',
|
||||
`skill1_lv2` int(11) NOT NULL DEFAULT '1' COMMENT '躲避技能等级',
|
||||
`yokeexp` int(11) NOT NULL DEFAULT '0' COMMENT '当前羁绊等级的经验',
|
||||
`yoketotalexp` int(11) NOT NULL DEFAULT '0' COMMENT '羁绊获得的总经验',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_drawid` (`accountid`, `id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `hero_skin`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `hero_skin`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `hero_skin` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '英雄id',
|
||||
`skin_id` int(11) NOT NULL DEFAULT '0' COMMENT '英雄皮肤id',
|
||||
`skin_state` int(11) NOT NULL DEFAULT '0' COMMENT '英雄皮肤状态 0=已经购,1 = 试用状态',
|
||||
`get_from` int(11) NOT NULL DEFAULT '0' COMMENT '获得方式 0 = 系统赠送 1 = 金币购买',
|
||||
`consume_num` int(11) NOT NULL DEFAULT '0' COMMENT '消耗货币的具体数量',
|
||||
`trytime` int(11) NOT NULL DEFAULT '0' COMMENT '试用开始时间',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_heroid_skinid` (`accountid`, `hero_id`,`skin_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `gun_intensify`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gun_intensify`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gun_intensify` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`gun_type_id` int(11) NOT NULL DEFAULT '0' COMMENT '枪类型的id',
|
||||
`skill_id` int(11) NOT NULL DEFAULT '0' COMMENT '技能ID',
|
||||
`skill_lv` int(11) NOT NULL DEFAULT '0' COMMENT '技能等级',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_gun_type_id_skill_id` (`accountid`, `gun_type_id`,`skill_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `gun`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gun`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gun` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`gun_id` int(11) NOT NULL DEFAULT '0' COMMENT '枪的id',
|
||||
`skin_id` int(11) NOT NULL DEFAULT '0' COMMENT '装备的皮肤ID',
|
||||
`trytime` int(11) NOT NULL DEFAULT '0' COMMENT '试用开始时间',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_gun_id` (`accountid`, `gun_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `gun_skin`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gun_skin`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gun_skin` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`gun_id` int(11) NOT NULL DEFAULT '0' COMMENT '枪的id',
|
||||
`skin_id` int(11) NOT NULL DEFAULT '0' COMMENT '皮肤ID',
|
||||
`trytime` int(11) NOT NULL DEFAULT '0' COMMENT '试用开始时间',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid_gun_id_skin_id` (`accountid`, `gun_id`,`skin_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
--
|
||||
-- Table structure for table `player_info`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `player_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `player_info` (
|
||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||
`accountid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'accountid',
|
||||
`give_me_five` int(11) NOT NULL DEFAULT '0' COMMENT '点赞',
|
||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `accountid` (`accountid`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||
|
||||
-- Dump completed on 2015-08-19 18:51:22
|
||||
|
Loading…
x
Reference in New Issue
Block a user