ipld-eth-server/db/migrations/00003_initial_transaction_table.sql

14 lines
236 B
SQL

-- +goose Up
CREATE TABLE transactions
(
id SERIAL PRIMARY KEY,
tx_hash VARCHAR(66),
tx_nonce NUMERIC,
tx_to varchar(66),
tx_gaslimit NUMERIC,
tx_gasprice NUMERIC,
tx_value NUMERIC
)
-- +goose Down
DROP TABLE transactions