Commit 9a9d02a5 authored by jianhua.zhang's avatar jianhua.zhang

SQL脚本新增合约表,区块、交易、账户统计表

parent 85328b2c
......@@ -143,3 +143,40 @@ CREATE TABLE `tron_transaction_hex` (
-- ----------------------------
-- Records of tron_transaction_hex
-- ----------------------------
-- ----------------------------
-- Table structure for `tron_census`
-- ----------------------------
DROP TABLE IF EXISTS `tron_census`;
CREATE TABLE `tron_census` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`total_trans` bigint(20) DEFAULT NULL COMMENT '总交易数',
`total_block_size` bigint(20) DEFAULT NULL COMMENT '总区块大小',
`total_account` bigint(20) DEFAULT NULL COMMENT '总账户数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='区块、交易、账户统计表';
-- ----------------------------
-- Records of tron_census
-- ----------------------------
INSERT INTO `tron_census` VALUES ('30', '124576', '1478493716', '10834');
-- ----------------------------
-- Table structure for `tron_contract`
-- ----------------------------
DROP TABLE IF EXISTS `tron_contract`;
CREATE TABLE `tron_contract` (
`id` bigint(20) NOT NULL,
`bytecode` longtext,
`name` varchar(50) DEFAULT NULL COMMENT '名称',
`origin_address` varchar(64) DEFAULT NULL,
`abi` longtext,
`origin_energy_limit` bigint(20) DEFAULT NULL,
`contract_address` varchar(64) DEFAULT NULL COMMENT '合约地址',
`code_hash` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='合约表';
-- ----------------------------
-- Records of tron_contract
-- ----------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment