This commit is contained in:
SpecialX
2025-06-27 19:03:10 +08:00
parent 14fbe6397a
commit a21ca80782
57 changed files with 3872 additions and 611 deletions

View File

@@ -31,16 +31,16 @@ namespace Entities.Contracts
public Guid AssignmentQuestionId { get; set; }
[Column("student_answer")]
public string StudentAnswer { get; set; }
public string? StudentAnswer { get; set; }
[Column("is_correct")]
public bool? IsCorrect { get; set; }
[Column("points_awarded")]
public float? PointsAwarded { get; set; }
public float? PointsAwarded { get; set; } // score
[Column("teacher_feedback")]
public string TeacherFeedback { get; set; }
public string? TeacherFeedback { get; set; }
[Column("created_at")]
public DateTime CreatedAt { get; set; }
@@ -54,8 +54,10 @@ namespace Entities.Contracts
[ForeignKey(nameof(StudentId))]
public User Student { get; set; }
[ForeignKey(nameof(SubmissionId))]
public Submission Submission { get; set; }
[ForeignKey(nameof(AssignmentQuestionId))]
public AssignmentQuestion AssignmentQuestion { get; set; }
public SubmissionDetail()