study-lib-backend/API/Models/Subject.cs
2021-01-03 23:31:11 +01:00

36 lines
800 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 string EditedBy { 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; }
}
}