diff options
author | Tim <contact@bytim.eu> | 2025-04-19 12:16:15 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-04-19 12:16:15 +0200 |
commit | ff9b1e112ed14746ed74dfff1fb4c19efd5502d4 (patch) | |
tree | 5ab9831c7be0c0ff344feb06e049115d6a58287a /VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs | |
parent | 4b2ad030fa381662f4b0c2464e97b0d2c5f6a716 (diff) | |
download | VPNAuth-ff9b1e112ed14746ed74dfff1fb4c19efd5502d4.tar.xz VPNAuth-ff9b1e112ed14746ed74dfff1fb4c19efd5502d4.zip |
Add user information settings
Diffstat (limited to 'VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs')
-rw-r--r-- | VPNAuth.Server/Migrations/20250419101300_AddUserInformationTable.cs | 40 |
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"); + } + } +} |