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)

Columns of the announcements table
ColumnTypeConstraintsDescription
iduuidprimary key
cohort_iduuidnot null, references cohorts.id
author_iduuidnot null, references users.id
titlevarchar(255)not null
bodytextnot null
send_emailbooleannot null
published_attimestamptz

Indexes (1)

  • (cohort_id, published_at)

Relationships