UI
Some checks failed
Tech / explore-gitea-actions (push) Has been cancelled

This commit is contained in:
SpecialX
2025-08-31 11:29:26 +08:00
parent 017cc2169c
commit c59762a392
65 changed files with 3996 additions and 330 deletions

View File

@@ -50,10 +50,17 @@ namespace TechHelper.Server.Migrations
.HasColumnType("char(36)")
.HasColumnName("exam_struct_id");
b.Property<byte>("ExamType")
.HasColumnType("tinyint unsigned");
b.Property<bool>("IsDeleted")
.HasColumnType("tinyint(1)")
.HasColumnName("deleted");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("longtext");
b.Property<float>("Score")
.HasColumnType("float")
.HasColumnName("score");
@@ -504,6 +511,9 @@ namespace TechHelper.Server.Migrations
.HasColumnType("tinyint unsigned")
.HasColumnName("attempt_number");
b.Property<byte>("ErrorQuesNum")
.HasColumnType("tinyint unsigned");
b.Property<DateTime?>("GradedAt")
.HasColumnType("datetime(6)")
.HasColumnName("graded_at");
@@ -540,6 +550,12 @@ namespace TechHelper.Server.Migrations
.HasColumnType("datetime(6)")
.HasColumnName("submission_time");
b.Property<byte>("TotalQuesNum")
.HasColumnType("tinyint unsigned");
b.Property<byte>("TotalScore")
.HasColumnType("tinyint unsigned");
b.HasKey("Id");
b.HasIndex("AssignmentId");
@@ -755,19 +771,19 @@ namespace TechHelper.Server.Migrations
b.HasData(
new
{
Id = new Guid("6d49bb08-97d6-4a38-88a7-8080925b589b"),
Id = new Guid("df89b9a0-65ef-42dd-b2cb-e59997a72e70"),
Name = "Student",
NormalizedName = "STUDENT"
},
new
{
Id = new Guid("e330c745-f422-43e3-bcdf-1439ace3c52f"),
Id = new Guid("0775702a-5db7-4747-94d0-4376fad2b58b"),
Name = "Teacher",
NormalizedName = "TEACHER"
},
new
{
Id = new Guid("379143a2-8d7f-4ef7-b7c0-14701b710f87"),
Id = new Guid("37f41430-0cb7-44e5-988b-976200bd602d"),
Name = "Administrator",
NormalizedName = "ADMINISTRATOR"
});