YD_SmartSports.Api/VOL.Core/Migrations/20250514053326_20250514v1.cs

37 lines
1.5 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:55:14 +08:00
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<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
CategoryValue = table.Column<int>(type: "int", nullable: false, comment: "类别枚举值"),
CategoryName = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "类别中文名称"),
CategoryEnum = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "类别枚举名称"),
Area = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "区域"),
Duration = table.Column<int>(type: "int", nullable: false, comment: "时长"),
Remarks = table.Column<string>(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");
}
}
}