d93006321b
- Table has foreign key to blocks - Add transaction RLP and transaction index to table - Enables other tables with standalone transactions or transactions associated with other data structures (e.g. headers)
17 lines
414 B
SQL
17 lines
414 B
SQL
-- +goose Up
|
|
CREATE TABLE receipts
|
|
(
|
|
id SERIAL PRIMARY KEY,
|
|
transaction_id INTEGER NOT NULL REFERENCES full_sync_transactions (id) ON DELETE CASCADE,
|
|
contract_address VARCHAR(42),
|
|
cumulative_gas_used NUMERIC,
|
|
gas_used NUMERIC,
|
|
state_root VARCHAR(66),
|
|
status INTEGER,
|
|
tx_hash VARCHAR(66)
|
|
);
|
|
|
|
|
|
-- +goose Down
|
|
DROP TABLE receipts;
|