1
This commit is contained in:
parent
d4fa832873
commit
167cfa8c85
@ -77,6 +77,10 @@ CREATE TABLE `t_log` (
|
|||||||
`param2` mediumblob COMMENT 'param2',
|
`param2` mediumblob COMMENT 'param2',
|
||||||
`param3` mediumblob COMMENT 'param3',
|
`param3` mediumblob COMMENT 'param3',
|
||||||
`param4` mediumblob COMMENT 'param4',
|
`param4` mediumblob COMMENT 'param4',
|
||||||
|
`param5` mediumblob COMMENT 'param5',
|
||||||
|
`param6` mediumblob COMMENT 'param6',
|
||||||
|
`param7` mediumblob COMMENT 'param7',
|
||||||
|
`param8` mediumblob COMMENT 'param8',
|
||||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
PRIMARY KEY (`idx`)
|
PRIMARY KEY (`idx`)
|
||||||
@ -107,6 +111,7 @@ CREATE TABLE `t_blockchain_event` (
|
|||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
PRIMARY KEY (`idx`),
|
PRIMARY KEY (`idx`),
|
||||||
UNIQUE KEY `unikey` (`txhash`, `hash_code`, `log_index`, `net_id`, `event_name`, `contract_address`),
|
UNIQUE KEY `unikey` (`txhash`, `hash_code`, `log_index`, `net_id`, `event_name`, `contract_address`),
|
||||||
|
KEY `idx_contract_address_event_name` (`contract_address`, `event_name`),
|
||||||
KEY `net_id_event_name_contract_address` (`net_id`, `event_name`, `contract_address`)
|
KEY `net_id_event_name_contract_address` (`net_id`, `event_name`, `contract_address`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
@ -499,3 +504,62 @@ CREATE TABLE `t_nft_lock_event` (
|
|||||||
KEY `idx_net_id_event_name_contract_address_status` (`net_id`, `event_name`, `contract_address`, `status`)
|
KEY `idx_net_id_event_name_contract_address_status` (`net_id`, `event_name`, `contract_address`, `status`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `t_chain_activity`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_chain_activity`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_chain_activity` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'txhash',
|
||||||
|
`log_index` bigint NOT NULL DEFAULT '0' COMMENT 'log_index',
|
||||||
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT 'net_id',
|
||||||
|
`event_name` varchar(60) NOT NULL DEFAULT '' COMMENT 'event_name',
|
||||||
|
`contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'contract_address',
|
||||||
|
`nft_contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft_contract_address',
|
||||||
|
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
||||||
|
`src_idx` bigint NOT NULL DEFAULT '0' COMMENT 'src_idx',
|
||||||
|
`sender_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'sender_address',
|
||||||
|
`to_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'to_address',
|
||||||
|
`is_mint` int(11) NOT NULL DEFAULT '0' COMMENT 'is_mint',
|
||||||
|
`quality` int(11) NOT NULL DEFAULT '0' COMMENT 'quality',
|
||||||
|
`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 `unikey` (`txhash`, `log_index`, `net_id`, `event_name`, `contract_address`, `token_id`),
|
||||||
|
KEY `idx_createtime` (`createtime`),
|
||||||
|
KEY `idx_sender_address` (`sender_address`),
|
||||||
|
KEY `idx_to_address` (`to_address`),
|
||||||
|
KEY `idx_item_id` (`item_id`),
|
||||||
|
KEY `idx_quality` (`quality`),
|
||||||
|
KEY `idx_net_id` (`net_id`),
|
||||||
|
KEY `idx_contract_address` (`contract_address`),
|
||||||
|
KEY `idx_nft_contract_address` (`nft_contract_address`),
|
||||||
|
KEY `idx_token_id` (`token_id`),
|
||||||
|
KEY `idx_event_name` (`event_name`),
|
||||||
|
KEY `idx_is_mint` (`is_mint`),
|
||||||
|
KEY `idx_txhash` (`txhash`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `t_param`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_param`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_param` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`name` varchar(666) NOT NULL DEFAULT '' COMMENT 'name',
|
||||||
|
`val` text NOT NULL DEFAULT '' COMMENT 'val',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
KEY `idx_name` (`name`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
@ -2,7 +2,7 @@ const exceljs = require('exceljs');
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const workbook = new exceljs.Workbook();
|
const workbook = new exceljs.Workbook();
|
||||||
const dataBook = await workbook.xlsx.readFile('/home/kingsome/CF测试数据_0718.xlsx');
|
const dataBook = await workbook.xlsx.readFile('/home/kingsome/contribution072301.xlsx');
|
||||||
const nowTime = Math.floor((new Date()).getTime() / 1000);
|
const nowTime = Math.floor((new Date()).getTime() / 1000);
|
||||||
dataBook.eachSheet((sheet, sheetIndex) =>{
|
dataBook.eachSheet((sheet, sheetIndex) =>{
|
||||||
//console.log(sheet.name, sheetIndex);
|
//console.log(sheet.name, sheetIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user