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

    UNIQUE (comment_id, user_id)
);

CREATE INDEX idx_comment_likes_lookup ON comment_likes (user_id, comment_id);