index receipts by the contract address

This commit is contained in:
Ian Norden
2019-12-02 13:24:58 -06:00
parent 23a21c14f3
commit 3fa33fb767
10 changed files with 50 additions and 25 deletions
@@ -3,6 +3,7 @@ CREATE TABLE public.receipt_cids (
id SERIAL PRIMARY KEY,
tx_id INTEGER NOT NULL REFERENCES transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
cid TEXT NOT NULL,
contract VARCHAR(66),
topic0s VARCHAR(66)[]
);