Add orders.created_at column

This commit is contained in:
ekzyis 2024-08-26 16:15:51 -05:00
parent 215a9fb3b6
commit 74aa41d5f4
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ CREATE TABLE markets(
CREATE TABLE orders(
id SERIAL PRIMARY KEY,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
market_id INTEGER NOT NULL REFERENCES markets(id),
user_id INTEGER NOT NULL REFERENCES users(id),
quantity BIGINT NOT NULL,