live_threads table

The live_threads table in the Reddit Clone Database Schema schema has 9 columns, keyed by id, with 1 foreign key to users. 2 columns in live_thread_updates and live_thread_contributors reference it.

A running event feed that is deliberately not a post: updates arrive faster than voting makes sense, so there are no scores here at all.

Columns (9)

Columns of the live_threads table
ColumnTypeConstraintsDescription
iduuidprimary key
titlevarchar(200)not null
description_mdvarchar(1000)
created_byuuidreferences users.id
statelive_thread_statenot null
is_nsfwbooleannot null
viewer_countintegernot null
created_attimestamptznot null
closed_attimestamptz

Indexes (1)

  • (state, created_at)

Relationships