ipld-eth-server/db/migrations/1533844125_create_frob_table.up.sql

12 lines
304 B
MySQL
Raw Normal View History

2018-08-09 21:55:02 +00:00
CREATE TABLE maker.frob (
id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
tx_idx INTEGER,
ilk bytea,
lad bytea,
gem NUMERIC,
ink NUMERIC,
art NUMERIC,
era NUMERIC,
UNIQUE (header_id, tx_idx)
);