users table
The users table in the Learning Management System Database Schema schema has 9 columns, keyed by id, with 1 foreign key to user_profiles. 11 columns in user_roles, course_instructors, cohort_members, enrollments and 7 more reference it.
One row per person regardless of role. A user can be a student in one course and an instructor in another.
Columns (9)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key, references user_profiles.user_id | |
| varchar(255) | unique, not null | ||
| username | varchar(60) | unique | |
| full_name | varchar(120) | not null | |
| timezone | varchar(60) | not null | |
| locale | varchar(10) | ||
| is_active | boolean | not null | |
| created_at | timestamptz | not null | |
| last_login_at | timestamptz |
Indexes (1)
(is_active, created_at)
Relationships
users.idreferencesuser_profiles.user_iduser_roles.user_idreferencesuserscourse_instructors.user_idreferencesuserscohort_members.user_idreferencesusersenrollments.user_idreferencesusersrubric_scores.scored_byreferencesusersgrades.graded_byreferencesuserslive_sessions.host_idreferencesusersdiscussions.created_byreferencesusersdiscussion_posts.author_idreferencesusersannouncements.author_idreferencesusersnotifications.user_idreferencesusers