Add orders.created_at column
This commit is contained in:
parent
215a9fb3b6
commit
74aa41d5f4
|
@ -48,6 +48,7 @@ CREATE TABLE markets(
|
||||||
|
|
||||||
CREATE TABLE orders(
|
CREATE TABLE orders(
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
|
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
market_id INTEGER NOT NULL REFERENCES markets(id),
|
market_id INTEGER NOT NULL REFERENCES markets(id),
|
||||||
user_id INTEGER NOT NULL REFERENCES users(id),
|
user_id INTEGER NOT NULL REFERENCES users(id),
|
||||||
quantity BIGINT NOT NULL,
|
quantity BIGINT NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue