comment, interaction db
This commit is contained in:
parent
ee9015c1e3
commit
60d18771d7
17 changed files with 184 additions and 32 deletions
7
migrations/20241204225151_create_comment_table.up.sql
Normal file
7
migrations/20241204225151_create_comment_table.up.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS "comment"(
|
||||
post_creation_time TIMESTAMPTZ NOT NULL REFERENCES "post"(creation_time),
|
||||
creation_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE,
|
||||
commenter_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
comment VARCHAR NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue