39 lines
1.7 KiB
C#
39 lines
1.7 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class _20250514v3 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "N_AreaStandards",
|
|||
|
columns: table => new
|
|||
|
{
|
|||
|
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
|
|||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|||
|
AreaCategoryId = table.Column<int>(type: "int", nullable: false, comment: "区域项目Id"),
|
|||
|
GradeId = table.Column<int>(type: "int", nullable: false, comment: "年级Id"),
|
|||
|
Sex = table.Column<int>(type: "int", nullable: false, comment: "性别"),
|
|||
|
CategoryEnum = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "类别名称"),
|
|||
|
Rank = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "等级"),
|
|||
|
Score = table.Column<double>(type: "float", nullable: false, comment: "得分"),
|
|||
|
MinValue = table.Column<double>(type: "float", nullable: false, comment: "标准值(小)"),
|
|||
|
MaxValue = table.Column<double>(type: "float", nullable: false, comment: "标准值(大)")
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("PK_N_AreaStandards", x => x.Id);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "N_AreaStandards");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|