重构试卷相关内容

This commit is contained in:
SpecialX
2025-06-13 19:01:32 +08:00
parent b77ed0b30f
commit bcf351ff25
23 changed files with 980 additions and 84 deletions

View File

@@ -29,6 +29,9 @@ namespace Entities.Contracts
[MaxLength(65535)]
public string CorrectAnswer { get; set; }
[Column("question_group_id")]
public Guid? QuestionGroupId { get; set; }
[Column("difficulty_level")]
[MaxLength(10)]
public DifficultyLevel DifficultyLevel { get; set; }
@@ -36,6 +39,9 @@ namespace Entities.Contracts
[Column("subject_area")]
public SubjectAreaEnum SubjectArea { get; set; }
[Column("options")]
public string? Options { get; set; }
[Required]
[Column("created_by")]
[ForeignKey("Creator")]
@@ -55,6 +61,7 @@ namespace Entities.Contracts
// Navigation Properties
public User Creator { get; set; }
public QuestionGroup QuestionGroup { get; set; }
public ICollection<AssignmentQuestion> AssignmentQuestions { get; set; }
public Question()