-- MySQL dump 10.14 Distrib 5.5.41-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: accountdb -- ------------------------------------------------------ -- Server version 5.5.41-MariaDB -- -- Table structure for table `version` -- DROP TABLE IF EXISTS `version`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `version` ( `idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号', PRIMARY KEY (`idx`), UNIQUE KEY `version` (`version`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_user` -- DROP TABLE IF EXISTS `t_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_user` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', `name` tinyblob COMMENT '用户名字', `sex` int(11) NOT NULL DEFAULT '0' COMMENT '性别', `head_id` int(11) NOT NULL DEFAULT '0' COMMENT '头像id', `head_frame` int(11) NOT NULL DEFAULT '0' COMMENT '头像框id', `level` int(11) NOT NULL DEFAULT '0' COMMENT '等级', `exp` int(11) NOT NULL DEFAULT '0' COMMENT '经验', `rank` int(11) NOT NULL DEFAULT '0' COMMENT '段位', `score` int(11) NOT NULL DEFAULT '0' COMMENT '积分', `gold` int(11) NOT NULL DEFAULT '0' COMMENT '金币', `diamond` int(11) NOT NULL DEFAULT '0' COMMENT '钻石', `hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '当前上阵英雄id', `first_fight` int(11) NOT NULL DEFAULT '0' COMMENT '是否首战', `last_season_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次赛季id', `activated` int(11) NOT NULL DEFAULT '0' COMMENT '是否已激活', `activatetime` int(11) NOT NULL DEFAULT '0' COMMENT '激活时间', `head_list` mediumblob COMMENT '拥有的头像列表', `head_frame_list` mediumblob COMMENT '拥有的头像框列表', `total_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数', `total_single_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(单人)', `total_team_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(组队)', `single_battle_rank` int(11) NOT NULL DEFAULT '0' COMMENT '比赛排名(单人)', `team_battle_rank` int(11) NOT NULL DEFAULT '0' COMMENT '比赛排名(组队)', `total_win_times` int(11) NOT NULL DEFAULT '0' COMMENT '总胜利次数', `total_kills_times` int(11) NOT NULL DEFAULT '0' COMMENT '总击杀数', `max_kills_times` int(11) NOT NULL DEFAULT '0' COMMENT '最高击杀数', `total_damage_out` bigint NOT NULL DEFAULT '0' COMMENT '总伤害输出', `max_damage_out` bigint NOT NULL DEFAULT '0' COMMENT '最高伤害输出', `total_damage_in` bigint NOT NULL DEFAULT '0' COMMENT '总伤害输入', `total_recover_hp` bigint NOT NULL DEFAULT '0' COMMENT '总治疗量', `max_recover_hp` bigint NOT NULL DEFAULT '0' COMMENT '最高治疗量', `total_alive_time` bigint NOT NULL DEFAULT '0' COMMENT '总存活时间', `max_alive_time` bigint NOT NULL DEFAULT '0' COMMENT '最高存活时间', `rescue_teammate_times` bigint NOT NULL DEFAULT '0' COMMENT '救队友数', `diving_times` bigint NOT NULL DEFAULT '0' COMMENT '潜水次数', `open_airdrop_times` bigint NOT NULL DEFAULT '0' COMMENT '开启空投补给次数', `use_medicine_times` bigint NOT NULL DEFAULT '0' COMMENT '使用药物次数', `destory_car_times` bigint NOT NULL DEFAULT '0' COMMENT '破坏载具次数', `use_camouflage_times` bigint NOT NULL DEFAULT '0' COMMENT '使用伪装物', `use_skill_times` bigint NOT NULL DEFAULT '0' COMMENT '使用技能次数', `ride_car_move_distance` bigint NOT NULL DEFAULT '0' COMMENT '驾驶或乘坐载具累计移动X米', `ride_car_kills` bigint NOT NULL DEFAULT '0' COMMENT '驾驶或乘坐载具累计击杀X个敌人', `to_teammate_like_times` bigint NOT NULL DEFAULT '0' COMMENT '给队友点赞次数', `consume_gold` bigint NOT NULL DEFAULT '0' COMMENT '消费金币数', `max_alive_time` bigint 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 `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_hero` -- DROP TABLE IF EXISTS `t_hero`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_hero` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'account_id', `hero_id` int(11) NOT NULL DEFAULT '0' COMMENT '英雄id', `skin_id` int(11) NOT NULL DEFAULT '0' COMMENT '皮肤id', `hero_lv` int(11) NOT NULL DEFAULT '0' COMMENT '英雄等级', `hero_exp` int(11) NOT NULL DEFAULT '0' COMMENT '英雄等级', `yoke_lv` int(11) NOT NULL DEFAULT '0' COMMENT '羁绊等级', `yoke_exp` int(11) NOT NULL DEFAULT '0' COMMENT '羁绊经验', `skill_lv1` int(11) NOT NULL DEFAULT '0' COMMENT '必杀技等级', `skill_lv2` 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 `account_id_hero_id` (`account_id`, `hero_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_hero_skin` -- DROP TABLE IF EXISTS `t_hero_skin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_hero_skin` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'account_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 '消耗货币的具体数量', `try_expire_at` 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 `account_id_skinid` (`account_id`, `skin_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_bag` -- DROP TABLE IF EXISTS `t_bag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_bag` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', `item_num` 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 `item_uuid` (`account_id`, `item_id`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_gun_skin` -- DROP TABLE IF EXISTS `t_gun_skin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_gun_skin` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'account_id', `skin_id` int(11) NOT NULL DEFAULT '0' COMMENT '皮肤ID', `skin_state` int(11) NOT NULL DEFAULT '0' COMMENT '状态(0=已经购,1 = 试用状态)', `try_expire_at` 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 `account_id_skin_id` (`account_id`, `skin_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_gun_talent` -- DROP TABLE IF EXISTS `t_gun_talent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_gun_talent` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'account_id', `talent_id` int(11) NOT NULL DEFAULT '0' COMMENT '技能ID', `talent_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 `account_id_talent_id` (`account_id`, `talent_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_dyndata` -- DROP TABLE IF EXISTS `t_dyndata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_dyndata` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', `x` int(11) NOT NULL DEFAULT '0' COMMENT 'x', `y` int(11) NOT NULL DEFAULT '0' COMMENT 'y', `val` bigint NOT NULL DEFAULT '0' COMMENT 'val', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), UNIQUE KEY `account_id_x_y` (`account_id`, `x`, `y`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_shop_buy_record` -- DROP TABLE IF EXISTS `t_shop_buy_record`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_shop_buy_record` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', `this_day_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '今日购买次数', `this_week_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '本周购买次数', `total_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '总购买次数', `last_buy_time` 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`), KEY `account_id` (`account_id`), UNIQUE KEY `account_id_item_id` (`account_id`, `item_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_mission` -- DROP TABLE IF EXISTS `t_mission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_mission` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `mission_id` int(11) NOT NULL DEFAULT '0' COMMENT '任务id', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), KEY `account_id` (`account_id`), UNIQUE KEY `account_id_mission_id` (`account_id`, `mission_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_season` -- DROP TABLE IF EXISTS `t_season`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_season` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `season_id` int(11) NOT NULL DEFAULT '0' COMMENT '赛季id', `card_lv` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册等级', `card_exp` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册经验', `total_score` int(11) NOT NULL DEFAULT '0' COMMENT '赛季积分', `max_score` int(11) NOT NULL DEFAULT '0' COMMENT '赛季最高积分', `gift_state1` int(11) NOT NULL DEFAULT '0' COMMENT '普通礼包购买状态 0:未购 1:已购', `gift_buytime1` int(11) NOT NULL DEFAULT '0' COMMENT '普通礼包购买时间', `gift_state2` int(11) NOT NULL DEFAULT '0' COMMENT '豪华礼包购买状态 0:未购 1:已购', `gift_buytime2` int(11) NOT NULL DEFAULT '0' COMMENT '豪华礼包购买时间', `total_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数', `total_single_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(单人)', `total_team_battle_times` int(11) NOT NULL DEFAULT '0' COMMENT '总战斗次数(组队)', `single_battle_rank` int(11) NOT NULL DEFAULT '0' COMMENT '比赛排名(单人)', `team_battle_rank` int(11) NOT NULL DEFAULT '0' COMMENT '比赛排名(组队)', `total_win_times` int(11) NOT NULL DEFAULT '0' COMMENT '总胜利次数', `total_kills_times` int(11) NOT NULL DEFAULT '0' COMMENT '总击杀数', `max_kills_times` int(11) NOT NULL DEFAULT '0' COMMENT '最高击杀数', `total_damage_out` bigint NOT NULL DEFAULT '0' COMMENT '总伤害输出', `max_damage_out` bigint NOT NULL DEFAULT '0' COMMENT '最高伤害输出', `total_damage_in` bigint NOT NULL DEFAULT '0' COMMENT '总伤害输入', `total_recover_hp` bigint NOT NULL DEFAULT '0' COMMENT '总治疗量', `max_recover_hp` bigint NOT NULL DEFAULT '0' COMMENT '最高治疗量', `total_alive_time` bigint NOT NULL DEFAULT '0' COMMENT '总存活时间', `max_alive_time` bigint NOT NULL DEFAULT '0' COMMENT '最高存活时间', `rescue_teammate_times` bigint NOT NULL DEFAULT '0' COMMENT '救队友数', `diving_times` bigint NOT NULL DEFAULT '0' COMMENT '潜水次数', `open_airdrop_times` bigint NOT NULL DEFAULT '0' COMMENT '开启空投补给次数', `use_medicine_times` bigint NOT NULL DEFAULT '0' COMMENT '使用药物次数', `destory_car_times` bigint NOT NULL DEFAULT '0' COMMENT '破坏载具次数', `use_camouflage_times` bigint NOT NULL DEFAULT '0' COMMENT '使用伪装物', `use_skill_times` bigint NOT NULL DEFAULT '0' COMMENT '使用技能次数', `ride_car_move_distance` bigint NOT NULL DEFAULT '0' COMMENT '驾驶或乘坐载具累计移动X米', `ride_car_kills` bigint NOT NULL DEFAULT '0' COMMENT '驾驶或乘坐载具累计击杀X个敌人', `to_teammate_like_times` bigint NOT NULL DEFAULT '0' COMMENT '给队友点赞次数', `consume_gold` bigint NOT NULL DEFAULT '0' COMMENT '消费金币数', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), KEY `account_id` (`account_id`), UNIQUE KEY `account_id_season_id` (`account_id`, `season_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t_season_card` -- DROP TABLE IF EXISTS `t_season_card`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_season_card` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `season_id` int(11) NOT NULL DEFAULT '0' COMMENT '赛季id', `card_lv` int(11) NOT NULL DEFAULT '0' COMMENT '赛季手册等级', `reward_received` 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`), KEY `account_id_season_id` (`account_id`, `season_id`), UNIQUE KEY `account_id_season_id_card_lv` (`account_id`, `season_id`, `card_lv`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; -- Dump completed on 2015-08-19 18:51:22