YD_WeChatApplet.Api/WeChatApplet/Migrations/20250414072438_20250414v3.cs

35 lines
1.3 KiB
C#
Raw Permalink Normal View History

2025-06-06 14:57:20 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class _20250414v3 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "User_Auth",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
Role_Id = table.Column<int>(type: "int", nullable: false, comment: "角色Id"),
Self_Id = table.Column<int>(type: "int", nullable: false, comment: "自身Id"),
Bind_Id = table.Column<int>(type: "int", nullable: false, comment: "绑定Id"),
Token = table.Column<string>(type: "nvarchar(max)", nullable: false, comment: "Token")
},
constraints: table =>
{
table.PrimaryKey("PK_User_Auth", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "User_Auth");
}
}
}