-- MySQL dump 10.14 Distrib 5.5.41-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: marketdb -- ------------------------------------------------------ -- 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_goods` -- DROP TABLE IF EXISTS `t_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_goods` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `goods_id` varchar(60) NOT NULL DEFAULT '' COMMENT '商品id', `item_uniid` int(11) NOT NULL DEFAULT '0' COMMENT '道具唯一id', `item_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`), UNIQUE KEY `goods_id` (`goods_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_nfts` -- DROP TABLE IF EXISTS `t_nfts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_nfts` ( `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 '段位', `history_best_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 '拥有的头像框列表', `consume_gold` bigint NOT NULL DEFAULT '0' COMMENT '消费金币数', `score_modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '积分修改时间', `best_rank_modifytime` int(11) NOT NULL DEFAULT '0' COMMENT 'bestrank修改时间', `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 */; -- Dump completed on 2015-08-19 18:51:22