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,
|
2018-08-28 19:16:39 +00:00
|
|
|
dink NUMERIC,
|
|
|
|
dart NUMERIC,
|
2018-08-09 21:55:02 +00:00
|
|
|
ink NUMERIC,
|
|
|
|
art NUMERIC,
|
2018-08-30 23:51:56 +00:00
|
|
|
iart NUMERIC,
|
2018-10-22 19:37:59 +00:00
|
|
|
log_idx INTEGER NOT NUll,
|
2018-08-30 23:51:56 +00:00
|
|
|
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
|
|
|
);
|