Adds media library advanced options

This commit is contained in:
BinaryAlley committed 2025-01-25 12:27:50 +02:00
1 parent 1c28355197
commit f89ba4960a
60 files changed
+1877 -51

No files matched your search

@@ -39,6 +39,20 @@ public class LibraryConfiguration : IEntityTypeConfiguration<LibraryEntity>
.HasDefaultValue(null)
.HasColumnOrder(3);
builder.Property(library => library.IsEnabled)
.HasDefaultValue(true)
.HasColumnOrder(4);
builder.Property(library => library.IsLocked)
.HasColumnOrder(5);
builder.Property(library => library.DownloadMedatadaFromWeb)
.HasDefaultValue(true)
.HasColumnOrder(6);
builder.Property(library => library.SaveMetadataInMediaDirectories)
.HasColumnOrder(7);
// one user with many libraries
builder.HasOne(library => library.User)
.WithMany(user => user.Libraries)