.kavitaignore no more (#2442)

This commit is contained in:
Joe Milazzo 2023-11-19 12:15:32 -06:00 committed by GitHub
parent cd27efecdd
commit 7221501c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 5968 additions and 1026 deletions

View file

@ -0,0 +1,19 @@
using System.ComponentModel;
namespace API.Entities.Enums;
/// <summary>
/// Represents a set of file types that can be scanned
/// </summary>
public enum FileTypeGroup
{
[Description("Archive")]
Archive = 1,
[Description("EPub")]
Epub = 2,
[Description("Pdf")]
Pdf = 3,
[Description("Images")]
Images = 4
}

View file

@ -2,7 +2,6 @@
using System.Collections.Generic;
using API.Entities.Enums;
using API.Entities.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace API.Entities;
@ -44,6 +43,8 @@ public class Library : IEntityDate
public DateTime Created { get; set; }
public DateTime LastModified { get; set; }
public DateTime CreatedUtc { get; set; }
@ -57,6 +58,8 @@ public class Library : IEntityDate
public ICollection<FolderPath> Folders { get; set; } = null!;
public ICollection<AppUser> AppUsers { get; set; } = null!;
public ICollection<Series> Series { get; set; } = null!;
public ICollection<LibraryFileTypeGroup> LibraryFileTypes { get; set; } = new List<LibraryFileTypeGroup>();
public ICollection<LibraryExcludePattern> LibraryExcludePatterns { get; set; } = new List<LibraryExcludePattern>();
public void UpdateLastModified()
{

View file

@ -0,0 +1,10 @@
namespace API.Entities;
public class LibraryExcludePattern
{
public int Id { get; set; }
public string Pattern { get; set; }
public int LibraryId { get; set; }
public Library Library { get; set; } = null!;
}

View file

@ -0,0 +1,12 @@
using API.Entities.Enums;
namespace API.Entities;
public class LibraryFileTypeGroup
{
public int Id { get; set; }
public FileTypeGroup FileTypeGroup { get; set; }
public int LibraryId { get; set; }
public Library Library { get; set; } = null!;
}