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

@@ -50,14 +50,19 @@ namespace TechHelper.Server.Migrations
.HasColumnType("tinyint(1)")
.HasColumnName("deleted");
b.Property<string>("SubjectArea")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("subject_area");
b.Property<string>("Title")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("varchar(255)")
.HasColumnName("title");
b.Property<decimal?>("TotalPoints")
.HasColumnType("decimal(65,30)")
b.Property<float?>("TotalPoints")
.HasColumnType("float")
.HasColumnName("total_points");
b.Property<DateTime>("UpdatedAt")
@@ -218,10 +223,14 @@ namespace TechHelper.Server.Migrations
.HasColumnType("char(36)")
.HasColumnName("question_id");
b.Property<uint>("QuestionNumber")
.HasColumnType("int unsigned")
b.Property<byte>("QuestionNumber")
.HasColumnType("tinyint unsigned")
.HasColumnName("question_number");
b.Property<float?>("Score")
.HasColumnType("float")
.HasColumnName("score");
b.HasKey("Id");
b.HasIndex("AssignmentGroupId");
@@ -433,9 +442,9 @@ namespace TechHelper.Server.Migrations
.HasColumnType("longtext")
.HasColumnName("overall_feedback");
b.Property<decimal?>("OverallGrade")
b.Property<float?>("OverallGrade")
.HasPrecision(5, 2)
.HasColumnType("decimal(5,2)")
.HasColumnType("float")
.HasColumnName("overall_grade");
b.Property<string>("Status")
@@ -491,9 +500,9 @@ namespace TechHelper.Server.Migrations
.HasDefaultValue(false)
.HasColumnName("deleted");
b.Property<decimal?>("PointsAwarded")
b.Property<float?>("PointsAwarded")
.HasPrecision(5, 2)
.HasColumnType("decimal(5,2)")
.HasColumnType("float")
.HasColumnName("points_awarded");
b.Property<string>("StudentAnswer")
@@ -641,19 +650,19 @@ namespace TechHelper.Server.Migrations
b.HasData(
new
{
Id = new Guid("ab2f54ba-5885-423b-b854-93bc63f8e93e"),
Id = new Guid("ea0c88d8-1a52-4034-bb37-5a95043821eb"),
Name = "Student",
NormalizedName = "STUDENT"
},
new
{
Id = new Guid("d54985cb-1616-48fd-8687-00d9c38c900d"),
Id = new Guid("9de22e41-c096-4d5a-b55a-ce0122aa3ada"),
Name = "Teacher",
NormalizedName = "TEACHER"
},
new
{
Id = new Guid("e6af92bf-1745-458f-b5c6-b51458261aaf"),
Id = new Guid("dee718d9-b731-485f-96bb-a59ce777870f"),
Name = "Administrator",
NormalizedName = "ADMINISTRATOR"
});