// using EntityFramwork; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace EntityFramwork.Migrations { [DbContext(typeof(BDDContext))] partial class BDDContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "7.0.2"); modelBuilder.Entity("DTO.EntityChampions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Bio") .IsRequired() .HasColumnType("TEXT"); b.Property("Icon") .IsRequired() .HasColumnType("TEXT"); b.Property("ImageId") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ImageId") .IsUnique(); b.HasIndex("Name") .IsUnique(); b.ToTable("Champions"); }); modelBuilder.Entity("EntityFramwork.EntityLargeImage", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Base64") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Images"); }); modelBuilder.Entity("EntityFramwork.EntityRunes", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Description") .IsRequired() .HasColumnType("TEXT"); b.Property("Icon") .IsRequired() .HasColumnType("TEXT"); b.Property("ImageId") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ImageId") .IsUnique(); b.ToTable("Runes"); }); modelBuilder.Entity("EntityFramwork.EntitySkins", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("ChampionForeignKey") .HasColumnType("INTEGER"); b.Property("Description") .IsRequired() .HasColumnType("TEXT"); b.Property("Icon") .IsRequired() .HasColumnType("TEXT"); b.Property("ImageId") .HasColumnType("INTEGER"); b.Property("Price") .HasColumnType("REAL"); b.HasKey("Id"); b.HasIndex("ChampionForeignKey"); b.HasIndex("ImageId") .IsUnique(); b.ToTable("Skins"); }); modelBuilder.Entity("DTO.EntityChampions", b => { b.HasOne("EntityFramwork.EntityLargeImage", "Image") .WithOne("Champion") .HasForeignKey("DTO.EntityChampions", "ImageId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Image"); }); modelBuilder.Entity("EntityFramwork.EntityRunes", b => { b.HasOne("EntityFramwork.EntityLargeImage", "Image") .WithOne("Rune") .HasForeignKey("EntityFramwork.EntityRunes", "ImageId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Image"); }); modelBuilder.Entity("EntityFramwork.EntitySkins", b => { b.HasOne("DTO.EntityChampions", "Champion") .WithMany("Skins") .HasForeignKey("ChampionForeignKey") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("EntityFramwork.EntityLargeImage", "Image") .WithOne("Skin") .HasForeignKey("EntityFramwork.EntitySkins", "ImageId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Champion"); b.Navigation("Image"); }); modelBuilder.Entity("DTO.EntityChampions", b => { b.Navigation("Skins"); }); modelBuilder.Entity("EntityFramwork.EntityLargeImage", b => { b.Navigation("Champion") .IsRequired(); b.Navigation("Rune") .IsRequired(); b.Navigation("Skin") .IsRequired(); }); #pragma warning restore 612, 618 } } }