using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250514v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "N_AreaCategory", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), CategoryValue = table.Column(type: "int", nullable: false, comment: "类别枚举值"), CategoryName = table.Column(type: "nvarchar(100)", nullable: true, comment: "类别中文名称"), CategoryEnum = table.Column(type: "nvarchar(100)", nullable: true, comment: "类别枚举名称"), Area = table.Column(type: "nvarchar(100)", nullable: true, comment: "区域"), Duration = table.Column(type: "int", nullable: false, comment: "时长"), Remarks = table.Column(type: "text", nullable: true, comment: "备注") }, constraints: table => { table.PrimaryKey("PK_N_AreaCategory", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "N_AreaCategory"); } } }