.kavitaignore no more (#2442)
This commit is contained in:
parent
cd27efecdd
commit
7221501c4d
91 changed files with 5968 additions and 1026 deletions
19
API/Entities/Enums/FileTypeGroup.cs
Normal file
19
API/Entities/Enums/FileTypeGroup.cs
Normal 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
|
||||
|
||||
}
|
|
@ -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()
|
||||
{
|
||||
|
|
10
API/Entities/LibraryExcludedGlob.cs
Normal file
10
API/Entities/LibraryExcludedGlob.cs
Normal 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!;
|
||||
}
|
12
API/Entities/LibraryFileTypeGroup.cs
Normal file
12
API/Entities/LibraryFileTypeGroup.cs
Normal 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!;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue