ipld-eth-server/db/migrations/00030_create_receipt_cids_table.sql
2019-12-02 13:24:50 -06:00

10 lines
312 B
SQL

-- +goose Up
CREATE TABLE public.receipt_cids (
id SERIAL PRIMARY KEY,
tx_id INTEGER NOT NULL REFERENCES transaction_cids (id) ON DELETE CASCADE,
cid TEXT NOT NULL,
topic0s VARCHAR(66)[]
);
-- +goose Down
DROP TABLE public.receipt_cids;