study-lib-backend/API/Models/Subject.cs
2020-12-12 14:47:20 +01:00

30 lines
661 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 DateTime ExamDate { get; set; }
public ICollection<Test> Tests { get; set; }
public ICollection<Assignment> Assignments { get; set; }
public ICollection<Comment> Comments { get; set; }
}
}