announcements table
The announcements table in the Learning Management System Database Schema schema has 7 columns, keyed by id, with 2 foreign keys to cohorts and users.
published_at null is a draft. Scheduling is the same column set to a future time.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| cohort_id | uuid | not null, references cohorts.id | |
| author_id | uuid | not null, references users.id | |
| title | varchar(255) | not null | |
| body | text | not null | |
| send_email | boolean | not null | |
| published_at | timestamptz |
Indexes (1)
(cohort_id, published_at)
Relationships
announcements.cohort_idreferencescohorts.idannouncements.author_idreferencesusers.id