// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Pal.Client.Database; #nullable disable namespace Pal.Client.Database.Migrations { [DbContext(typeof(PalClientContext))] partial class PalClientContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.3"); modelBuilder.Entity("ClientLocationImportHistory", b => { b.Property("ImportedById") .HasColumnType("TEXT"); b.Property("ImportedLocationsLocalId") .HasColumnType("INTEGER"); b.HasKey("ImportedById", "ImportedLocationsLocalId"); b.HasIndex("ImportedLocationsLocalId"); b.ToTable("LocationImports", (string)null); }); modelBuilder.Entity("Pal.Client.Database.ClientLocation", b => { b.Property("LocalId") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Imported") .HasColumnType("INTEGER"); b.Property("Seen") .HasColumnType("INTEGER"); b.Property("SinceVersion") .IsRequired() .HasColumnType("TEXT"); b.Property("TerritoryType") .HasColumnType("INTEGER"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("X") .HasColumnType("REAL"); b.Property("Y") .HasColumnType("REAL"); b.Property("Z") .HasColumnType("REAL"); b.HasKey("LocalId"); b.ToTable("Locations"); }); modelBuilder.Entity("Pal.Client.Database.ImportHistory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("ExportedAt") .HasColumnType("TEXT"); b.Property("ImportedAt") .HasColumnType("TEXT"); b.Property("RemoteUrl") .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Imports"); }); modelBuilder.Entity("Pal.Client.Database.RemoteEncounter", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("AccountId") .IsRequired() .HasMaxLength(13) .HasColumnType("TEXT"); b.Property("ClientLocationId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ClientLocationId"); b.ToTable("RemoteEncounters"); }); modelBuilder.Entity("ClientLocationImportHistory", b => { b.HasOne("Pal.Client.Database.ImportHistory", null) .WithMany() .HasForeignKey("ImportedById") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Pal.Client.Database.ClientLocation", null) .WithMany() .HasForeignKey("ImportedLocationsLocalId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Pal.Client.Database.RemoteEncounter", b => { b.HasOne("Pal.Client.Database.ClientLocation", "ClientLocation") .WithMany("RemoteEncounters") .HasForeignKey("ClientLocationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ClientLocation"); }); modelBuilder.Entity("Pal.Client.Database.ClientLocation", b => { b.Navigation("RemoteEncounters"); }); #pragma warning restore 612, 618 } } }