CREATE TABLE comment_likes
(
    comment_id BIGINT      NOT NULL,
    user_id    BIGINT      NOT NULL,
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),

    PRIMARY KEY (comment_id, user_id)
);

CREATE INDEX idx_comment_likes_lookup ON comment_likes (user_id, comment_id);