using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace YD_WeChatApplet.Api.Migrations { public partial class _20250310v5 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WCA_UserPreference", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), UserId = table.Column(type: "int", nullable: false, comment: "用户Id"), ResourceId = table.Column(type: "int", nullable: false, comment: "资源Id"), Countdown = table.Column(type: "int", nullable: false, comment: "倒计时"), Interval = table.Column(type: "int", nullable: false, comment: "间隔"), IsMusic = table.Column(type: "bit", nullable: false, comment: "是否是音乐"), CreateTime = table.Column(type: "datetime", nullable: false, comment: "创建时间") }, constraints: table => { table.PrimaryKey("PK_WCA_UserPreference", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WCA_UserPreference"); } } }