-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
todo: decimal precision still needs some work
- Loading branch information
1 parent
2e8a361
commit 553beee
Showing
5 changed files
with
273 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
DROP TABLE IF EXISTS callbacks; | ||
CREATE TABLE callbacks ( | ||
tx_index INTEGER UNSIGNED, -- Unique transaction index | ||
tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions | ||
block_index INTEGER UNSIGNED, -- block index of CALLBACKS transaction | ||
tick_id INTEGER UNSIGNED, -- id of record in index_tickers | ||
callback_tick_id INTEGER UNSIGNED, -- id of record in index_tickers | ||
callback_amount VARCHAR(250), -- Amount of token per unit | ||
source_id INTEGER UNSIGNED, -- id of record in index_addresses table | ||
memo_id INTEGER UNSIGNED, -- id of record in index_memos table | ||
status_id INTEGER UNSIGNED -- id of record in index_statuses table | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
CREATE INDEX tx_index ON callbacks (tx_index); | ||
CREATE INDEX source_id ON callbacks (source_id); | ||
CREATE INDEX tick_id ON callbacks (tick_id); | ||
CREATE INDEX callback_tick_id ON callbacks (callback_tick_id); | ||
CREATE INDEX tx_hash_id ON callbacks (tx_hash_id); | ||
CREATE INDEX block_index ON callbacks (block_index); | ||
CREATE INDEX memo_id ON callbacks (memo_id); | ||
CREATE INDEX status_id ON callbacks (status_id); | ||
|