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(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), Role_Id = table.Column(type: "int", nullable: false, comment: "角色Id"), Self_Id = table.Column(type: "int", nullable: false, comment: "自身Id"), Bind_Id = table.Column(type: "int", nullable: false, comment: "绑定Id"), Token = table.Column(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"); } } }