go-ethereum/shyftDb/postgres_setup/create_tables.psql
2018-04-23 10:47:57 -04:00

18 lines
No EOL
320 B
Text

CREATE TABLE IF NOT EXISTS blocks (
hash text primary key,
coinbase text,
number bigint
);
CREATE TABLE IF NOT EXISTS txs (
txHash text,
to_addr text,
from_addr text,
blockhash text,
amount bigint,
gasprice bigint,
gas numeric,
nonce numeric,
data bytea,
block text references blocks(hash)
);