forked from cerc-io/ipld-eth-server
15 lines
457 B
SQL
15 lines
457 B
SQL
-- +goose Up
|
|
CREATE TABLE btc.tx_outputs (
|
|
id SERIAL PRIMARY KEY,
|
|
tx_id INTEGER NOT NULL REFERENCES btc.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
|
index INTEGER NOT NULL,
|
|
value BIGINT NOT NULL,
|
|
pk_script BYTEA NOT NULL,
|
|
script_class INTEGER NOT NULL,
|
|
addresses VARCHAR(66)[],
|
|
required_sigs INTEGER NOT NULL,
|
|
UNIQUE (tx_id, index)
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE btc.tx_outputs; |