feat: ✨ let database handles creation times
This commit is contained in:
parent
1e8d656711
commit
dca2abb62a
10 changed files with 22 additions and 22 deletions
|
@ -3,5 +3,5 @@ CREATE TABLE IF NOT EXISTS "comment_interaction"(
|
|||
comment_creation_time TIMESTAMPTZ NOT NULL REFERENCES "comment"(creation_time),
|
||||
interaction_id BIGSERIAL NOT NULL REFERENCES "interaction"(id),
|
||||
interactor_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
interaction_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE
|
||||
interaction_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE DEFAULT NOW()
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue