using System.ComponentModel.DataAnnotations;

namespace OpenArchival.DataAccess;

public class BlogPostTag
{
    [Key]
    public int Id { get; set; }
    
    /// <summary>
    /// The name of this tags
    /// </summary>
    public string Name { get; set; } = "";

    /// <summary>
    /// Blog posts assocaited with this tag
    /// </summary>
    public List<BlogPost> BlogPosts { get; set; } = [];

    public override string ToString()
    {
        return Name; 
    }
}
