namespace Domain.Entities;

public class Enrollment
{
    public int Id { get; private set; }
    public int StudentId { get; private set; }
    public Student Student { get; private set; } = null!;
    public int SubjectId { get; private set; }
    public Subject Subject { get; private set; } = null!;
    public DateTime EnrolledAt { get; private set; }

    private Enrollment() { }

    public Enrollment(int studentId, int subjectId)
    {
        StudentId = studentId;
        SubjectId = subjectId;
        EnrolledAt = DateTime.UtcNow;
    }
}
