mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
Soft deletes books so the scan keeps their paths reserved, lists the deleted books on a themed page, and lets the user restore them. Updates the API, bundled themes, localization, documentation and tests. Closes #213
3914 lines
146 KiB
C#
3914 lines
146 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Lumina.DataAccess.Core.UoW;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Lumina.DataAccess.Common.Migrations
|
|
{
|
|
[DbContext(typeof(LuminaDbContext))]
|
|
partial class LuminaDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.11");
|
|
|
|
modelBuilder.Entity("AlbumGenres", b =>
|
|
{
|
|
b.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GenreId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("AlbumId", "GenreId");
|
|
|
|
b.HasIndex("GenreId");
|
|
|
|
b.ToTable("AlbumGenres", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AlbumTags", b =>
|
|
{
|
|
b.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TagId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("AlbumId", "TagId");
|
|
|
|
b.HasIndex("TagId");
|
|
|
|
b.ToTable("AlbumTags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("ArtistGenres", b =>
|
|
{
|
|
b.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GenreId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("ArtistId", "GenreId");
|
|
|
|
b.HasIndex("GenreId");
|
|
|
|
b.ToTable("ArtistGenres", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("ArtistTags", b =>
|
|
{
|
|
b.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TagId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("ArtistId", "TagId");
|
|
|
|
b.HasIndex("TagId");
|
|
|
|
b.ToTable("ArtistTags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("BookGenres", b =>
|
|
{
|
|
b.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GenreId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("BookId", "GenreId");
|
|
|
|
b.HasIndex("GenreId");
|
|
|
|
b.ToTable("BookGenres", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("BookTags", b =>
|
|
{
|
|
b.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TagId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("BookId", "TagId");
|
|
|
|
b.HasIndex("TagId");
|
|
|
|
b.ToTable("BookTags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.PermissionEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("PermissionName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Permissions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.RoleEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("RoleName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Roles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.RolePermissionEntity", b =>
|
|
{
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("PermissionId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.HasKey("RoleId", "PermissionId");
|
|
|
|
b.HasIndex("PermissionId");
|
|
|
|
b.HasIndex("RoleId", "PermissionId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("RolePermissions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.UserPermissionEntity", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("PermissionId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.HasKey("UserId", "PermissionId");
|
|
|
|
b.HasIndex("PermissionId");
|
|
|
|
b.HasIndex("UserId", "PermissionId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("UserPermissions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.UserRoleEntity", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.HasKey("UserId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.HasIndex("UserId", "RoleId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("UserRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Common.GenreEntity", b =>
|
|
{
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Name");
|
|
|
|
b.ToTable("Genres", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Common.TagEntity", b =>
|
|
{
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Name");
|
|
|
|
b.ToTable("Tags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Favorites.FavoriteEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("MediaItemId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("MediaKind")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "CreatedOnUtc");
|
|
|
|
b.HasIndex("UserId", "MediaKind", "CreatedOnUtc");
|
|
|
|
b.HasIndex("UserId", "MediaKind", "MediaItemId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Favorites", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaConsumption.MediaConsumptionRecordEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<int>("ConsecutivePagesRead")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(0)
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<long>("ConsumedDurationMilliseconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<DateTime?>("EndedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime>("LastActivityOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<string>("LastPositionKind")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("LastPositionLocation")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<long?>("LastPositionTimeOffsetMilliseconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<double>("LastProgressFraction")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("MediaItemId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("MediaKind")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime>("StartedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<long>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(15);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "MediaKind", "StartedOnUtc");
|
|
|
|
b.HasIndex("UserId", "MediaKind", "MediaItemId", "LastActivityOnUtc");
|
|
|
|
b.ToTable("MediaConsumptionRecords", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaConsumption.MediaResumePointEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<DateTime>("LastConsumedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("LastPositionKind")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("LastPositionLocation")
|
|
.HasMaxLength(4096)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<long?>("LastPositionTimeOffsetMilliseconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<double>("LastProgressFraction")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("MediaItemId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("MediaKind")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<long>("Version")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(10);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "MediaKind", "MediaItemId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MediaResumePoints", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaContributors.MediaContributorEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("Biography")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateOnly?>("DateOfBirth")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateOnly?>("DateOfDeath")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("DisplayName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1)
|
|
.UseCollation("NOCASE");
|
|
|
|
b.Property<string>("LegalName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DisplayName")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MediaContributors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumContributorEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("MediaContributorId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MediaContributorId");
|
|
|
|
b.HasIndex("AlbumId", "MediaContributorId", "Role")
|
|
.IsUnique();
|
|
|
|
b.ToTable("AlbumContributors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("ASIN")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(28);
|
|
|
|
b.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<string>("Barcode")
|
|
.HasMaxLength(13)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(25);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(33);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(32);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("Disambiguation")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("Label")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(27);
|
|
|
|
b.Property<string>("LanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<string>("LanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<string>("LanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<DateTime?>("LastMetadataUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(37);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("MediaFormat")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(23);
|
|
|
|
b.Property<string>("MetadataProvider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(38);
|
|
|
|
b.Property<string>("MetadataStatus")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("Pending")
|
|
.HasColumnOrder(36);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(31);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseGroupId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(30);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(29);
|
|
|
|
b.Property<string>("OriginalLanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<string>("OriginalLanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<string>("OriginalLanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<DateOnly?>("OriginalReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<int?>("OriginalReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("OriginalTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("Packaging")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(24);
|
|
|
|
b.Property<DateOnly?>("ReReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<int?>("ReReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("ReleaseCountry")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<string>("ReleaseStatus")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(20);
|
|
|
|
b.Property<string>("ReleaseTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(26);
|
|
|
|
b.Property<string>("ReleaseVersion")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<string>("Script")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<int?>("TotalDiscs")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(21);
|
|
|
|
b.Property<int>("TotalTracks")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(22);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(35);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(34);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ArtistId", "Title");
|
|
|
|
b.HasIndex("LibraryId", "Title");
|
|
|
|
b.ToTable("Albums", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistContributorEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("MediaContributorId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MediaContributorId");
|
|
|
|
b.HasIndex("ArtistId", "MediaContributorId", "Role")
|
|
.IsUnique();
|
|
|
|
b.ToTable("ArtistContributors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("Country")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<string>("Disambiguation")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<bool>("IsEnded")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<DateTime?>("LastMetadataUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<DateOnly?>("LifeSpanBegin")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateOnly?>("LifeSpanEnd")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("MetadataProvider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<string>("MetadataStatus")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("Pending")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<Guid?>("MusicBrainzArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("SortName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<string>("Website")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryId", "Name")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Artists", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.MusicArtworkEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("ArtworkType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<ulong>("ContentHash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("FileName")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime?>("LastUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<int>("Ordinal")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("OwnerId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("OwnerType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<string>("Provider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.HasIndex("OwnerType", "OwnerId", "ArtworkType", "Ordinal")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MusicArtwork", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.MusicLibraryScanItemMetadataEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("AcoustId")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(25);
|
|
|
|
b.Property<string>("ArtistName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("AudioCodec")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<int?>("BitDepth")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<int?>("Bitrate")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<int>("Channels")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<string>("Container")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(31);
|
|
|
|
b.Property<int?>("DiscNumber")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<int>("DurationInSeconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("LibraryScanId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.PrimitiveCollection<string>("Moods")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(30);
|
|
|
|
b.Property<Guid?>("MusicBrainzArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<Guid?>("MusicBrainzRecordingId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(21);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseArtistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseGroupId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<Guid?>("MusicBrainzReleaseId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(20);
|
|
|
|
b.Property<Guid?>("MusicBrainzTrackId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(22);
|
|
|
|
b.Property<Guid?>("MusicBrainzWorkId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(23);
|
|
|
|
b.Property<string>("Path")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("ReleaseName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<string>("ReleaseType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<int?>("ReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<decimal?>("ReplayGainAlbumGain")
|
|
.HasColumnType("decimal(8,2)")
|
|
.HasColumnOrder(28);
|
|
|
|
b.Property<decimal?>("ReplayGainAlbumPeak")
|
|
.HasColumnType("decimal(8,6)")
|
|
.HasColumnOrder(29);
|
|
|
|
b.Property<decimal?>("ReplayGainTrackGain")
|
|
.HasColumnType("decimal(8,2)")
|
|
.HasColumnOrder(26);
|
|
|
|
b.Property<decimal?>("ReplayGainTrackPeak")
|
|
.HasColumnType("decimal(8,6)")
|
|
.HasColumnOrder(27);
|
|
|
|
b.Property<int>("SampleRate")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<int?>("TrackNumber")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("TrackTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("WorkTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(24);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryScanId", "Path")
|
|
.IsUnique();
|
|
|
|
b.ToTable("MusicLibraryScanItemMetadata", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackContributorEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("MediaContributorId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MediaContributorId");
|
|
|
|
b.HasIndex("TrackId", "MediaContributorId", "Role")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TrackContributors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("AcoustId")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(44);
|
|
|
|
b.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<string>("AudioCodec")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(24);
|
|
|
|
b.Property<int?>("BitDepth")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(23);
|
|
|
|
b.Property<int?>("Bitrate")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(25);
|
|
|
|
b.Property<int?>("Bpm")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(30);
|
|
|
|
b.Property<int>("Channels")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(22);
|
|
|
|
b.Property<string>("Container")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(49);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(38);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(37);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("Disambiguation")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<int?>("DiscNumber")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(27);
|
|
|
|
b.Property<int>("DurationInSeconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(20);
|
|
|
|
b.Property<bool>("IsVideo")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(31);
|
|
|
|
b.Property<string>("Key")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(29);
|
|
|
|
b.Property<string>("LanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<string>("LanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<string>("LanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<DateTime?>("LastMetadataUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(42);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("MetadataProvider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(43);
|
|
|
|
b.Property<string>("MetadataStatus")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasDefaultValue("Pending")
|
|
.HasColumnOrder(41);
|
|
|
|
b.Property<Guid?>("MusicBrainzRecordingId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(34);
|
|
|
|
b.Property<Guid?>("MusicBrainzTrackId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(35);
|
|
|
|
b.Property<Guid?>("MusicBrainzWorkId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(36);
|
|
|
|
b.Property<string>("OriginalLanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<string>("OriginalLanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<string>("OriginalLanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<DateOnly?>("OriginalReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<int?>("OriginalReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("OriginalTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("Path")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<DateOnly?>("ReReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<int?>("ReReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<string>("ReleaseCountry")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<string>("ReleaseVersion")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<decimal?>("ReplayGainAlbumGain")
|
|
.HasColumnType("decimal(8,2)")
|
|
.HasColumnOrder(47);
|
|
|
|
b.Property<decimal?>("ReplayGainAlbumPeak")
|
|
.HasColumnType("decimal(8,6)")
|
|
.HasColumnOrder(48);
|
|
|
|
b.Property<decimal?>("ReplayGainTrackGain")
|
|
.HasColumnType("decimal(8,2)")
|
|
.HasColumnOrder(45);
|
|
|
|
b.Property<decimal?>("ReplayGainTrackPeak")
|
|
.HasColumnType("decimal(8,6)")
|
|
.HasColumnOrder(46);
|
|
|
|
b.Property<int>("SampleRate")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(21);
|
|
|
|
b.Property<string>("Script")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(28);
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<int>("TrackNumber")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(26);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(40);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(39);
|
|
|
|
b.Property<string>("WorkTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(32);
|
|
|
|
b.Property<string>("WorkType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(33);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("AlbumId", "TrackNumber");
|
|
|
|
b.HasIndex("LibraryId", "Path")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Tracks", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.DirectoryScanFingerprintEntity", b =>
|
|
{
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Path")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<DateTime>("LastWriteTimeUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.HasKey("LibraryId", "Path");
|
|
|
|
b.HasIndex("LibraryId");
|
|
|
|
b.ToTable("DirectoryScanFingerprints", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("ArtworkProvidersConfigurationFingerprint")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<bool>("CanDownloadMetadataFromWeb")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(true)
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<int?>("CompletionThresholdPercentage")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<string>("CoverImage")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<bool>("IsContentOnSsd")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(false)
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(true)
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<bool>("IsLocked")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("LibraryType")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("MetadataProvidersConfigurationFingerprint")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("PathTemplateFingerprint")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<bool>("ShouldSaveMetadataInMediaDirectories")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<bool>("ShouldSkipUnchangedDirectoriesDuringScan")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<bool>("ShouldTrackConsumptionProgress")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(false)
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Libraries", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("LibraryId", "Status", "CreatedOnUtc")
|
|
.IsDescending(true, false, true);
|
|
|
|
b.ToTable("LibraryScans", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanResultEntity", b =>
|
|
{
|
|
b.Property<Guid>("LibraryScanId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Path")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<ulong>("ContentHash")
|
|
.HasMaxLength(24)
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<long>("FileSize")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<long>("Ticks")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.HasKey("LibraryScanId", "Path");
|
|
|
|
b.HasIndex("Path");
|
|
|
|
b.HasIndex("ContentHash", "FileSize", "Path");
|
|
|
|
b.ToTable("LibraryScanResults", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanSnapshotEntity", b =>
|
|
{
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Path")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<ulong>("ContentHash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<long>("FileSize")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<long>("Ticks")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.HasKey("LibraryId", "Path");
|
|
|
|
b.HasIndex("LibraryId");
|
|
|
|
b.ToTable("LibraryScanSnapshots", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanStagingResultsEntity", b =>
|
|
{
|
|
b.Property<Guid>("LibraryScanId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Path")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<ulong>("ContentHash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<bool>("IsNew")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<bool>("NeedsRehash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<ulong>("PreviousContentHash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<long>("Size")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<long>("Ticks")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.HasKey("LibraryScanId", "Path");
|
|
|
|
b.HasIndex("LibraryScanId", "NeedsRehash");
|
|
|
|
b.ToTable("LibraryScanStagingResults", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookArtworkEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("ArtworkType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<ulong>("ContentHash")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("FileName")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime?>("LastUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<int>("Ordinal")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("Provider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.HasIndex("BookId", "ArtworkType", "Ordinal")
|
|
.IsUnique();
|
|
|
|
b.ToTable("BookArtwork", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookContributorEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("MediaContributorId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("Role")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MediaContributorId");
|
|
|
|
b.HasIndex("BookId", "MediaContributorId", "Role")
|
|
.IsUnique();
|
|
|
|
b.ToTable("BookContributors", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("ASIN")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(21);
|
|
|
|
b.Property<string>("AppleBooksId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(29);
|
|
|
|
b.Property<string>("BarnesAndNobleId")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(28);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(33);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(32);
|
|
|
|
b.Property<DateTime?>("DeletedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(42);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("Edition")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<string>("Format")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<string>("GoodreadsId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(22);
|
|
|
|
b.Property<string>("GoogleBooksId")
|
|
.HasMaxLength(12)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(27);
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(false)
|
|
.HasColumnOrder(41);
|
|
|
|
b.Property<string>("LCCN")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(23);
|
|
|
|
b.Property<string>("LanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("LanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<string>("LanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<DateTime?>("LastMetadataUpdateUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(39);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(36);
|
|
|
|
b.Property<string>("LibraryThingId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(26);
|
|
|
|
b.Property<string>("MetadataProvider")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(40);
|
|
|
|
b.Property<string>("MetadataStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(38);
|
|
|
|
b.Property<string>("OCLCNumber")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(24);
|
|
|
|
b.Property<string>("OpenLibraryId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(25);
|
|
|
|
b.Property<string>("OriginalLanguageCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<string>("OriginalLanguageName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<string>("OriginalLanguageNativeName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<DateOnly?>("OriginalReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<int?>("OriginalReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("OriginalTitle")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<int?>("PageCount")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<string>("Path")
|
|
.IsRequired()
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(37);
|
|
|
|
b.Property<string>("Publisher")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<DateOnly?>("ReReleaseDate")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<int?>("ReReleaseYear")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<string>("ReleaseCountry")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("ReleaseVersion")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(35);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(34);
|
|
|
|
b.Property<float?>("VolumeNumber")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(20);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryId", "MetadataStatus");
|
|
|
|
b.HasIndex("LibraryId", "Path")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("LibraryId", "IsDeleted", "DeletedOnUtc", "Title", "Id");
|
|
|
|
b.ToTable("Books", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<int>("EntryCount")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(0)
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<long>("Version")
|
|
.IsConcurrencyToken()
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(0L)
|
|
.HasColumnOrder(9);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId", "UpdatedOnUtc");
|
|
|
|
b.ToTable("Playlists", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntryEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<Guid>("MediaItemId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("MediaItemType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("PlaylistId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<long>("Position")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MediaItemId");
|
|
|
|
b.HasIndex("PlaylistId", "Position")
|
|
.IsUnique();
|
|
|
|
b.ToTable("PlaylistEntries", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Plugins.LibraryArtworkProviderConfigurationEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("PluginId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryId", "PluginId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LibraryArtworkProviderConfigurations", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Plugins.LibraryBookReaderConfigurationEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("PluginId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryId", "PluginId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LibraryBookReaderConfigurations", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Plugins.LibraryMetadataProviderConfigurationEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("PluginId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("LibraryId", "PluginId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("LibraryMetadataProviderConfigurations", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Plugins.PluginEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("Author")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("LoadError")
|
|
.HasMaxLength(2000)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("LoadStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<string>("SettingsJson")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Plugins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Scheduling.ScheduledJobEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<int?>("Hour")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<int?>("IntervalMinutes")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<DateTime?>("LastCompletedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<DateTime?>("LastStartedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<int?>("Minute")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid>("OwnerUserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("ScheduleType")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<string>("TaskType")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.ToTable("ScheduledJobs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Scheduling.ScheduledJobExecutionEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<DateTime?>("CompletedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<bool>("IsCycleRun")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<Guid>("ScheduledJobId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<DateTime>("StartedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("TaskType")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<bool>("WasCycleActive")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(6);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ScheduledJobId");
|
|
|
|
b.HasIndex("StartedOnUtc", "ScheduledJobId");
|
|
|
|
b.ToTable("ScheduledJobExecutions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Scheduling.SchedulerDisplayPreferencesEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<int>("DisplayTimeSpan")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("DisplayTimeUnit")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<string>("JobTypeFilter")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("SchedulerDisplayPreferences", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Themes.ThemeEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<string>("Author")
|
|
.IsRequired()
|
|
.HasMaxLength(80)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(300)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<string>("InstallSource")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime>("InstalledAtUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<bool?>("IsCurrent")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasDefaultValue(false)
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(80)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("PreviewPath")
|
|
.HasMaxLength(240)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("ThemeId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("IsCurrent")
|
|
.IsUnique()
|
|
.HasFilter("IsCurrent = 1");
|
|
|
|
b.HasIndex("ThemeId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Themes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<string>("TempPassword")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<DateTime?>("TempPasswordCreated")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<string>("TotpSecret")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Username")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Users", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserSettingsEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(0);
|
|
|
|
b.Property<Guid>("CreatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(6);
|
|
|
|
b.Property<DateTime>("CreatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(5);
|
|
|
|
b.Property<bool>("IsGaplessPlaybackEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(16);
|
|
|
|
b.Property<bool>("IsMuted")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(29);
|
|
|
|
b.Property<bool>("IsPaginationEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(2);
|
|
|
|
b.Property<bool>("IsThemeCachingEnabled")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(9);
|
|
|
|
b.Property<int>("ItemsPerPage")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(3);
|
|
|
|
b.Property<int>("ReplayGainMode")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(17);
|
|
|
|
b.Property<bool>("ShouldAggregateArtworkWhenMissing")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(13);
|
|
|
|
b.Property<bool>("ShouldAggregateMetadataWhenMissing")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(10);
|
|
|
|
b.Property<bool>("ShouldAutoplay")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(15);
|
|
|
|
b.Property<bool>("ShouldIgnoreThePrefixForAlphaPicker")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(4);
|
|
|
|
b.Property<bool>("ShouldKeepDownloadingWhilePaused")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(14);
|
|
|
|
b.Property<bool>("ShouldPreserveBookStyles")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(12);
|
|
|
|
b.Property<bool>("ShouldRenderPdfAsImages")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(11);
|
|
|
|
b.Property<int>("StreamingQuality")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(18);
|
|
|
|
b.Property<Guid?>("UpdatedBy")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(8);
|
|
|
|
b.Property<DateTime?>("UpdatedOnUtc")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(7);
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnOrder(1);
|
|
|
|
b.Property<double>("Volume")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(28);
|
|
|
|
b.Property<double>("VuMeterHighThreshold")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(23);
|
|
|
|
b.Property<double>("VuMeterMediumThreshold")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(22);
|
|
|
|
b.Property<int>("VuMeterOrientation")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(19);
|
|
|
|
b.Property<int>("VuMeterPeakHoldDurationInMilliseconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(25);
|
|
|
|
b.Property<double>("VuMeterPeakReleasePerSecond")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(27);
|
|
|
|
b.Property<double>("VuMeterReleasePerSecond")
|
|
.HasColumnType("REAL")
|
|
.HasColumnOrder(26);
|
|
|
|
b.Property<int>("VuMeterSegmentCount")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(20);
|
|
|
|
b.Property<int>("VuMeterSegmentGap")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(21);
|
|
|
|
b.Property<bool>("VuMeterShowPeak")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnOrder(24);
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("UserSettings", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("TrackGenres", b =>
|
|
{
|
|
b.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("GenreId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("TrackId", "GenreId");
|
|
|
|
b.HasIndex("GenreId");
|
|
|
|
b.ToTable("TrackGenres", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("TrackTags", b =>
|
|
{
|
|
b.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TagId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("TrackId", "TagId");
|
|
|
|
b.HasIndex("TagId");
|
|
|
|
b.ToTable("TrackTags", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("AlbumGenres", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("AlbumId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.GenreEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GenreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("AlbumTags", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("AlbumId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.TagEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("ArtistGenres", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("ArtistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.GenreEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GenreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("ArtistTags", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("ArtistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.TagEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("BookGenres", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("BookId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.GenreEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GenreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("BookTags", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("BookId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.TagEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.RolePermissionEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Authorization.PermissionEntity", "Permission")
|
|
.WithMany("RolePermissions")
|
|
.HasForeignKey("PermissionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Authorization.RoleEntity", "Role")
|
|
.WithMany("RolePermissions")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Permission");
|
|
|
|
b.Navigation("Role");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.UserPermissionEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Authorization.PermissionEntity", "Permission")
|
|
.WithMany("UserPermissions")
|
|
.HasForeignKey("PermissionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", "User")
|
|
.WithMany("UserPermissions")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Permission");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.UserRoleEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Authorization.RoleEntity", "Role")
|
|
.WithMany("UserRoles")
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", "User")
|
|
.WithOne("UserRole")
|
|
.HasForeignKey("Lumina.Application.Common.DataAccess.Entities.Authorization.UserRoleEntity", "UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Role");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Favorites.FavoriteEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaConsumption.MediaConsumptionRecordEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaConsumption.MediaResumePointEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumContributorEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", null)
|
|
.WithMany("Contributors")
|
|
.HasForeignKey("AlbumId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", "Artist")
|
|
.WithMany("Albums")
|
|
.HasForeignKey("ArtistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumCatalogNumberEntity", "CatalogNumbers", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("CatalogNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("AlbumId");
|
|
|
|
b1.ToTable("AlbumCatalogNumbers", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AlbumId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AudioRatingEntity", "Ratings", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("MaxValue")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<string>("Source")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("Value")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<int?>("VoteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("AlbumId");
|
|
|
|
b1.ToTable("AlbumRatings", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AlbumId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumReleaseTypeEntity", "ReleaseTypes", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("AlbumId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("ReleaseType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("AlbumId");
|
|
|
|
b1.ToTable("AlbumReleaseTypes", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("AlbumId");
|
|
});
|
|
|
|
b.Navigation("Artist");
|
|
|
|
b.Navigation("CatalogNumbers");
|
|
|
|
b.Navigation("Ratings");
|
|
|
|
b.Navigation("ReleaseTypes");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistContributorEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", null)
|
|
.WithMany("Contributors")
|
|
.HasForeignKey("ArtistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", b =>
|
|
{
|
|
b.OwnsOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.MusicAreaEntity", "Area", b1 =>
|
|
{
|
|
b1.Property<Guid>("ArtistEntityId");
|
|
|
|
b1.Property<string>("Disambiguation");
|
|
|
|
b1.Property<string>("Iso3166Code");
|
|
|
|
b1.Property<Guid>("MusicBrainzAreaId");
|
|
|
|
b1.Property<string>("Name")
|
|
.IsRequired();
|
|
|
|
b1.Property<string>("SortName");
|
|
|
|
b1.Property<string>("Type");
|
|
|
|
b1.HasKey("ArtistEntityId");
|
|
|
|
b1.ToTable("Artists");
|
|
|
|
b1
|
|
.ToJson("Area")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistEntityId");
|
|
});
|
|
|
|
b.OwnsOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.MusicAreaEntity", "BeginArea", b1 =>
|
|
{
|
|
b1.Property<Guid>("ArtistEntityId");
|
|
|
|
b1.Property<string>("Disambiguation");
|
|
|
|
b1.Property<string>("Iso3166Code");
|
|
|
|
b1.Property<Guid>("MusicBrainzAreaId");
|
|
|
|
b1.Property<string>("Name")
|
|
.IsRequired();
|
|
|
|
b1.Property<string>("SortName");
|
|
|
|
b1.Property<string>("Type");
|
|
|
|
b1.HasKey("ArtistEntityId");
|
|
|
|
b1.ToTable("Artists");
|
|
|
|
b1
|
|
.ToJson("BeginArea")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistEntityId");
|
|
});
|
|
|
|
b.OwnsOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.MusicAreaEntity", "EndArea", b1 =>
|
|
{
|
|
b1.Property<Guid>("ArtistEntityId");
|
|
|
|
b1.Property<string>("Disambiguation");
|
|
|
|
b1.Property<string>("Iso3166Code");
|
|
|
|
b1.Property<Guid>("MusicBrainzAreaId");
|
|
|
|
b1.Property<string>("Name")
|
|
.IsRequired();
|
|
|
|
b1.Property<string>("SortName");
|
|
|
|
b1.Property<string>("Type");
|
|
|
|
b1.HasKey("ArtistEntityId");
|
|
|
|
b1.ToTable("Artists");
|
|
|
|
b1
|
|
.ToJson("EndArea")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistEntityId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistAliasEntity", "Aliases", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<DateOnly?>("BeginDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<DateOnly?>("EndDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<bool>("IsEnded")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.Property<bool>("IsPrimary")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.Property<string>("Locale")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("SortName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Type")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("ArtistId");
|
|
|
|
b1.ToTable("ArtistAliases", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AudioRatingEntity", "Ratings", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("MaxValue")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<string>("Source")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("Value")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<int?>("VoteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("ArtistId");
|
|
|
|
b1.ToTable("ArtistRatings", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistIpiEntity", "Ipis", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("ArtistId");
|
|
|
|
b1.ToTable("ArtistIpis", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistIsniEntity", "Isnis", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("ArtistId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("ArtistId");
|
|
|
|
b1.ToTable("ArtistIsnis", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("ArtistId");
|
|
});
|
|
|
|
b.Navigation("Aliases");
|
|
|
|
b.Navigation("Area");
|
|
|
|
b.Navigation("BeginArea");
|
|
|
|
b.Navigation("EndArea");
|
|
|
|
b.Navigation("Ipis");
|
|
|
|
b.Navigation("Isnis");
|
|
|
|
b.Navigation("Ratings");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackContributorEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", null)
|
|
.WithMany("Contributors")
|
|
.HasForeignKey("TrackId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", "Album")
|
|
.WithMany("Tracks")
|
|
.HasForeignKey("AlbumId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AudioRatingEntity", "Ratings", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("MaxValue")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<string>("Source")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("Value")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<int?>("VoteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("TrackId");
|
|
|
|
b1.ToTable("TrackRatings", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TrackId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackIsrcEntity", "Isrcs", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(12)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("ISRC");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("TrackId");
|
|
|
|
b1.ToTable("TrackIsrcs", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TrackId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackMoodEntity", "Moods", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("TrackId");
|
|
|
|
b1.ToTable("TrackMoods", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TrackId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackWorkIswcEntity", "WorkIswcs", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("TrackId");
|
|
|
|
b1.ToTable("TrackWorkIswcs", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TrackId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackWorkLanguageEntity", "WorkLanguages", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("LanguageCode")
|
|
.IsRequired()
|
|
.HasMaxLength(5)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("LanguageName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("NativeName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("TrackId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("TrackId");
|
|
|
|
b1.ToTable("TrackWorkLanguages", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TrackId");
|
|
});
|
|
|
|
b.Navigation("Album");
|
|
|
|
b.Navigation("Isrcs");
|
|
|
|
b.Navigation("Moods");
|
|
|
|
b.Navigation("Ratings");
|
|
|
|
b.Navigation("WorkIswcs");
|
|
|
|
b.Navigation("WorkLanguages");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.DirectoryScanFingerprintEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("LibraryId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", "User")
|
|
.WithMany("Libraries")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryContentLocationEntity", "ContentLocations", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Path")
|
|
.IsRequired()
|
|
.HasMaxLength(260)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("Path");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("LibraryId");
|
|
|
|
b1.ToTable("LibraryContentLocations", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("LibraryId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryPathTemplatePartEntity", "PathTemplateParts", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<bool>("IsOptional")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.Property<string>("Kind")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("LibraryId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<int>("Position")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("Position");
|
|
|
|
b1.Property<string>("Representation")
|
|
.IsRequired()
|
|
.HasMaxLength(512)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("LibraryId", "Position")
|
|
.IsUnique();
|
|
|
|
b1.ToTable("LibraryPathTemplateParts", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("LibraryId");
|
|
});
|
|
|
|
b.Navigation("ContentLocations");
|
|
|
|
b.Navigation("PathTemplateParts");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", "Library")
|
|
.WithMany("LibraryScans")
|
|
.HasForeignKey("LibraryId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", "User")
|
|
.WithMany("LibraryScans")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Library");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanResultEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanEntity", "LibraryScan")
|
|
.WithMany("LibraryScanResults")
|
|
.HasForeignKey("LibraryScanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("LibraryScan");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanSnapshotEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", "Library")
|
|
.WithMany()
|
|
.HasForeignKey("LibraryId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Library");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanStagingResultsEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("LibraryScanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookArtworkEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", null)
|
|
.WithMany("Artwork")
|
|
.HasForeignKey("BookId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookContributorEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", null)
|
|
.WithMany("Contributors")
|
|
.HasForeignKey("BookId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", b =>
|
|
{
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookRatingEntity", "Ratings", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("MaxValue")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<string>("Source")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<decimal>("Value")
|
|
.HasColumnType("decimal(3,2)");
|
|
|
|
b1.Property<int?>("VoteCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("BookId");
|
|
|
|
b1.ToTable("BookRatings", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("BookId");
|
|
});
|
|
|
|
b.OwnsMany("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.IsbnEntity", "ISBNs", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<Guid>("BookId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Format")
|
|
.IsRequired()
|
|
.HasMaxLength(6)
|
|
.HasColumnType("TEXT");
|
|
|
|
b1.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasMaxLength(13)
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("ISBN");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("BookId");
|
|
|
|
b1.ToTable("BookISBNs", (string)null);
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("BookId");
|
|
});
|
|
|
|
b.Navigation("ISBNs");
|
|
|
|
b.Navigation("Ratings");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntryEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntity", null)
|
|
.WithMany("Entries")
|
|
.HasForeignKey("PlaylistId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserSettingsEntity", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", null)
|
|
.WithOne()
|
|
.HasForeignKey("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserSettingsEntity", "UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("TrackGenres", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.GenreEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GenreId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TrackId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("TrackTags", b =>
|
|
{
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.Common.TagEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("TrackId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.PermissionEntity", b =>
|
|
{
|
|
b.Navigation("RolePermissions");
|
|
|
|
b.Navigation("UserPermissions");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Authorization.RoleEntity", b =>
|
|
{
|
|
b.Navigation("RolePermissions");
|
|
|
|
b.Navigation("UserRoles");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.AlbumEntity", b =>
|
|
{
|
|
b.Navigation("Contributors");
|
|
|
|
b.Navigation("Tracks");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.ArtistEntity", b =>
|
|
{
|
|
b.Navigation("Albums");
|
|
|
|
b.Navigation("Contributors");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.AudioLibrary.MusicLibrary.TrackEntity", b =>
|
|
{
|
|
b.Navigation("Contributors");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryEntity", b =>
|
|
{
|
|
b.Navigation("LibraryScans");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.Management.LibraryScanEntity", b =>
|
|
{
|
|
b.Navigation("LibraryScanResults");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.MediaLibrary.WrittenContentLibrary.BookLibrary.BookEntity", b =>
|
|
{
|
|
b.Navigation("Artwork");
|
|
|
|
b.Navigation("Contributors");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.Playlists.PlaylistEntity", b =>
|
|
{
|
|
b.Navigation("Entries");
|
|
});
|
|
|
|
modelBuilder.Entity("Lumina.Application.Common.DataAccess.Entities.UsersManagement.UserEntity", b =>
|
|
{
|
|
b.Navigation("Libraries");
|
|
|
|
b.Navigation("LibraryScans");
|
|
|
|
b.Navigation("UserPermissions");
|
|
|
|
b.Navigation("UserRole");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|