split uncles into their own table; add tx index to the tx index (lol); continue work on geth api endpoints

This commit is contained in:
Ian Norden
2020-01-27 14:14:03 -06:00
parent e52284b9ba
commit 33ac5978f5
21 changed files with 605 additions and 83 deletions
@@ -0,0 +1,14 @@
-- +goose Up
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)[],
topic1s VARCHAR(66)[],
topic2s VARCHAR(66)[],
topic3s VARCHAR(66)[]
);
-- +goose Down
DROP TABLE public.receipt_cids;