diff options
author | Tim <contact@bytim.eu> | 2025-04-18 12:25:59 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-04-18 12:25:59 +0200 |
commit | 4b2ad030fa381662f4b0c2464e97b0d2c5f6a716 (patch) | |
tree | dcc6af3136764322bd779110dcedd35e293d583c /VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs | |
download | VPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.tar.xz VPNAuth-4b2ad030fa381662f4b0c2464e97b0d2c5f6a716.zip |
Initial commit
Diffstat (limited to 'VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs')
-rw-r--r-- | VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs b/VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs new file mode 100644 index 0000000..57eda44 --- /dev/null +++ b/VPNAuth.Server/Migrations/20250418102156_DbInit.Designer.cs @@ -0,0 +1,91 @@ +// <auto-generated /> +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using VPNAuth.Server.Database; + +#nullable disable + +namespace VPNAuth.Server.Migrations +{ + [DbContext(typeof(Database.Database))] + [Migration("20250418102156_DbInit")] + partial class DbInit + { + /// <inheritdoc /> + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "9.0.4"); + + modelBuilder.Entity("VPNAuth.Server.Database.AccessToken", b => + { + b.Property<int>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property<string>("ClientId") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<DateTime>("CreationTime") + .HasColumnType("TEXT"); + + b.PrimitiveCollection<string>("Scopes") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("Token") + .IsRequired() + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("AccessTokens"); + }); + + modelBuilder.Entity("VPNAuth.Server.Database.AuthRequest", b => + { + b.Property<int>("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property<bool>("Accepted") + .HasColumnType("INTEGER"); + + b.Property<string>("ClientId") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("Code") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("CodeChallenge") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("CodeChallengeMethod") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<DateTime>("InitTime") + .HasColumnType("TEXT"); + + b.PrimitiveCollection<string>("Scopes") + .IsRequired() + .HasColumnType("TEXT"); + + b.Property<string>("State") + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("AuthRequests"); + }); +#pragma warning restore 612, 618 + } + } +} |