grades table

The grades table in the Learning Management System Database Schema schema has 9 columns, keyed by id, with 3 foreign keys to gradebook_items, enrollments and users.

One cell of the gradebook. published_at null means the instructor can still see it but the learner cannot.

Columns (9)

Columns of the grades table
ColumnTypeConstraintsDescription
iduuidprimary key
gradebook_item_iduuidnot null, references gradebook_items.id
enrollment_iduuidnot null, references enrollments.id
pointsdecimal(6,2)
statusgrade_statusnot null
feedbacktext
graded_byuuidreferences users.id
graded_attimestamptz
published_attimestamptz

Indexes (2)

  • (gradebook_item_id, enrollment_id) unique
  • (enrollment_id, status)

Relationships