2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2018-01-03 17:23:43 +00:00
|
|
|
CREATE TABLE receipts
|
|
|
|
(
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
transaction_id INTEGER NOT NULL,
|
|
|
|
contract_address VARCHAR(42),
|
|
|
|
cumulative_gas_used NUMERIC,
|
|
|
|
gas_used NUMERIC,
|
|
|
|
state_root VARCHAR(66),
|
|
|
|
status INTEGER,
|
|
|
|
tx_hash VARCHAR(66),
|
|
|
|
CONSTRAINT transaction_fk FOREIGN KEY (transaction_id)
|
|
|
|
REFERENCES transactions (id)
|
|
|
|
ON DELETE CASCADE
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE receipts;
|