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)

Columns of the multireddits table
ColumnTypeConstraintsDescription
iduuidprimary key
owner_iduuidnot null, references users.id
slugvarchar(50)not null
display_namevarchar(100)not null
description_mdvarchar(1000)
icon_urlvarchar(500)
is_publicbooleannot null
created_attimestamptznot null

Indexes (1)

  • (owner_id, slug) unique

Relationships