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),
|
|
|
|
CONSTRAINT node_uc UNIQUE (genesis_block, network_id, node_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE nodes;
|