2019-03-18 22:21:31 +00:00
|
|
|
-- +goose Up
|
|
|
|
CREATE TABLE nodes (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
client_name VARCHAR,
|
|
|
|
genesis_block VARCHAR(66),
|
2020-02-10 15:00:55 +00:00
|
|
|
network_id VARCHAR,
|
2019-03-18 22:21:31 +00:00
|
|
|
node_id VARCHAR(128),
|
2021-03-12 15:50:48 +00:00
|
|
|
chain_id INTEGER DEFAULT 1,
|
|
|
|
CONSTRAINT node_uc UNIQUE (genesis_block, network_id, node_id, chain_id)
|
2019-03-18 22:21:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE nodes;
|