initial commit from an older template
This commit is contained in:
29
Models/Database/Instruction.cs
Normal file
29
Models/Database/Instruction.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GamificationService.Models.Database;
|
||||
|
||||
public class Instruction
|
||||
{
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Title is required")]
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
public long CategoryId { get; set; }
|
||||
[Required(ErrorMessage = "Category must be specified")]
|
||||
public InstructionCategory Category { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<InstructionParagraph> Paragraphs { get; set; }
|
||||
|
||||
public long? InstructionTestId { get; set; }
|
||||
public InstructionTest? InstructionTest { get; set; }
|
||||
|
||||
public DateTime? AssignDate { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public DateTime? DeadlineDate { get; set; }
|
||||
|
||||
public bool IsEnabled { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user