Social interactions with annotations (#4068)

Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
This commit is contained in:
Fesaa
2025-10-04 22:11:06 +02:00
committed by GitHub
parent d4e3a2de3e
commit b40734265b
107 changed files with 7615 additions and 1402 deletions
@@ -213,6 +213,11 @@ namespace API.Data.Migrations
b.Property<int>("LibraryId")
.HasColumnType("INTEGER");
b.Property<string>("Likes")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasDefaultValue("[]");
b.Property<int>("PageNumber")
.HasColumnType("INTEGER");
@@ -237,6 +242,8 @@ namespace API.Data.Migrations
b.HasIndex("ChapterId");
b.HasIndex("LibraryId");
b.HasIndex("SeriesId");
b.ToTable("AppUserAnnotation");
@@ -614,6 +621,11 @@ namespace API.Data.Migrations
b.Property<bool>("ShowScreenHints")
.HasColumnType("INTEGER");
b.Property<string>("SocialPreferences")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasDefaultValue("{\"ShareReviews\":false,\"ShareAnnotations\":false,\"ViewOtherAnnotations\":false,\"SocialLibraries\":[],\"SocialMaxAgeRating\":-1,\"SocialIncludeUnknowns\":true}");
b.Property<bool>("SwipeToPaginate")
.HasColumnType("INTEGER");
@@ -2988,6 +3000,12 @@ 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")
@@ -2998,6 +3016,8 @@ namespace API.Data.Migrations
b.Navigation("Chapter");
b.Navigation("Library");
b.Navigation("Series");
});