2018-09-12 14:10:34 +00:00
|
|
|
CREATE TABLE maker.cat_file_chop_lump (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
|
|
ilk TEXT,
|
|
|
|
what TEXT,
|
|
|
|
data NUMERIC,
|
|
|
|
tx_idx INTEGER NOT NUll,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx INTEGER NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log JSONB,
|
2018-10-22 18:28:42 +00:00
|
|
|
UNIQUE (header_id, tx_idx, log_idx)
|
2018-09-12 14:10:34 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_file_flip (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
|
|
ilk TEXT,
|
|
|
|
what TEXT,
|
|
|
|
flip TEXT,
|
|
|
|
tx_idx INTEGER NOT NUll,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx INTEGER NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log JSONB,
|
2018-10-22 18:28:42 +00:00
|
|
|
UNIQUE (header_id, tx_idx, log_idx)
|
2018-09-12 14:10:34 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_file_pit_vow (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
|
|
what TEXT,
|
|
|
|
data TEXT,
|
|
|
|
tx_idx INTEGER NOT NUll,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx INTEGER NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log JSONB,
|
2018-10-22 18:28:42 +00:00
|
|
|
UNIQUE (header_id, tx_idx, log_idx)
|
2018-09-12 14:10:34 +00:00
|
|
|
);
|