// 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 { /// 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("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property("CreationTime") .HasColumnType("TEXT"); b.PrimitiveCollection("Scopes") .IsRequired() .HasColumnType("TEXT"); b.Property("Token") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("AccessTokens"); }); modelBuilder.Entity("VPNAuth.Server.Database.AuthRequest", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Accepted") .HasColumnType("INTEGER"); b.Property("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property("Code") .IsRequired() .HasColumnType("TEXT"); b.Property("CodeChallenge") .IsRequired() .HasColumnType("TEXT"); b.Property("CodeChallengeMethod") .IsRequired() .HasColumnType("TEXT"); b.Property("InitTime") .HasColumnType("TEXT"); b.PrimitiveCollection("Scopes") .IsRequired() .HasColumnType("TEXT"); b.Property("State") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("AuthRequests"); }); #pragma warning restore 612, 618 } } }