lighthouse/watch/migrations/2022-01-01-000001_beacon_blocks/up.sql

8 lines
280 B
MySQL
Raw Normal View History

CREATE TABLE beacon_blocks (
slot integer PRIMARY KEY REFERENCES canonical_slots(slot) ON DELETE CASCADE,
root bytea REFERENCES canonical_slots(beacon_block) NOT NULL,
parent_root bytea NOT NULL,
attestation_count integer NOT NULL,
transaction_count integer
)