add withdrawal_cids
This commit is contained in:
parent
68a347e38d
commit
efd181a99c
14
db/migrations/00021_create_eth_withdrawal_cids_table.sql
Normal file
14
db/migrations/00021_create_eth_withdrawal_cids_table.sql
Normal file
@ -0,0 +1,14 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS eth.withdrawal_cids (
|
||||
block_number BIGINT NOT NULL,
|
||||
header_id VARCHAR(66) NOT NULL,
|
||||
cid TEXT NOT NULL,
|
||||
index INTEGER NOT NULL,
|
||||
validator INTEGER NOT NULL,
|
||||
address VARCHAR(66) NOT NULL,
|
||||
amount NUMERIC NOT NULL,
|
||||
PRIMARY KEY (index, header_id, block_number)
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE eth.withdrawal_cids;
|
Loading…
Reference in New Issue
Block a user