diff --git a/sql/migrate/gamedb.sql b/sql/migrate/gamedb.sql index 36e77978..afaf5852 100644 --- a/sql/migrate/gamedb.sql +++ b/sql/migrate/gamedb.sql @@ -1611,6 +1611,14 @@ CREATE TABLE `t_hash_rate_reward` ( ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Table structure for table `t_computing_power_period` +-- + +DROP TABLE IF EXISTS `t_ranking_settlement_record`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_ranking_settlement_record` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', @@ -1627,6 +1635,13 @@ CREATE TABLE `t_ranking_settlement_record` ( ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; +-- +-- Table structure for table `t_computing_power_period` +-- + +DROP TABLE IF EXISTS `t_staking`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_staking` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', @@ -1712,7 +1727,7 @@ CREATE TABLE `t_hash_rate` ( `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), - UNIQUE KEY `account_task_id` (`account_id`, `task_id`) + UNIQUE KEY `account_period_task_id` (`account_id`,`period`, `task_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- @@ -1730,3 +1745,21 @@ CREATE TABLE `t_hash_rate_battle_data` ( `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; + + +-- +-- Table structure for table `t_hash_rate_battle_data` +-- + +DROP TABLE IF EXISTS `t_global_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `t_global_data` ( + `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', + `name` varchar(60) NOT NULL DEFAULT '' COMMENT '参数名', + `data` mediumblob COMMENT 'data', + `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', + `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', + PRIMARY KEY (`idx`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; \ No newline at end of file