public class Student : EntityBase
{
public BaseUser User { get; set; }
public int DepartmentID { get; set; }
public Department Major { get; set; }
public Teacher Advisor { get; set; }
public List<Enrollment> Enrollments { get; set; }
public List<Grade> Grades { get; set; }
[Required, MaxLength(100)]
public string FirstName { get; set; }
[Required, MaxLength(100)]
public string LastName { get; set; }
public DateTime DoB { get; set; }
[Phone]
public string Phone { get; set; }
[EmailAddress]
public string Email { get; set; }
public Student()
{
Enrollments = new List<Enrollment>();
Grades = new List<Grade>();
}
}