2024-12-05 02:21:20 +03:00
|
|
|
-- Add up migration script here
|
|
|
|
CREATE TABLE IF NOT EXISTS "comment_interaction"(
|
2024-12-16 01:20:10 +03:00
|
|
|
interaction_time TIMESTAMPTZ PRIMARY KEY NOT NULL UNIQUE DEFAULT NOW(),
|
2024-12-05 02:21:20 +03:00
|
|
|
comment_creation_time TIMESTAMPTZ NOT NULL REFERENCES "comment"(creation_time),
|
2025-01-19 23:47:09 +03:00
|
|
|
user_id BIGSERIAL NOT NULL REFERENCES "user"(user_id),
|
2024-12-16 01:20:10 +03:00
|
|
|
interaction_id BIGSERIAL NOT NULL REFERENCES "interaction"(id)
|
2025-01-19 23:47:09 +03:00
|
|
|
);
|