trending_subreddits table

The trending_subreddits table in the Reddit Clone Database Schema schema has 5 columns, with 1 foreign key to subreddits.

A daily snapshot rather than a live computation, so the trending list is stable for everyone who loads the page on the same day.

Columns (5)

Columns of the trending_subreddits table
ColumnTypeConstraintsDescription
subreddit_iduuidnot null, references subreddits.id
ranked_ondatenot null
positionsmallintnot null
growth_ratedoublenot null
sourcetrending_sourcenot null

Indexes (1)

  • (subreddit_id)

Relationships