// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SVSim.Database; #nullable disable namespace SVSim.Database.Migrations { [DbContext(typeof(SVSimDbContext))] partial class SVSimDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.8"); modelBuilder.Entity("DCGEngine.Database.Models.CardEntry", b => { b.Property("Id") .HasColumnType("INTEGER"); b.Property("Attack") .HasColumnType("INTEGER"); b.Property("DateCreated") .HasColumnType("TEXT"); b.Property("DateUpdated") .HasColumnType("TEXT"); b.Property("Defense") .HasColumnType("INTEGER"); b.Property("Discriminator") .IsRequired() .HasMaxLength(21) .HasColumnType("TEXT"); b.Property("InternalName") .IsRequired() .HasColumnType("TEXT"); b.Property("PrimaryResourceCost") .HasColumnType("INTEGER"); b.Property("ShadowverseDeckEntryId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ShadowverseDeckEntryId"); b.ToTable("CardEntry"); b.HasDiscriminator().HasValue("CardEntry"); b.UseTphMappingStrategy(); }); modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateCreated") .HasColumnType("TEXT"); b.Property("DateUpdated") .HasColumnType("TEXT"); b.Property("InternalName") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("ShadowverseDeckEntry"); }); modelBuilder.Entity("SVSim.Database.Models.SocialAccountConnection", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("AccountId") .HasColumnType("INTEGER"); b.Property("AccountType") .HasColumnType("INTEGER"); b.Property("DateCreated") .HasColumnType("TEXT"); b.Property("DateUpdated") .HasColumnType("TEXT"); b.Property("ViewerId") .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ViewerId"); b.ToTable("SocialAccountConnection"); }); modelBuilder.Entity("SVSim.Database.Models.Viewer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("DateCreated") .HasColumnType("TEXT"); b.Property("DateUpdated") .HasColumnType("TEXT"); b.Property("DisplayName") .IsRequired() .HasColumnType("TEXT"); b.Property("ShortUdid") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Viewer"); }); modelBuilder.Entity("SVSim.Database.Models.ShadowverseCardEntry", b => { b.HasBaseType("DCGEngine.Database.Models.CardEntry"); b.HasDiscriminator().HasValue("ShadowverseCardEntry"); }); modelBuilder.Entity("DCGEngine.Database.Models.CardEntry", b => { b.HasOne("SVSim.Database.Models.ShadowverseDeckEntry", null) .WithMany("Cards") .HasForeignKey("ShadowverseDeckEntryId"); }); modelBuilder.Entity("SVSim.Database.Models.SocialAccountConnection", b => { b.HasOne("SVSim.Database.Models.Viewer", "Viewer") .WithMany() .HasForeignKey("ViewerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Viewer"); }); modelBuilder.Entity("SVSim.Database.Models.ShadowverseDeckEntry", b => { b.Navigation("Cards"); }); #pragma warning restore 612, 618 } } }