change
This commit is contained in:
@@ -12,7 +12,7 @@ using TechHelper.Context;
|
||||
namespace TechHelper.Server.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationContext))]
|
||||
[Migration("20250520094348_init")]
|
||||
[Migration("20250528090233_init")]
|
||||
partial class init
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@@ -53,14 +53,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")
|
||||
@@ -221,10 +226,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");
|
||||
@@ -436,9 +445,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")
|
||||
@@ -494,9 +503,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")
|
||||
@@ -644,19 +653,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"
|
||||
});
|
@@ -207,8 +207,10 @@ namespace TechHelper.Server.Migrations
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
description = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
subject_area = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
due_date = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
total_points = table.Column<decimal>(type: "decimal(65,30)", nullable: true),
|
||||
total_points = table.Column<float>(type: "float", nullable: true),
|
||||
created_by = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
created_at = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
updated_at = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
@@ -360,7 +362,7 @@ namespace TechHelper.Server.Migrations
|
||||
student_id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
attempt_number = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
submission_time = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
overall_grade = table.Column<decimal>(type: "decimal(5,2)", precision: 5, scale: 2, nullable: true),
|
||||
overall_grade = table.Column<float>(type: "float", precision: 5, scale: 2, nullable: true),
|
||||
overall_feedback = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
graded_by = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
@@ -480,8 +482,9 @@ namespace TechHelper.Server.Migrations
|
||||
{
|
||||
id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
question_id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
question_number = table.Column<uint>(type: "int unsigned", nullable: false),
|
||||
question_number = table.Column<byte>(type: "tinyint unsigned", nullable: false),
|
||||
created_at = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
score = table.Column<float>(type: "float", nullable: true),
|
||||
detail_id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
deleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false)
|
||||
},
|
||||
@@ -514,7 +517,7 @@ namespace TechHelper.Server.Migrations
|
||||
student_answer = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
is_correct = table.Column<bool>(type: "tinyint(1)", nullable: true),
|
||||
points_awarded = table.Column<decimal>(type: "decimal(5,2)", precision: 5, scale: 2, nullable: true),
|
||||
points_awarded = table.Column<float>(type: "float", precision: 5, scale: 2, nullable: true),
|
||||
teacher_feedback = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
created_at = table.Column<DateTime>(type: "datetime(6)", nullable: false)
|
||||
@@ -551,9 +554,9 @@ namespace TechHelper.Server.Migrations
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Name", "NormalizedName" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ new Guid("ab2f54ba-5885-423b-b854-93bc63f8e93e"), null, "Student", "STUDENT" },
|
||||
{ new Guid("d54985cb-1616-48fd-8687-00d9c38c900d"), null, "Teacher", "TEACHER" },
|
||||
{ new Guid("e6af92bf-1745-458f-b5c6-b51458261aaf"), null, "Administrator", "ADMINISTRATOR" }
|
||||
{ new Guid("9de22e41-c096-4d5a-b55a-ce0122aa3ada"), null, "Teacher", "TEACHER" },
|
||||
{ new Guid("dee718d9-b731-485f-96bb-a59ce777870f"), null, "Administrator", "ADMINISTRATOR" },
|
||||
{ new Guid("ea0c88d8-1a52-4034-bb37-5a95043821eb"), null, "Student", "STUDENT" }
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
@@ -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"
|
||||
});
|
||||
|
Reference in New Issue
Block a user