exam_service

This commit is contained in:
SpecialX
2025-06-11 15:02:20 +08:00
parent 97843ab5fd
commit e26881ec2f
52 changed files with 3510 additions and 1174 deletions

View File

@@ -155,7 +155,7 @@ namespace TechHelper.Server.Migrations
.HasColumnType("char(36)")
.HasColumnName("id");
b.Property<Guid>("AssignmentId")
b.Property<Guid?>("AssignmentId")
.HasColumnType("char(36)")
.HasColumnName("assignment");
@@ -177,7 +177,7 @@ namespace TechHelper.Server.Migrations
b.Property<Guid?>("ParentGroup")
.HasColumnType("char(36)")
.HasColumnName("sub_group");
.HasColumnName("parent_group");
b.Property<string>("Title")
.IsRequired()
@@ -185,10 +185,14 @@ namespace TechHelper.Server.Migrations
.HasColumnType("longtext")
.HasColumnName("title");
b.Property<decimal?>("TotalPoints")
.HasColumnType("decimal(65,30)")
b.Property<float?>("TotalPoints")
.HasColumnType("float")
.HasColumnName("total_points");
b.Property<bool>("ValidQuestionGroup")
.HasColumnType("tinyint(1)")
.HasColumnName("valid_question_group");
b.HasKey("Id");
b.HasIndex("AssignmentId");
@@ -207,7 +211,7 @@ namespace TechHelper.Server.Migrations
b.Property<Guid>("AssignmentGroupId")
.HasColumnType("char(36)")
.HasColumnName("detail_id");
.HasColumnName("group_id");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
@@ -401,6 +405,10 @@ namespace TechHelper.Server.Migrations
.HasColumnType("datetime(6)")
.HasColumnName("updated_at");
b.Property<bool>("ValidQuestion")
.HasColumnType("tinyint(1)")
.HasColumnName("valid_question");
b.HasKey("Id");
b.HasIndex("CreatedBy");
@@ -650,19 +658,19 @@ namespace TechHelper.Server.Migrations
b.HasData(
new
{
Id = new Guid("ea0c88d8-1a52-4034-bb37-5a95043821eb"),
Id = new Guid("d4b41bc3-612e-49dd-aeda-6a98ea0e4e68"),
Name = "Student",
NormalizedName = "STUDENT"
},
new
{
Id = new Guid("9de22e41-c096-4d5a-b55a-ce0122aa3ada"),
Id = new Guid("b2e087e6-ea32-46c4-aeb3-09b936cd0cf4"),
Name = "Teacher",
NormalizedName = "TEACHER"
},
new
{
Id = new Guid("dee718d9-b731-485f-96bb-a59ce777870f"),
Id = new Guid("ba33e047-8354-4f2c-b8b1-1f46441c28fc"),
Name = "Administrator",
NormalizedName = "ADMINISTRATOR"
});
@@ -821,8 +829,7 @@ namespace TechHelper.Server.Migrations
b.HasOne("Entities.Contracts.Assignment", "Assignment")
.WithMany("AssignmentGroups")
.HasForeignKey("AssignmentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Entities.Contracts.AssignmentGroup", "ParentAssignmentGroup")
.WithMany("ChildAssignmentGroups")