//
using EntityFrameworkLOL.DBContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace EntityFrameworkLOL.Migrations
{
[DbContext(typeof(SQLiteContext))]
partial class SQLiteContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
modelBuilder.Entity("EntityFrameworkLOL.Entities.CategoryEntity", b =>
{
b.Property("Category")
.HasColumnType("INTEGER");
b.HasKey("Category");
b.ToTable("Category");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.ChampionClassEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Class")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("ChampionClass");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.ChampionEntity", b =>
{
b.Property("Name")
.HasColumnType("TEXT");
b.Property("Bio")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ClassId")
.HasColumnType("INTEGER");
b.Property("Icon")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ImageBase64")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Name");
b.HasIndex("ClassId");
b.HasIndex("ImageBase64");
b.ToTable("Champion");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.ImageEntity", b =>
{
b.Property("Base64")
.HasColumnType("TEXT");
b.HasKey("Base64");
b.ToTable("Image");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.RuneEntity", b =>
{
b.Property("Name")
.HasColumnType("TEXT");
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property("FamilyId")
.HasColumnType("INTEGER");
b.Property("ImageBase64")
.HasColumnType("TEXT");
b.HasKey("Name");
b.HasIndex("FamilyId");
b.HasIndex("ImageBase64");
b.ToTable("Rune");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.RuneFamilyEntity", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("Family")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("RuneFamily");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.RunePageEntity", b =>
{
b.Property("Name")
.HasColumnType("TEXT");
b.HasKey("Name");
b.ToTable("RunePage");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.SkillTypeEntity", b =>
{
b.Property("Type")
.HasColumnType("INTEGER");
b.HasKey("Type");
b.ToTable("SkillType");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.SkinEntity", b =>
{
b.Property("Name")
.HasColumnType("TEXT");
b.Property("ChampionSkinName")
.HasColumnType("TEXT");
b.Property("Description")
.IsRequired()
.HasColumnType("TEXT");
b.Property("Icon")
.IsRequired()
.HasColumnType("TEXT");
b.Property("ImageBase64")
.HasColumnType("TEXT");
b.Property("Price")
.HasColumnType("REAL");
b.HasKey("Name");
b.HasIndex("ChampionSkinName");
b.HasIndex("ImageBase64");
b.ToTable("Skin");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.ChampionEntity", b =>
{
b.HasOne("EntityFrameworkLOL.Entities.ChampionClassEntity", "Class")
.WithMany()
.HasForeignKey("ClassId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EntityFrameworkLOL.Entities.ImageEntity", "Image")
.WithMany()
.HasForeignKey("ImageBase64")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Class");
b.Navigation("Image");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.RuneEntity", b =>
{
b.HasOne("EntityFrameworkLOL.Entities.RuneFamilyEntity", "Family")
.WithMany()
.HasForeignKey("FamilyId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("EntityFrameworkLOL.Entities.ImageEntity", "Image")
.WithMany()
.HasForeignKey("ImageBase64");
b.Navigation("Family");
b.Navigation("Image");
});
modelBuilder.Entity("EntityFrameworkLOL.Entities.SkinEntity", b =>
{
b.HasOne("EntityFrameworkLOL.Entities.ChampionEntity", "ChampionSkin")
.WithMany()
.HasForeignKey("ChampionSkinName");
b.HasOne("EntityFrameworkLOL.Entities.ImageEntity", "Image")
.WithMany()
.HasForeignKey("ImageBase64");
b.Navigation("ChampionSkin");
b.Navigation("Image");
});
#pragma warning restore 612, 618
}
}
}