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

38 lines
1.5 KiB
C#

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<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
UserId = table.Column<int>(type: "int", nullable: false, comment: "用户Id"),
ResourceId = table.Column<int>(type: "int", nullable: false, comment: "资源Id"),
Countdown = table.Column<int>(type: "int", nullable: false, comment: "倒计时"),
Interval = table.Column<int>(type: "int", nullable: false, comment: "间隔"),
IsMusic = table.Column<bool>(type: "bit", nullable: false, comment: "是否是音乐"),
CreateTime = table.Column<DateTime>(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");
}
}
}