app.training_courses
TableRow level security on
A short training course (Section 4.9 Training) of lessons and quizzes, with completion records and expiry, linked to a role, a certification and a gate criterion.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org. A row never moves to another org.References app.organizations.id |
| title | text | No | Course title. |
| summary | text | Yes | What the course teaches. |
| role_code | text | Yes | Canon role the course trains for.References xpms.dim_role.role_code |
| certification_id | uuid | Yes | Org certification a passed course qualifies for.References app.certifications.id |
| gate_criterion_id | text | Yes | Canon gate criterion the course helps satisfy.References xpms.dim_gate_criterion.criterion_id |
| validity_days | integer | Yes | Days a completion stays current; NULL never expires. |
| pass_percent | smallint | No | Quiz score needed to pass, in percent. |
| estimated_minutes | smallint | Yes | Expected time to complete. |
| course_state | app.training_course_state | No | Draft, Published or Retired. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |