ipld-eth-server/db/migrations/1533844125_create_frob_table.up.sql
2018-08-14 10:47:43 -05:00

12 lines
304 B
SQL

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)
);