File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
backend/pkg/commons/db/migrations/postgres Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ -- +goose Up
2+ -- +goose StatementBegin
3+ -- Lido Simple DVT: Node operators (minimal fields)
4+ CREATE TABLE IF NOT EXISTS lido_simple_dvt_node_operators (
5+ operator_id BIGINT PRIMARY KEY ,
6+ signing_key_count BIGINT NOT NULL DEFAULT 0 ,
7+ name text not null default ' '
8+ );
9+
10+ -- Lido CSM: Signing keys per operator
11+ CREATE TABLE IF NOT EXISTS lido_simple_dvt_signing_keys (
12+ operator_id BIGINT NOT NULL REFERENCES lido_simple_dvt_node_operators(operator_id) ON DELETE CASCADE ,
13+ pubkey BYTEA NOT NULL ,
14+ PRIMARY KEY (operator_id, pubkey)
15+ );
16+ CREATE INDEX IF NOT EXISTS idx_lido_simple_dvt_signing_keys_operator_id ON lido_simple_dvt_signing_keys (operator_id);
17+ CREATE INDEX IF NOT EXISTS idx_lido_simple_dvt_signing_keys_pubkey ON lido_simple_dvt_signing_keys (pubkey);
18+ -- +goose StatementEnd
19+
20+ -- +goose Down
21+ -- +goose StatementBegin
22+ DROP TABLE IF EXISTS lido_simple_dvt_signing_keys;
23+ DROP TABLE IF EXISTS lido_simple_dvt_node_operators;
24+ -- +goose StatementEnd
You can’t perform that action at this time.
0 commit comments