Thinking of the topic_links table?
discourse/app/models/topic_link.rb at main · discourse/discourse · GitHub