multireddits table
The multireddits table in the Reddit Clone Database Schema schema has 8 columns, keyed by id, with 1 foreign key to users. 1 column in multireddit_subreddits references it.
The feature every Reddit clone forgets. A multireddit is a named bag of subreddits that produces its own listing, which is trivial to model precisely because the feed is computed rather than materialised.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| owner_id | uuid | not null, references users.id | |
| slug | varchar(50) | not null | |
| display_name | varchar(100) | not null | |
| description_md | varchar(1000) | ||
| icon_url | varchar(500) | ||
| is_public | boolean | not null | |
| created_at | timestamptz | not null |
Indexes (1)
(owner_id, slug)unique
Relationships
multireddits.owner_idreferencesusers.idmultireddit_subreddits.multireddit_idreferencesmultireddits