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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| gradebook_item_id | uuid | not null, references gradebook_items.id | |
| enrollment_id | uuid | not null, references enrollments.id | |
| points | decimal(6,2) | ||
| status | grade_status | not null | |
| feedback | text | ||
| graded_by | uuid | references users.id | |
| graded_at | timestamptz | ||
| published_at | timestamptz |
Indexes (2)
(gradebook_item_id, enrollment_id)unique(enrollment_id, status)
Relationships
grades.gradebook_item_idreferencesgradebook_items.idgrades.enrollment_idreferencesenrollments.idgrades.graded_byreferencesusers.id