mod_notes table

The mod_notes table in the Reddit Clone Database Schema schema has 9 columns, keyed by id, with 3 foreign keys to subreddits and users.

Private per-user notes a mod team keeps on someone, with an optional label that shows as a badge next to their name. This is the institutional memory that stops a team re-litigating the same person every six months, and it is deliberately invisible to the user.

Columns (9)

Columns of the mod_notes table
ColumnTypeConstraintsDescription
iduuidprimary key
subreddit_iduuidnot null, references subreddits.id
user_iduuidnot null, references users.id
moderator_iduuidnot null, references users.id
labelmod_note_label
notevarchar(1000)not null
content_typecontent_type
content_iduuid
created_attimestamptznot null

Indexes (1)

  • (subreddit_id, user_id, created_at)

Relationships