// <auto-generated />
using EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;

#nullable disable

namespace EntityFramework.Migrations
{
    [DbContext(typeof(LoLDbContext))]
    partial class LoLDbContextModelSnapshot : ModelSnapshot
    {
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder.HasAnnotation("ProductVersion", "7.0.2");

            modelBuilder.Entity("ChampionEntityRunePageEntity", b =>
                {
                    b.Property<string>("ChampionName")
                        .HasColumnType("TEXT");

                    b.Property<string>("RunePageEntitiesName")
                        .HasColumnType("TEXT");

                    b.HasKey("ChampionName", "RunePageEntitiesName");

                    b.HasIndex("RunePageEntitiesName");

                    b.ToTable("ChampionEntityRunePageEntity");
                });

            modelBuilder.Entity("EntityFramework.ChampionEntity", b =>
                {
                    b.Property<string>("Name")
                        .ValueGeneratedOnAdd()
                        .HasMaxLength(50)
                        .HasColumnType("TEXT");

                    b.Property<string>("Bio")
                        .IsRequired()
                        .HasMaxLength(500)
                        .HasColumnType("string")
                        .HasColumnName("Bio");

                    b.Property<string>("Icon")
                        .IsRequired()
                        .HasColumnType("TEXT");

                    b.Property<string>("Image")
                        .HasColumnType("TEXT");

                    b.HasKey("Name");

                    b.ToTable("Champions", (string)null);
                });

            modelBuilder.Entity("EntityFramework.LargeImageEntity", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("INTEGER");

                    b.Property<string>("Base64")
                        .IsRequired()
                        .HasColumnType("TEXT");

                    b.HasKey("Id");

                    b.ToTable("Image");
                });

            modelBuilder.Entity("EntityFramework.RuneEntity", b =>
                {
                    b.Property<string>("Name")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("TEXT");

                    b.Property<string>("RuneForeignKey")
                        .HasColumnType("TEXT");

                    b.HasKey("Name");

                    b.HasIndex("RuneForeignKey");

                    b.ToTable("Rune");
                });

            modelBuilder.Entity("EntityFramework.RunePageEntity", b =>
                {
                    b.Property<string>("Name")
                        .HasColumnType("TEXT");

                    b.Property<string>("RuneName")
                        .HasColumnType("TEXT");

                    b.HasKey("Name");

                    b.HasIndex("RuneName");

                    b.ToTable("RunePage", (string)null);
                });

            modelBuilder.Entity("EntityFramework.SkillEntity", b =>
                {
                    b.Property<string>("Name")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("TEXT");

                    b.Property<string>("ChampionEntityToSkillForeignKey")
                        .HasColumnType("TEXT");

                    b.Property<string>("Description")
                        .IsRequired()
                        .HasColumnType("TEXT");

                    b.Property<int>("Type")
                        .HasColumnType("INTEGER");

                    b.HasKey("Name");

                    b.HasIndex("ChampionEntityToSkillForeignKey");

                    b.ToTable("Skills");
                });

            modelBuilder.Entity("EntityFramework.SkinEntity", b =>
                {
                    b.Property<string>("Name")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("TEXT");

                    b.Property<string>("ChampionEntityForeignKey")
                        .HasColumnType("TEXT");

                    b.Property<string>("Description")
                        .HasColumnType("TEXT");

                    b.Property<string>("Icon")
                        .IsRequired()
                        .HasColumnType("TEXT");

                    b.Property<string>("Image")
                        .HasColumnType("TEXT");

                    b.Property<float>("Price")
                        .HasColumnType("REAL");

                    b.HasKey("Name");

                    b.HasIndex("ChampionEntityForeignKey");

                    b.ToTable("Skins");
                });

            modelBuilder.Entity("ChampionEntityRunePageEntity", b =>
                {
                    b.HasOne("EntityFramework.ChampionEntity", null)
                        .WithMany()
                        .HasForeignKey("ChampionName")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();

                    b.HasOne("EntityFramework.RunePageEntity", null)
                        .WithMany()
                        .HasForeignKey("RunePageEntitiesName")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();
                });

            modelBuilder.Entity("EntityFramework.RuneEntity", b =>
                {
                    b.HasOne("EntityFramework.RunePageEntity", "RunePage")
                        .WithMany("Runes")
                        .HasForeignKey("RuneForeignKey");

                    b.Navigation("RunePage");
                });

            modelBuilder.Entity("EntityFramework.RunePageEntity", b =>
                {
                    b.HasOne("EntityFramework.RuneEntity", "Rune")
                        .WithMany()
                        .HasForeignKey("RuneName");

                    b.Navigation("Rune");
                });

            modelBuilder.Entity("EntityFramework.SkillEntity", b =>
                {
                    b.HasOne("EntityFramework.ChampionEntity", "Champion")
                        .WithMany("Skills")
                        .HasForeignKey("ChampionEntityToSkillForeignKey");

                    b.Navigation("Champion");
                });

            modelBuilder.Entity("EntityFramework.SkinEntity", b =>
                {
                    b.HasOne("EntityFramework.ChampionEntity", "Champion")
                        .WithMany("skins")
                        .HasForeignKey("ChampionEntityForeignKey");

                    b.Navigation("Champion");
                });

            modelBuilder.Entity("EntityFramework.ChampionEntity", b =>
                {
                    b.Navigation("Skills");

                    b.Navigation("skins");
                });

            modelBuilder.Entity("EntityFramework.RunePageEntity", b =>
                {
                    b.Navigation("Runes");
                });
#pragma warning restore 612, 618
        }
    }
}
