ipld-eth-server/db/migrations/1532533671_create_peps_table.up.sql

10 lines
248 B
MySQL
Raw Normal View History

2018-07-24 16:38:49 +00:00
CREATE TABLE maker.peps (
id SERIAL PRIMARY KEY,
block_number BIGINT NOT NULL,
header_id INTEGER NOT NULL,
usd_value NUMERIC,
CONSTRAINT headers_fk FOREIGN KEY (header_id)
REFERENCES headers (id)
ON DELETE CASCADE
);