#398 PDF library database migration

This commit is contained in:
Hamid Reza Mohammadi 2023-07-20 17:02:54 +03:30
parent d031f811c0
commit 52b49d0418
3 changed files with 5773 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,374 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class PDFLibEntities : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "BookId",
table: "TagValues",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PDFBookId",
table: "TagValues",
type: "int",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PDFPageId",
table: "TagValues",
type: "int",
nullable: true);
migrationBuilder.CreateTable(
name: "Authors",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
NameInOriginalLanguage = table.Column<string>(type: "nvarchar(max)", nullable: true),
Bio = table.Column<string>(type: "nvarchar(max)", nullable: true),
ImageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExtenalImageUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
LastModified = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Authors", x => x.Id);
table.ForeignKey(
name: "FK_Authors_GeneralImages_ImageId",
column: x => x.ImageId,
principalTable: "GeneralImages",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "Books",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
CoverImageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExtenalCoverImageUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
LastModified = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Books", x => x.Id);
table.ForeignKey(
name: "FK_Books_GeneralImages_CoverImageId",
column: x => x.CoverImageId,
principalTable: "GeneralImages",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "MultiVolumePDFCollections",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
BookId = table.Column<int>(type: "int", nullable: false),
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_MultiVolumePDFCollections", x => x.Id);
table.ForeignKey(
name: "FK_MultiVolumePDFCollections_Books_BookId",
column: x => x.BookId,
principalTable: "Books",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "PDFBooks",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
BookId = table.Column<int>(type: "int", nullable: false),
Status = table.Column<int>(type: "int", nullable: false),
Title = table.Column<string>(type: "nvarchar(max)", nullable: true),
SubTitle = table.Column<string>(type: "nvarchar(max)", nullable: true),
AuthorsLine = table.Column<string>(type: "nvarchar(max)", nullable: true),
ISBN = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
Language = table.Column<string>(type: "nvarchar(max)", nullable: true),
IsTranslation = table.Column<bool>(type: "bit", nullable: false),
TranslatorsLine = table.Column<string>(type: "nvarchar(max)", nullable: true),
TitleInOriginalLanguage = table.Column<string>(type: "nvarchar(max)", nullable: true),
PublisherLine = table.Column<string>(type: "nvarchar(max)", nullable: true),
PublishingDate = table.Column<string>(type: "nvarchar(max)", nullable: true),
PublishingLocation = table.Column<string>(type: "nvarchar(max)", nullable: true),
PublishingNumber = table.Column<int>(type: "int", nullable: true),
ClaimedPageCount = table.Column<int>(type: "int", nullable: true),
MultiVolumePDFCollectionId = table.Column<int>(type: "int", nullable: true),
VolumeOrder = table.Column<int>(type: "int", nullable: false),
DateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
LastModified = table.Column<DateTime>(type: "datetime2", nullable: false),
PDFFileId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExternalPDFFileUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
CoverImageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExtenalCoverImageUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
OriginalSourceName = table.Column<string>(type: "nvarchar(max)", nullable: true),
OriginalSourceUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
OriginalFileUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
PageCount = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PDFBooks", x => x.Id);
table.ForeignKey(
name: "FK_PDFBooks_Books_BookId",
column: x => x.BookId,
principalTable: "Books",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_PDFBooks_GeneralImages_CoverImageId",
column: x => x.CoverImageId,
principalTable: "GeneralImages",
principalColumn: "Id");
table.ForeignKey(
name: "FK_PDFBooks_GeneralImages_PDFFileId",
column: x => x.PDFFileId,
principalTable: "GeneralImages",
principalColumn: "Id");
table.ForeignKey(
name: "FK_PDFBooks_MultiVolumePDFCollections_MultiVolumePDFCollectionId",
column: x => x.MultiVolumePDFCollectionId,
principalTable: "MultiVolumePDFCollections",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "AuthorRole",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
AuthorId = table.Column<int>(type: "int", nullable: true),
Role = table.Column<string>(type: "nvarchar(max)", nullable: true),
BookId = table.Column<int>(type: "int", nullable: true),
PDFBookId = table.Column<int>(type: "int", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AuthorRole", x => x.Id);
table.ForeignKey(
name: "FK_AuthorRole_Authors_AuthorId",
column: x => x.AuthorId,
principalTable: "Authors",
principalColumn: "Id");
table.ForeignKey(
name: "FK_AuthorRole_Books_BookId",
column: x => x.BookId,
principalTable: "Books",
principalColumn: "Id");
table.ForeignKey(
name: "FK_AuthorRole_PDFBooks_PDFBookId",
column: x => x.PDFBookId,
principalTable: "PDFBooks",
principalColumn: "Id");
});
migrationBuilder.CreateTable(
name: "PDFPages",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PDFBookId = table.Column<int>(type: "int", nullable: false),
PageNumber = table.Column<int>(type: "int", nullable: false),
ThumbnailImageId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
ExtenalThumbnailImageUrl = table.Column<string>(type: "nvarchar(max)", nullable: true),
Description = table.Column<string>(type: "nvarchar(max)", nullable: true),
LastModified = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PDFPages", x => x.Id);
table.ForeignKey(
name: "FK_PDFPages_GeneralImages_ThumbnailImageId",
column: x => x.ThumbnailImageId,
principalTable: "GeneralImages",
principalColumn: "Id");
table.ForeignKey(
name: "FK_PDFPages_PDFBooks_PDFBookId",
column: x => x.PDFBookId,
principalTable: "PDFBooks",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_TagValues_BookId",
table: "TagValues",
column: "BookId");
migrationBuilder.CreateIndex(
name: "IX_TagValues_PDFBookId",
table: "TagValues",
column: "PDFBookId");
migrationBuilder.CreateIndex(
name: "IX_TagValues_PDFPageId",
table: "TagValues",
column: "PDFPageId");
migrationBuilder.CreateIndex(
name: "IX_AuthorRole_AuthorId",
table: "AuthorRole",
column: "AuthorId");
migrationBuilder.CreateIndex(
name: "IX_AuthorRole_BookId",
table: "AuthorRole",
column: "BookId");
migrationBuilder.CreateIndex(
name: "IX_AuthorRole_PDFBookId",
table: "AuthorRole",
column: "PDFBookId");
migrationBuilder.CreateIndex(
name: "IX_Authors_ImageId",
table: "Authors",
column: "ImageId");
migrationBuilder.CreateIndex(
name: "IX_Books_CoverImageId",
table: "Books",
column: "CoverImageId");
migrationBuilder.CreateIndex(
name: "IX_MultiVolumePDFCollections_BookId",
table: "MultiVolumePDFCollections",
column: "BookId");
migrationBuilder.CreateIndex(
name: "IX_PDFBooks_BookId",
table: "PDFBooks",
column: "BookId");
migrationBuilder.CreateIndex(
name: "IX_PDFBooks_CoverImageId",
table: "PDFBooks",
column: "CoverImageId");
migrationBuilder.CreateIndex(
name: "IX_PDFBooks_MultiVolumePDFCollectionId",
table: "PDFBooks",
column: "MultiVolumePDFCollectionId");
migrationBuilder.CreateIndex(
name: "IX_PDFBooks_PDFFileId",
table: "PDFBooks",
column: "PDFFileId");
migrationBuilder.CreateIndex(
name: "IX_PDFPages_PDFBookId",
table: "PDFPages",
column: "PDFBookId");
migrationBuilder.CreateIndex(
name: "IX_PDFPages_ThumbnailImageId",
table: "PDFPages",
column: "ThumbnailImageId");
migrationBuilder.AddForeignKey(
name: "FK_TagValues_Books_BookId",
table: "TagValues",
column: "BookId",
principalTable: "Books",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_TagValues_PDFBooks_PDFBookId",
table: "TagValues",
column: "PDFBookId",
principalTable: "PDFBooks",
principalColumn: "Id");
migrationBuilder.AddForeignKey(
name: "FK_TagValues_PDFPages_PDFPageId",
table: "TagValues",
column: "PDFPageId",
principalTable: "PDFPages",
principalColumn: "Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_TagValues_Books_BookId",
table: "TagValues");
migrationBuilder.DropForeignKey(
name: "FK_TagValues_PDFBooks_PDFBookId",
table: "TagValues");
migrationBuilder.DropForeignKey(
name: "FK_TagValues_PDFPages_PDFPageId",
table: "TagValues");
migrationBuilder.DropTable(
name: "AuthorRole");
migrationBuilder.DropTable(
name: "PDFPages");
migrationBuilder.DropTable(
name: "Authors");
migrationBuilder.DropTable(
name: "PDFBooks");
migrationBuilder.DropTable(
name: "MultiVolumePDFCollections");
migrationBuilder.DropTable(
name: "Books");
migrationBuilder.DropIndex(
name: "IX_TagValues_BookId",
table: "TagValues");
migrationBuilder.DropIndex(
name: "IX_TagValues_PDFBookId",
table: "TagValues");
migrationBuilder.DropIndex(
name: "IX_TagValues_PDFPageId",
table: "TagValues");
migrationBuilder.DropColumn(
name: "BookId",
table: "TagValues");
migrationBuilder.DropColumn(
name: "PDFBookId",
table: "TagValues");
migrationBuilder.DropColumn(
name: "PDFPageId",
table: "TagValues");
}
}
}

View File

@ -364,12 +364,21 @@ namespace RMuseum.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int?>("BookId")
.HasColumnType("int");
b.Property<string>("FriendlyUrl")
.HasColumnType("nvarchar(450)");
b.Property<int>("Order")
.HasColumnType("int");
b.Property<int?>("PDFBookId")
.HasColumnType("int");
b.Property<int?>("PDFPageId")
.HasColumnType("int");
b.Property<Guid?>("RArtifactItemRecordId")
.HasColumnType("uniqueidentifier");
@ -393,8 +402,14 @@ namespace RMuseum.Migrations
b.HasKey("Id");
b.HasIndex("BookId");
b.HasIndex("FriendlyUrl");
b.HasIndex("PDFBookId");
b.HasIndex("PDFPageId");
b.HasIndex("RArtifactItemRecordId");
b.HasIndex("RArtifactMasterRecordId");
@ -2893,6 +2908,264 @@ namespace RMuseum.Migrations
b.ToTable("ReportedUserNotes");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.Author", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Bio")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExtenalImageUrl")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("ImageId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("LastModified")
.HasColumnType("datetime2");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.Property<string>("NameInOriginalLanguage")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("ImageId");
b.ToTable("Authors");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.AuthorRole", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int?>("AuthorId")
.HasColumnType("int");
b.Property<int?>("BookId")
.HasColumnType("int");
b.Property<int?>("PDFBookId")
.HasColumnType("int");
b.Property<string>("Role")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("AuthorId");
b.HasIndex("BookId");
b.HasIndex("PDFBookId");
b.ToTable("AuthorRole");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.Book", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<Guid?>("CoverImageId")
.HasColumnType("uniqueidentifier");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExtenalCoverImageUrl")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("LastModified")
.HasColumnType("datetime2");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("CoverImageId");
b.ToTable("Books");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.MultiVolumePDFCollection", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("BookId")
.HasColumnType("int");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("BookId");
b.ToTable("MultiVolumePDFCollections");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFBook", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("AuthorsLine")
.HasColumnType("nvarchar(max)");
b.Property<int>("BookId")
.HasColumnType("int");
b.Property<int?>("ClaimedPageCount")
.HasColumnType("int");
b.Property<Guid?>("CoverImageId")
.HasColumnType("uniqueidentifier");
b.Property<DateTime>("DateTime")
.HasColumnType("datetime2");
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExtenalCoverImageUrl")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExternalPDFFileUrl")
.HasColumnType("nvarchar(max)");
b.Property<string>("ISBN")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsTranslation")
.HasColumnType("bit");
b.Property<string>("Language")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("LastModified")
.HasColumnType("datetime2");
b.Property<int?>("MultiVolumePDFCollectionId")
.HasColumnType("int");
b.Property<string>("OriginalFileUrl")
.HasColumnType("nvarchar(max)");
b.Property<string>("OriginalSourceName")
.HasColumnType("nvarchar(max)");
b.Property<string>("OriginalSourceUrl")
.HasColumnType("nvarchar(max)");
b.Property<Guid?>("PDFFileId")
.HasColumnType("uniqueidentifier");
b.Property<int>("PageCount")
.HasColumnType("int");
b.Property<string>("PublisherLine")
.HasColumnType("nvarchar(max)");
b.Property<string>("PublishingDate")
.HasColumnType("nvarchar(max)");
b.Property<string>("PublishingLocation")
.HasColumnType("nvarchar(max)");
b.Property<int?>("PublishingNumber")
.HasColumnType("int");
b.Property<int>("Status")
.HasColumnType("int");
b.Property<string>("SubTitle")
.HasColumnType("nvarchar(max)");
b.Property<string>("Title")
.HasColumnType("nvarchar(max)");
b.Property<string>("TitleInOriginalLanguage")
.HasColumnType("nvarchar(max)");
b.Property<string>("TranslatorsLine")
.HasColumnType("nvarchar(max)");
b.Property<int>("VolumeOrder")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("BookId");
b.HasIndex("CoverImageId");
b.HasIndex("MultiVolumePDFCollectionId");
b.HasIndex("PDFFileId");
b.ToTable("PDFBooks");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFPage", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Description")
.HasColumnType("nvarchar(max)");
b.Property<string>("ExtenalThumbnailImageUrl")
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("LastModified")
.HasColumnType("datetime2");
b.Property<int>("PDFBookId")
.HasColumnType("int");
b.Property<int>("PageNumber")
.HasColumnType("int");
b.Property<Guid?>("ThumbnailImageId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("PDFBookId");
b.HasIndex("ThumbnailImageId");
b.ToTable("PDFPages");
});
modelBuilder.Entity("RMuseum.Models.UploadSession.UploadSession", b =>
{
b.Property<Guid>("Id")
@ -3579,6 +3852,18 @@ namespace RMuseum.Migrations
modelBuilder.Entity("RMuseum.Models.Artifact.RTagValue", b =>
{
b.HasOne("RMuseum.Models.PDFLibrary.Book", null)
.WithMany("Tags")
.HasForeignKey("BookId");
b.HasOne("RMuseum.Models.PDFLibrary.PDFBook", null)
.WithMany("Tags")
.HasForeignKey("PDFBookId");
b.HasOne("RMuseum.Models.PDFLibrary.PDFPage", null)
.WithMany("Tags")
.HasForeignKey("PDFPageId");
b.HasOne("RMuseum.Models.Artifact.RArtifactItemRecord", null)
.WithMany("Tags")
.HasForeignKey("RArtifactItemRecordId");
@ -4441,6 +4726,96 @@ namespace RMuseum.Migrations
b.Navigation("Reporter");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.Author", b =>
{
b.HasOne("RSecurityBackend.Models.Image.RImage", "Image")
.WithMany()
.HasForeignKey("ImageId");
b.Navigation("Image");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.AuthorRole", b =>
{
b.HasOne("RMuseum.Models.PDFLibrary.Author", "Author")
.WithMany()
.HasForeignKey("AuthorId");
b.HasOne("RMuseum.Models.PDFLibrary.Book", null)
.WithMany("Authors")
.HasForeignKey("BookId");
b.HasOne("RMuseum.Models.PDFLibrary.PDFBook", null)
.WithMany("Contributers")
.HasForeignKey("PDFBookId");
b.Navigation("Author");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.Book", b =>
{
b.HasOne("RSecurityBackend.Models.Image.RImage", "CoverImage")
.WithMany()
.HasForeignKey("CoverImageId");
b.Navigation("CoverImage");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.MultiVolumePDFCollection", b =>
{
b.HasOne("RMuseum.Models.PDFLibrary.Book", "Book")
.WithMany()
.HasForeignKey("BookId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Book");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFBook", b =>
{
b.HasOne("RMuseum.Models.PDFLibrary.Book", "Book")
.WithMany()
.HasForeignKey("BookId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("RSecurityBackend.Models.Image.RImage", "CoverImage")
.WithMany()
.HasForeignKey("CoverImageId");
b.HasOne("RMuseum.Models.PDFLibrary.MultiVolumePDFCollection", "MultiVolumePDFCollection")
.WithMany()
.HasForeignKey("MultiVolumePDFCollectionId");
b.HasOne("RSecurityBackend.Models.Image.RImage", "PDFFile")
.WithMany()
.HasForeignKey("PDFFileId");
b.Navigation("Book");
b.Navigation("CoverImage");
b.Navigation("MultiVolumePDFCollection");
b.Navigation("PDFFile");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFPage", b =>
{
b.HasOne("RMuseum.Models.PDFLibrary.PDFBook", null)
.WithMany("Pages")
.HasForeignKey("PDFBookId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("RSecurityBackend.Models.Image.RImage", "ThumbnailImage")
.WithMany()
.HasForeignKey("ThumbnailImageId");
b.Navigation("ThumbnailImage");
});
modelBuilder.Entity("RMuseum.Models.UploadSession.UploadSession", b =>
{
b.HasOne("RSecurityBackend.Models.Auth.Db.RAppUser", "User")
@ -4589,6 +4964,27 @@ namespace RMuseum.Migrations
b.Navigation("Tracks");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.Book", b =>
{
b.Navigation("Authors");
b.Navigation("Tags");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFBook", b =>
{
b.Navigation("Contributers");
b.Navigation("Pages");
b.Navigation("Tags");
});
modelBuilder.Entity("RMuseum.Models.PDFLibrary.PDFPage", b =>
{
b.Navigation("Tags");
});
modelBuilder.Entity("RMuseum.Models.UploadSession.UploadSession", b =>
{
b.Navigation("UploadedFiles");