forked from cerc-io/ipld-eth-server
16 lines
385 B
MySQL
16 lines
385 B
MySQL
|
-- +goose Up
|
||
|
CREATE TABLE transactions (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
block_id INTEGER NOT NULL REFERENCES blocks(id) ON DELETE CASCADE,
|
||
|
input_data VARCHAR,
|
||
|
tx_from VARCHAR(66),
|
||
|
gaslimit NUMERIC,
|
||
|
gasprice NUMERIC,
|
||
|
hash VARCHAR(66),
|
||
|
nonce NUMERIC,
|
||
|
tx_to VARCHAR(66),
|
||
|
"value" NUMERIC
|
||
|
);
|
||
|
|
||
|
-- +goose Down
|
||
|
DROP TABLE transactions;
|