feat: ✨ post routing
This commit is contained in:
parent
e167b864ee
commit
dc849dd970
15 changed files with 185 additions and 26 deletions
|
@ -2,6 +2,6 @@
|
|||
CREATE TABLE IF NOT EXISTS "comment"(
|
||||
post_creation_time TIMESTAMPTZ NOT NULL REFERENCES "post"(creation_time),
|
||||
creation_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE DEFAULT NOW(),
|
||||
commenter_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
comment VARCHAR NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue