ipld-eth-server/db/migrations/1532468319_create_flip_kick_table.up.sql
2018-09-12 11:35:32 -05:00

14 lines
442 B
SQL

CREATE TABLE maker.flip_kick (
db_id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
id NUMERIC NOT NULL UNIQUE,
lot NUMERIC,
bid NUMERIC,
gal VARCHAR,
"end" TIMESTAMP WITH TIME ZONE,
urn VARCHAR,
tab NUMERIC,
tx_idx INTEGER NOT NUll,
raw_log JSONB
);