using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VPNAuth.Server.Migrations
{
///
public partial class AddUserInformationTable : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "UserInformation",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Sub = table.Column(type: "TEXT", nullable: true),
Name = table.Column(type: "TEXT", nullable: true),
GivenName = table.Column(type: "TEXT", nullable: true),
FamilyName = table.Column(type: "TEXT", nullable: true),
PreferredUsername = table.Column(type: "TEXT", nullable: true),
Email = table.Column(type: "TEXT", nullable: true),
Picture = table.Column(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_UserInformation", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "UserInformation");
}
}
}