Stats Page Overhaul (#4292)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2025-12-19 13:23:55 -07:00
committed by GitHub
parent 20197fa712
commit e1f421ccc0
175 changed files with 12122 additions and 5746 deletions
@@ -18,7 +18,7 @@ namespace API.Data.Migrations
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
modelBuilder.HasAnnotation("ProductVersion", "10.0.1");
modelBuilder.Entity("API.Entities.AppRole", b =>
{
@@ -2212,6 +2212,9 @@ namespace API.Data.Migrations
b.Property<DateTime?>("EndTimeUtc")
.HasColumnType("TEXT");
b.Property<int>("Format")
.HasColumnType("INTEGER");
b.Property<int>("LibraryId")
.HasColumnType("INTEGER");
@@ -2284,8 +2287,15 @@ namespace API.Data.Migrations
b.HasIndex("ChapterId");
b.HasIndex("LibraryId");
b.HasIndex("SeriesId");
b.HasIndex("VolumeId");
b.HasIndex("StartTimeUtc", "LibraryId")
.HasDatabaseName("IX_ActivityData_StartTimeUtc_LibraryId");
b.ToTable("AppUserReadingSessionActivityData");
});
@@ -3917,17 +3927,33 @@ namespace API.Data.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("API.Entities.Library", "Library")
.WithMany()
.HasForeignKey("LibraryId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("API.Entities.Series", "Series")
.WithMany()
.HasForeignKey("SeriesId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("API.Entities.Volume", "Volume")
.WithMany()
.HasForeignKey("VolumeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Chapter");
b.Navigation("Library");
b.Navigation("ReadingSession");
b.Navigation("Series");
b.Navigation("Volume");
});
modelBuilder.Entity("API.Entities.ReadingList", b =>