This commit is contained in:
SpecialX
2025-05-30 12:46:55 +08:00
parent 95daf9471b
commit e824c081bf
35 changed files with 1800 additions and 363 deletions

View File

@@ -23,12 +23,15 @@ namespace Entities.Contracts
[Column("description")]
public string Description { get; set; }
[Column("subject_area")]
public string SubjectArea { get; set; }
[Required]
[Column("due_date")]
public DateTime DueDate { get; set; }
[Column("total_points")]
public decimal? TotalPoints { get; set; }
public float? TotalPoints { get; set; }
[Column("created_by")]
[ForeignKey("Creator")]

View File

@@ -23,11 +23,14 @@ namespace Entities.Contracts
[Required]
[Column("question_number")]
public uint QuestionNumber { get; set; }
public byte QuestionNumber { get; set; }
[Column("created_at")]
public DateTime CreatedAt { get; set; }
[Column("score")]
public float? Score { get; set; }
[Required]
[Column("detail_id")]
[ForeignKey("AssignmentGroup")]

View File

@@ -34,8 +34,7 @@ namespace Entities.Contracts
public DateTime SubmissionTime { get; set; }
[Column("overall_grade")]
[Precision(5, 2)]
public decimal? OverallGrade { get; set; }
public float? OverallGrade { get; set; }
[Column("overall_feedback")]
public string OverallFeedback { get; set; }

View File

@@ -38,8 +38,7 @@ namespace Entities.Contracts
public bool? IsCorrect { get; set; }
[Column("points_awarded")]
[Precision(5, 2)]
public decimal? PointsAwarded { get; set; }
public float? PointsAwarded { get; set; }
[Column("teacher_feedback")]
public string TeacherFeedback { get; set; }