diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 01ffb1b8..1b403ae7 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1994,3 +1994,22 @@ CREATE TABLE `t_diamond_consume_product` ( KEY `idx_createtime` (`createtime`) ) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `t_contribution` +-- + +DROP TABLE IF EXISTS `t_contribution`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_contribution` ( + `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', + `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', + `contribution` double NOT NULL DEFAULT '0' COMMENT '总贡献点(包含游戏内和链产生的)', + `ingame_contribution` double 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 `idx_account_id` (`account_id`) +) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +/*!40101 SET character_set_client = @saved_cs_client */;