using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentModels
{
    public class Subject
    {
        public int SubjectID { get; set; }

        [MaxLength(128), MinLength(1)]
        public String Name { get; set; }

        public int TeacherID { get; set; }
        public virtual Teacher Teacher { get; set; }

        public int GradeSystemID { get; set; }
        public virtual GradeSystem GradeSystem { get; set; }

        public virtual List<StudentInSubject> StudentInSubjects { get; set; }
    }
}
