subreddit_topics table

The subreddit_topics table in the Reddit Clone Database Schema schema has 3 columns, with 2 foreign keys to subreddits and topics.

Columns (3)

Columns of the subreddit_topics table
ColumnTypeConstraintsDescription
subreddit_iduuidnot null, references subreddits.id
topic_iduuidnot null, references topics.id
is_primarybooleannot null

Indexes (1)

  • (topic_id)

Relationships