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