Update tend, flipkick and dent tables for consistency (#24)

This commit is contained in:
Elizabeth
2018-09-18 09:27:14 -05:00
committed by GitHub
parent 06881db350
commit 60901d9095
10 changed files with 69 additions and 50 deletions
@@ -1,5 +1,5 @@
CREATE TABLE maker.dent (
db_id SERIAL PRIMARY KEY,
id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
bid_id NUMERIC NOT NULL UNIQUE,
lot NUMERIC,
@@ -7,5 +7,6 @@ CREATE TABLE maker.dent (
guy BYTEA,
tic NUMERIC,
tx_idx INTEGER NOT NUll,
raw_log JSONB
raw_log JSONB,
UNIQUE (header_id, tx_idx)
);