mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-17 12:34:14 -04:00
* Refactored the Genre code to be faster and used a dictonary to avoid some lookups. May fix the rare foreign constraint issue. * Refactored tag to the same implementation as Genre. Ensure when grabbing tags from ComicInfo, we normalize and throw out duplicates. * Removed an internal "external" field that was planned for Genres and Tags, but now with new plugin architecture, not needed.
17 lines
443 B
C#
17 lines
443 B
C#
using System.Collections.Generic;
|
|
using API.Entities.Metadata;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace API.Entities;
|
|
|
|
[Index(nameof(NormalizedTitle), IsUnique = true)]
|
|
public class Tag
|
|
{
|
|
public int Id { get; set; }
|
|
public string Title { get; set; }
|
|
public string NormalizedTitle { get; set; }
|
|
|
|
public ICollection<SeriesMetadata> SeriesMetadatas { get; set; }
|
|
public ICollection<Chapter> Chapters { get; set; }
|
|
}
|