crowd_control_settings table
The crowd_control_settings table in the Reddit Clone Database Schema schema has 9 columns, keyed by subreddit_id, with 1 foreign key to users. 1 column in subreddits references it.
Crowd control collapses rather than removes, which is why comments.is_collapsed exists as stored state. The whole point is to dampen a brigade without giving a moderator a thousand things to review.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| subreddit_id | uuid | primary key | |
| level | crowd_control_level | not null | |
| collapse_below_score | smallint | not null | |
| filter_non_subscribers | boolean | not null | |
| filter_new_accounts | boolean | not null | |
| filter_negative_karma | boolean | not null | |
| require_verified_email | boolean | not null | |
| updated_by | uuid | references users.id | |
| updated_at | timestamptz | not null |
Relationships
crowd_control_settings.updated_byreferencesusers.idsubreddits.idreferencescrowd_control_settings