34 lines
1.2 KiB
C#
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|