subreddit_approved_users table

The subreddit_approved_users table in the Reddit Clone Database Schema schema has 4 columns, with 3 foreign keys to subreddits and users.

The allow-list that makes a restricted or private community usable. It is also the AutoMod escape hatch: approved users bypass the age and karma gates.

Columns (4)

Columns of the subreddit_approved_users table
ColumnTypeConstraintsDescription
subreddit_iduuidnot null, references subreddits.id
user_iduuidnot null, references users.id
added_byuuidreferences users.id
added_attimestamptznot null

Indexes (1)

  • (user_id)

Relationships

  • subreddit_approved_users.subreddit_id references subreddits.id
  • subreddit_approved_users.user_id references users.id
  • subreddit_approved_users.added_by references users.id