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(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), AreaCategoryId = table.Column(type: "int", nullable: false, comment: "区域项目Id"), GradeId = table.Column(type: "int", nullable: false, comment: "年级Id"), Sex = table.Column(type: "int", nullable: false, comment: "性别"), CategoryEnum = table.Column(type: "nvarchar(100)", nullable: true, comment: "类别名称"), Rank = table.Column(type: "nvarchar(100)", nullable: true, comment: "等级"), Score = table.Column(type: "float", nullable: false, comment: "得分"), MinValue = table.Column(type: "float", nullable: false, comment: "标准值(小)"), MaxValue = table.Column(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"); } } }