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(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), ResourceType = table.Column(type: "int", nullable: false, comment: "资源类型[1:音乐/2:节拍]"), Name = table.Column(type: "nvarchar(200)", nullable: false, comment: "名称"), Url = table.Column(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"); } } }