-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbroadcasts.sql
More file actions
21 lines (20 loc) · 864 Bytes
/
broadcasts.sql
File metadata and controls
21 lines (20 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DROP TABLE IF EXISTS broadcasts;
CREATE TABLE broadcasts (
tx_index INTEGER UNSIGNED,
-- tx_hash TEXT,
tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions
block_index INTEGER,
-- source TEXT,
source_id INTEGER UNSIGNED, -- id of record in index_addresses
timestamp INTEGER UNSIGNED,
value REAL,
fee_fraction_int BIGINT,
text TEXT,
locked BOOL,
mime_type VARCHAR(250) DEFAULT 'text/plain',
status TEXT
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE UNIQUE INDEX tx_index ON broadcasts (tx_index);
CREATE INDEX block_index ON broadcasts (block_index);
CREATE INDEX source_id ON broadcasts (source_id);
CREATE INDEX tx_hash_id ON broadcasts (tx_hash_id);