Skip to content

T008: [P] Create CertificateVerification entity #47

@Hemavathi15sg

Description

@Hemavathi15sg

Phase 2: Foundational

Task: T008
Status: Not Started
Story: Foundational (blocking all user stories)
Parallelizable: Yes - independent from T007, T009-T010

Description

Create CertificateVerification entity for verification audit trail tracking (rate limiting, analytics).

Acceptance Criteria

  • File created: api/CourseRegistration.Domain/Entities/CertificateVerification.cs
  • All 8 properties implemented (see data-model.md table):
    • VerificationId (Guid, PK)
    • CertificateId (Guid, FK)
    • VerificationTimestamp (datetime2, UTC)
    • VerifierIP (string, 1-45 chars)
    • VerificationMethod (enum: QRScan, URLDirect, API)
    • VerificationPathRequested (string, nullable)
    • WasValid (bit)
    • UserAgent (string, nullable)
    • CreatedUtc (datetime2)
    • IsDeleted (bit, soft delete)
  • IP address validation method implemented
  • Enum VerificationMethod properly defined
  • XML documentation on public members

Effort Estimate

2.5 hours

References

  • data-model.md: CertificateVerification Entity section

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions