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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| subreddit_id | uuid | not null, references subreddits.id | |
| user_id | uuid | not null, references users.id | |
| added_by | uuid | references users.id | |
| added_at | timestamptz | not null |
Indexes (1)
(user_id)
Relationships
subreddit_approved_users.subreddit_idreferencessubreddits.idsubreddit_approved_users.user_idreferencesusers.idsubreddit_approved_users.added_byreferencesusers.id