discussion_posts table
The discussion_posts table in the Learning Management System Database Schema schema has 9 columns, keyed by id, with 3 foreign keys to discussions, users and discussion_posts.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| discussion_id | uuid | not null, references discussions.id | |
| author_id | uuid | not null, references users.id | |
| parent_post_id | uuid | references discussion_posts.id | |
| body | text | not null | |
| is_instructor_answer | boolean | not null | |
| created_at | timestamptz | not null | |
| edited_at | timestamptz | ||
| deleted_at | timestamptz |
Indexes (2)
(discussion_id, created_at)(parent_post_id)
Relationships
discussion_posts.discussion_idreferencesdiscussions.iddiscussion_posts.author_idreferencesusers.iddiscussion_posts.parent_post_idreferencesdiscussion_posts.id