YD_WeChatApplet.Api/WeChatApplet/Migrations/20250429011706_20250429v1.cs
2025-06-06 14:57:20 +08:00

34 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class _20250429v1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "WCA_MyPlayList",
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: "资源类型"),
UserId = table.Column<int>(type: "int", nullable: false, comment: "用户Id"),
ResourceDetailsId = table.Column<int>(type: "int", nullable: false, comment: "资源详情Id")
},
constraints: table =>
{
table.PrimaryKey("PK_WCA_MyPlayList", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "WCA_MyPlayList");
}
}
}