-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathblocks.sql
More file actions
20 lines (18 loc) · 1 KB
/
Copy pathblocks.sql
File metadata and controls
20 lines (18 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DROP TABLE IF EXISTS blocks;
CREATE TABLE blocks (
block_index INTEGER UNSIGNED PRIMARY KEY,
block_time INTEGER UNSIGNED,
-- block_hash TEXT,
block_hash_id INTEGER UNSIGNED, -- id of record in index_transactions table
-- previous_block_hash TEXT,
previous_block_hash_id INTEGER UNSIGNED, -- id of record in index_transactions table
-- ledger_hash TEXT,
ledger_hash_id INTEGER UNSIGNED, -- id of record in index_transactions table
-- txlist_hash TEXT,
txlist_hash_id INTEGER UNSIGNED, -- id of record in index_transactions table
-- messages_hash TEXT,
messages_hash_id INTEGER UNSIGNED, -- id of record in index_transactions table
difficulty FLOAT,
transaction_count INTEGER UNSIGNED -- id of record in index_transactions table
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE INDEX block_hash_id ON blocks (block_hash_id);