live_thread_updates table
The live_thread_updates table in the Reddit Clone Database Schema schema has 6 columns, keyed by id, with 2 foreign keys to live_threads and users.
is_stricken rather than a delete, because retracting an update during a breaking event must leave the correction visible.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| live_thread_id | uuid | not null, references live_threads.id | |
| author_id | uuid | references users.id | |
| body_md | text | not null | |
| is_stricken | boolean | not null | |
| created_at | timestamptz | not null |
Indexes (1)
(live_thread_id, created_at)
Relationships
live_thread_updates.live_thread_idreferenceslive_threads.idlive_thread_updates.author_idreferencesusers.id