diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/IEventWithMandatoryQualification.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/IEventWithMandatoryQualification.cs new file mode 100644 index 000000000..0e5bcbf3f --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/IEventWithMandatoryQualification.cs @@ -0,0 +1,8 @@ +using TeachingRecordSystem.Core.Events.Models; + +namespace TeachingRecordSystem.Core.Events; + +public interface IEventWithMandatoryQualification +{ + MandatoryQualification MandatoryQualification { get; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/MandatoryQualificationDeletedEvent.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/MandatoryQualificationDeletedEvent.cs new file mode 100644 index 000000000..ed7556d35 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/MandatoryQualificationDeletedEvent.cs @@ -0,0 +1,13 @@ +using TeachingRecordSystem.Core.Events.Models; +using File = TeachingRecordSystem.Core.Events.Models.File; + +namespace TeachingRecordSystem.Core.Events; + +public record MandatoryQualificationDeletedEvent : EventBase, IEventWithPersonId, IEventWithMandatoryQualification +{ + public required Guid PersonId { get; init; } + public required MandatoryQualification MandatoryQualification { get; init; } + public required string? DeletionReason { get; init; } + public required string? DeletionReasonDetail { get; init; } + public required File? EvidenceFile { get; init; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/File.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/File.cs new file mode 100644 index 000000000..4fa3d4bd6 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/File.cs @@ -0,0 +1,7 @@ +namespace TeachingRecordSystem.Core.Events.Models; + +public record File +{ + public required Guid FileId { get; init; } + public required string Name { get; init; } +} diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/MandatoryQualification.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/MandatoryQualification.cs new file mode 100644 index 000000000..15c3a6023 --- /dev/null +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/MandatoryQualification.cs @@ -0,0 +1,10 @@ +namespace TeachingRecordSystem.Core.Events.Models; + +public record MandatoryQualification +{ + public required Guid QualificationId { get; init; } + public required MandatoryQualificationSpecialism? Specialism { get; init; } + public required MandatoryQualificationStatus? Status { get; init; } + public required DateOnly? StartDate { get; init; } + public required DateOnly? EndDate { get; init; } +}