certificates table
The certificates table in the Learning Management System Database Schema schema has 8 columns, keyed by id, with 1 foreign key to enrollments.
The serial is the public verification handle. Revocation is a timestamp, never a delete, so an old certificate URL still resolves and says revoked.
Columns (8)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| enrollment_id | uuid | unique, not null, references enrollments.id | |
| serial | varchar(60) | unique, not null | |
| final_score | decimal(6,2) | ||
| issued_at | timestamptz | not null | |
| expires_at | timestamptz | ||
| revoked_at | timestamptz | ||
| verification_url | varchar(500) |
Indexes (1)
(serial)
Relationships
certificates.enrollment_idreferencesenrollments.id