conversation_participants table
The conversation_participants table in the Social Media Database Schema schema has 6 columns, with 2 foreign keys to conversations and users.
left_at null means currently in the thread. Keeping the row preserves who saw what before they left.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| conversation_id | uuid | not null, references conversations.id | |
| user_id | uuid | not null, references users.id | |
| joined_at | timestamptz | not null | |
| left_at | timestamptz | ||
| is_admin | boolean | not null | |
| muted_until | timestamptz |
Indexes (1)
(user_id, left_at)
Relationships
conversation_participants.conversation_idreferencesconversations.idconversation_participants.user_idreferencesusers.id