docs: update events (#6658)

* docs: update events

* lint++

* lint++
This commit is contained in:
Aleksandr Bezobchuk
2021-07-06 12:48:05 +00:00
committed by GitHub
parent 2d95e38986
commit 4f8bcb1cce
3 changed files with 55 additions and 13 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ CREATE TABLE tx_events (
created_at TIMESTAMPTZ NOT NULL,
chain_id VARCHAR NOT NULL,
UNIQUE (hash, key),
FOREIGN KEY (tx_result_id)
REFERENCES tx_results(id)
ON DELETE CASCADE
FOREIGN KEY (tx_result_id) REFERENCES tx_results(id) ON DELETE CASCADE
);
CREATE INDEX idx_block_events_key_value ON block_events(key, value);
CREATE INDEX idx_tx_events_key_value ON tx_events(key, value);