study-lib-backend/API/Models/Subject.cs
2020-12-23 23:35:08 +01:00

34 lines
746 B
C#

using StudyLib.API.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace StudyLib.Models
{
public class Subject
{
public long ID { get; set; }
[Required]
public string Name { get; set; }
public string LectureTeacher { get; set; }
public string LabTeacher { get; set; }
public bool MainExam { get; set; }
public long GroupId { get; set; }
public Group Group { get; set; }
public DateTime ExamDate { get; set; }
public ICollection<Test> Tests { get; set; }
public ICollection<Assignment> Assignments { get; set; }
public ICollection<Comment> Comments { get; set; }
}
}