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

15 lines
390 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,
2018-10-22 19:37:59 +00:00
ilk TEXT,
urn TEXT,
dink NUMERIC,
dart NUMERIC,
2018-08-09 21:55:02 +00:00
ink NUMERIC,
art NUMERIC,
iart NUMERIC,
2018-10-22 19:37:59 +00:00
log_idx INTEGER NOT NUll,
tx_idx INTEGER NOT NUll,
raw_log JSONB,
2018-10-22 19:37:59 +00:00
UNIQUE (header_id, tx_idx, log_idx)
2018-08-09 21:55:02 +00:00
);