-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d253ced
commit d065cbb
Showing
5 changed files
with
90 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CREATE TABLE merkletree ( | ||
mid int NOT NULL, | ||
tree_data text(40000) NOT NULL, | ||
blockNumber int NOT NULL, | ||
last_modified_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
created_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
)ENGINE = InnoDB; | ||
|
||
CREATE TABLE contract ( | ||
conName char(20) NOT NULL, | ||
conType char(20) NOT NULL, | ||
conAddr text(500) NOT NULL, | ||
owner text(500) NOT NULL, | ||
totalAmount bigint NOT NULL, | ||
shortName char(20) NOT NULL, | ||
last_modified_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
created_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
)ENGINE = InnoDB; | ||
|
||
CREATE TABLE transactions ( | ||
traType char(20) NOT NULL, | ||
username char(20) NOT NULL, | ||
vin int NOT NULL, | ||
vout int NOT NULL, | ||
input_notes char(40), | ||
output_specs text(2000), | ||
last_modified_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
created_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
)ENGINE = InnoDB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters