Skip to content

T015: [P] Create ICertificateAuditLogRepository interface #50

@Hemavathi15sg

Description

@Hemavathi15sg

Phase 2: Foundational

Task: T015
Status: Not Started
Story: Foundational (blocking all user stories)
Parallelizable: Yes - interface definition only

Description

Create CertificateAuditLog repository interface for immutable event log operations.

Acceptance Criteria

  • File created: api/CourseRegistration.Infrastructure/Repositories/ICertificateAuditLogRepository.cs
  • Interface methods defined:
    • Task AddAsync(CertificateAuditLog auditEntry)
    • Task<List> GetByCertificateIdAsync(Guid certificateId)
    • Task<List> GetByEventTypeAsync(AuditEventType eventType)
    • Task<List> GetByAdminIdAsync(int adminId)
  • All methods are async
  • Insert-only pattern: no Update/Delete methods in interface
  • Soft delete pattern included (WHERE IsDeleted = 0)
  • XML documentation

Effort Estimate

1 hour

References

  • plan.md: Project Structure (Repositories)
  • data-model.md: CertificateAuditLog Entity

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