ipld-eth-server/db/migrations/1534295712_create_tend_table.up.sql

13 lines
391 B
MySQL
Raw Normal View History

2018-08-16 21:36:35 +00:00
CREATE TABLE maker.tend (
id SERIAL PRIMARY KEY,
2018-08-16 21:36:35 +00:00
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
2018-09-10 21:57:17 +00:00
bid_id NUMERIC NOT NULL UNIQUE,
2018-08-16 21:36:35 +00:00
lot NUMERIC,
bid NUMERIC,
guy VARCHAR,
2018-08-16 21:36:35 +00:00
tic NUMERIC,
tx_idx INTEGER NOT NUll,
raw_log JSONB,
UNIQUE (header_id, tx_idx)
2018-08-16 21:36:35 +00:00
);