assignment_submissions table

The assignment_submissions table in the Learning Management System Database Schema schema has 8 columns, keyed by id, with 2 foreign keys to assignments and enrollments. 2 columns in submission_files and rubric_scores reference it.

A resubmission is a new row with a higher attempt_number, never an edit. is_late is frozen at submit time against the due date that applied then.

Columns (8)

Columns of the assignment_submissions table
ColumnTypeConstraintsDescription
iduuidprimary key
assignment_iduuidnot null, references assignments.id
enrollment_iduuidnot null, references enrollments.id
attempt_numbersmallintnot null
statussubmission_statusnot null
bodytext
submitted_attimestamptz
is_latebooleannot null

Indexes (2)

  • (assignment_id, enrollment_id, attempt_number) unique
  • (assignment_id, status)

Relationships