session_attendance table
The session_attendance table in the Learning Management System Database Schema schema has 5 columns, with 2 foreign keys to live_sessions and enrollments.
minutes_attended is stored rather than derived, because a learner can join and leave several times.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| session_id | uuid | not null, references live_sessions.id | |
| enrollment_id | uuid | not null, references enrollments.id | |
| joined_at | timestamptz | ||
| left_at | timestamptz | ||
| minutes_attended | integer | not null |
Relationships
session_attendance.session_idreferenceslive_sessions.idsession_attendance.enrollment_idreferencesenrollments.id