YD_WeChatApplet.Api/WeChatApplet/Migrations/20250409015050_20250409v1.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2025-06-06 14:57:20 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class _20250409v1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "WCA_BackgroundMusic",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
ResourceType = table.Column<int>(type: "int", nullable: false, comment: "资源类型[1:音乐/2:节拍]"),
Name = table.Column<string>(type: "nvarchar(200)", nullable: false, comment: "名称"),
Url = table.Column<string>(type: "nvarchar(2000)", nullable: false, comment: "资源地址")
},
constraints: table =>
{
table.PrimaryKey("PK_WCA_BackgroundMusic", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "WCA_BackgroundMusic");
}
}
}