begin; -- CREATE TABLE `t_crystal` ( -- `idx` bigint(20) NOT NULL AUTO_INCREMENT, -- `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', -- `address` varchar(60) COMMENT 'address', -- `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', -- `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', -- `createtime` int(11) NOT NULL COMMENT '创建时间', -- `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', -- PRIMARY KEY (`idx`), -- UNIQUE KEY `account_id_item_id` (`account_id`, `item_id`), -- KEY `account_id` (`account_id`) -- ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; CREATE TABLE `t_crystal_exchange_record` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `address` varchar(60) COMMENT 'address', `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', `item_num` bigint NOT NULL DEFAULT '0' COMMENT '道具数量', `createtime` int(11) NOT NULL COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; CREATE TABLE `t_power_exchange_record` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `address` varchar(60) COMMENT 'address', `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', `item_num1` int(11) NOT NULL DEFAULT '0' COMMENT '晶体道具260001兑换算力数量', `item_num2` int(11) NOT NULL DEFAULT '0' COMMENT '晶体道具260002兑换算力数量', `item_num3` int(11) NOT NULL DEFAULT '0' COMMENT '晶体道具260003兑换算力数量', `item_num4` int(11) NOT NULL DEFAULT '0' COMMENT '晶体道具260004兑换算力数量', `total_num` double NOT NULL DEFAULT '0' COMMENT '算力总量', `createtime` int(11) NOT NULL COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; CREATE TABLE `t_computing_power_period` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', `total_num` varchar(60) COMMENT '全服算力总量', `createtime` int(11) NOT NULL COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), UNIQUE KEY `period` (`period`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; CREATE TABLE `t_hash_rate_reward` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT, `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `address` varchar(60) COMMENT 'address', `period` int(11) NOT NULL DEFAULT '0' COMMENT '第几期', `power` varchar(60) COMMENT '算力', `reward_cec` varchar(60) COMMENT 'reward cec', `reward1` int(11) NOT NULL DEFAULT '0' COMMENT '第1周奖励', `reward2` int(11) NOT NULL DEFAULT '0' COMMENT '第2周奖励', `reward3` int(11) NOT NULL DEFAULT '0' COMMENT '第3周奖励', `reward4` int(11) NOT NULL DEFAULT '0' COMMENT '第4周奖励', `createtime` int(11) NOT NULL COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), KEY `account_id` (`account_id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; alter table t_bc_order add column `currency_name` varchar(60) NOT NULL COMMENT 'currency_name'; insert into version (version) values(2023081601); commit;