// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SpaceTranslate.Database; #nullable disable namespace SpaceTranslate.Migrations { [DbContext(typeof(SpaceTranslateDb))] partial class SpaceTranslateDbModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.0"); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property("ClientSecret") .IsRequired() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("ServerUrl") .IsRequired() .HasColumnType("TEXT"); b.Property("SigningKey") .IsRequired() .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex(new[] { "ClientId" }, "IX_ClientId"); b.HasIndex(new[] { "ServerUrl" }, "IX_ServerUrl"); b.ToTable("Organizations"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("TEXT"); b.Property("OrganizationId") .HasColumnType("INTEGER"); b.Property("RefreshToken") .HasColumnType("TEXT"); b.Property("Scope") .HasMaxLength(2147483647) .HasColumnType("TEXT"); b.Property("UserId") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("OrganizationId"); b.ToTable("Users"); }); modelBuilder.Entity("SpaceTranslate.Database.User", b => { b.HasOne("SpaceTranslate.Database.Organization", "Organization") .WithMany("Users") .HasForeignKey("OrganizationId") .OnDelete(DeleteBehavior.ClientCascade) .IsRequired(); b.Navigation("Organization"); }); modelBuilder.Entity("SpaceTranslate.Database.Organization", b => { b.Navigation("Users"); }); #pragma warning restore 612, 618 } } }