CREATE TABLE IF NOT EXISTS reactions (
  message_id  uuid        NOT NULL REFERENCES messages (id) ON DELETE CASCADE,
  user_id     uuid        NOT NULL REFERENCES users (id) ON DELETE CASCADE,
  emoji       text        NOT NULL,
  created_at  timestamptz DEFAULT now(),
  PRIMARY KEY (message_id, user_id, emoji)
);
