report_reasons table
The report_reasons table in the Reddit Clone Database Schema schema has 6 columns, keyed by id, with 1 foreign key to subreddits. 1 column in reports references it.
Custom report reasons per community, sitting alongside the fixed report_reason enum. The enum is the site vocabulary that admins depend on; these rows are what a community writes for itself.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| subreddit_id | uuid | references subreddits.id | |
| code | varchar(60) | not null | |
| label | varchar(200) | not null | |
| is_site_wide | boolean | not null | |
| position | smallint | not null |
Indexes (1)
(subreddit_id, position)
Relationships
report_reasons.subreddit_idreferencessubreddits.idreports.report_reason_idreferencesreport_reasons