This commit is contained in:
2026-07-25 15:30:46 +08:00 Unverified
parent 4e7da6709e
commit 9685435da9
7 changed files with 451 additions and 49 deletions
@@ -36,6 +36,7 @@ public sealed class CourseEnrollment : EntityBase
public Guid StudentId { get; set; }
public Student? Student { get; set; }
public CourseEnrollmentStatus Status { get; set; } = CourseEnrollmentStatus.Enrolled;
public EnrollmentType EnrollmentType { get; set; } = EnrollmentType.Normal;
public DateTime EnrolledAt { get; set; } = DateTime.UtcNow;
public DateTime? WithdrawnAt { get; set; }
}
@@ -52,3 +53,9 @@ public enum CourseEnrollmentStatus
Enrolled = 1,
Withdrawn = 2
}
public enum EnrollmentType
{
Normal = 1,
Retake = 2
}