dotnet/space-translate/SpaceTranslate/Migrations/SpaceTranslateDbModelSnapshot.cs (81 lines of code) (raw):

// <auto-generated /> 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<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("ClientSecret") .IsRequired() .HasColumnType("TEXT"); b.Property<DateTimeOffset>("Created") .HasColumnType("TEXT"); b.Property<string>("ServerUrl") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("SigningKey") .IsRequired() .HasColumnType("TEXT"); b.Property<string>("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<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property<DateTimeOffset>("Created") .HasColumnType("TEXT"); b.Property<int>("OrganizationId") .HasColumnType("INTEGER"); b.Property<string>("RefreshToken") .HasColumnType("TEXT"); b.Property<string>("Scope") .HasMaxLength(2147483647) .HasColumnType("TEXT"); b.Property<string>("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 } } }