Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tron-explore
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张建华@五瓣科技
tron-explore
Commits
9a9d02a5
Commit
9a9d02a5
authored
Dec 01, 2020
by
jianhua.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL脚本新增合约表,区块、交易、账户统计表
parent
85328b2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
tron-explore.sql
tron-explore.sql
+37
-0
No files found.
tron-explore.sql
View file @
9a9d02a5
...
@@ -143,3 +143,40 @@ CREATE TABLE `tron_transaction_hex` (
...
@@ -143,3 +143,40 @@ CREATE TABLE `tron_transaction_hex` (
-- ----------------------------
-- ----------------------------
-- Records of 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
-- ----------------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment