summaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs')
-rw-r--r--VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs b/VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs
new file mode 100644
index 0000000..9d20a99
--- /dev/null
+++ b/VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs
@@ -0,0 +1,40 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace VPNAuth.Server.Migrations
+{
+ /// <inheritdoc />
+ public partial class AddUserInformationTable : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.CreateTable(
+ name: "UserInformation",
+ columns: table => new
+ {
+ Id = table.Column<int>(type: "INTEGER", nullable: false)
+ .Annotation("Sqlite:Autoincrement", true),
+ Sub = table.Column<string>(type: "TEXT", nullable: true),
+ Name = table.Column<string>(type: "TEXT", nullable: true),
+ GivenName = table.Column<string>(type: "TEXT", nullable: true),
+ FamilyName = table.Column<string>(type: "TEXT", nullable: true),
+ PreferredUsername = table.Column<string>(type: "TEXT", nullable: true),
+ Email = table.Column<string>(type: "TEXT", nullable: true),
+ Picture = table.Column<string>(type: "TEXT", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_UserInformation", x => x.Id);
+ });
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropTable(
+ name: "UserInformation");
+ }
+ }
+}