2024-12-05 01:57:47 +03:00
|
|
|
-- Add up migration script here
|
|
|
|
CREATE TABLE IF NOT EXISTS "comment"(
|
|
|
|
post_creation_time TIMESTAMPTZ NOT NULL REFERENCES "post"(creation_time),
|
2024-12-05 02:30:51 +03:00
|
|
|
creation_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE DEFAULT NOW(),
|
2024-12-05 01:57:47 +03:00
|
|
|
commenter_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
|
|
|
comment VARCHAR NOT NULL
|
|
|
|
);
|