diff --git a/sql/bcnftdb.sql b/sql/bcnftdb.sql index 8891670f..8f70a828 100644 --- a/sql/bcnftdb.sql +++ b/sql/bcnftdb.sql @@ -279,9 +279,9 @@ CREATE TABLE `t_staking_daily_settlement` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_address` varchar(60) NOT NULL DEFAULT '' COMMENT '钱包地址', `settle_date` int(11) NOT NULL DEFAULT '0' COMMENT '结算日期', - `contribution` bigint NOT NULL DEFAULT '0' COMMENT '贡献点', + `contribution` double NOT NULL DEFAULT '0' COMMENT '贡献点', `nft_data` mediumblob COMMENT 'nft数据', - `last_contribution` bigint NOT NULL DEFAULT '0' COMMENT '最后一次计算的贡献点-用于日后分析', + `last_contribution` double NOT NULL DEFAULT '0' COMMENT '最后一次计算的贡献点-用于日后分析', `last_nft_data` mediumblob COMMENT '最后一次nft数据-用于日后分析', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', @@ -302,7 +302,7 @@ DROP TABLE IF EXISTS `t_contribution`; CREATE TABLE `t_contribution` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `account_address` varchar(60) NOT NULL DEFAULT '' COMMENT '钱包地址', - `contribution` bigint NOT NULL DEFAULT '0' COMMENT '贡献点', + `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`),