using System.Collections.Generic;
using API.Entities.Metadata;
using Microsoft.EntityFrameworkCore;

namespace API.Entities;

[Index(nameof(NormalizedTitle), nameof(ExternalTag), IsUnique = true)]
public class Tag
{
    public int Id { get; set; }
    public string Title { get; set; }
    public string NormalizedTitle { get; set; }
    public bool ExternalTag { get; set; }

    public ICollection<SeriesMetadata> SeriesMetadatas { get; set; }
    public ICollection<Chapter> Chapters { get; set; }
}
