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

26 lines
511 B
C#
Raw Normal View History

2020-12-12 14:47:20 +01:00
using System;
using System.ComponentModel.DataAnnotations;
namespace StudyLib.Models
{
public class Assignment
{
public long ID { get; set; }
[Required]
public string Name { get; set; }
[Required]
public DateTime Deadline { get; set; }
[Required]
public string Description { get; set; }
public double FinalMarkPercent { get; set; }
public long SubjectId { get; set; }
public Subject Subject { get; set; }
}
}