study-lib-backend/API/Models/Subject.cs

36 lines
800 B
C#
Raw Normal View History

2020-12-12 14:47:20 +01:00
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; }
2021-01-03 23:31:11 +01:00
public string EditedBy { get; set; }
2020-12-12 14:47:20 +01:00
2020-12-23 23:35:08 +01:00
public long GroupId { get; set; }
public Group Group { get; set; }
2020-12-12 14:47:20 +01:00
public DateTime ExamDate { get; set; }
public ICollection<Test> Tests { get; set; }
public ICollection<Assignment> Assignments { get; set; }
public ICollection<Comment> Comments { get; set; }
}
}