Skip to main content

LMS Completion Storage

Summary

Source-backed TrainingCompletion persistence reference.

Audience

Engineering, QA, architecture, product, and data-governance reviewers.

Reference Content

Completion is a tenant entity created as a side effect of enrollment completion. It stores its own identifier/timestamps, enrollment/course/subject references, a converted bounded result value, and completion time. Sensitive learning values are not reproduced.

A unique tenant-plus-enrollment index permits only one completion record for an enrollment within a tenant. Enrollment and course references are logical identifiers; no database foreign key or navigation is configured.

The endpoint changes enrollment state, creates completion, adds evidence and outbox intent, then calls SaveChanges once. These tracked local objects participate in the same DbContext save boundary. No standalone completion CRUD, correction history, delete behavior, or explicit transaction API is implemented.

Source References

  • microservices/src/training-service/Infrastructure/TrainingDbContext.cs
  • microservices/src/training-service/Domain/TrainingEntities.cs
  • microservices/src/training-service/Api/TrainingEndpoints.cs

See Also

Keywords

  • LMS database
  • Training persistence
  • Source-backed model

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-17
  • Review cycle: Quarterly