using System.ComponentModel.DataAnnotations;

namespace Domain.Entities.Forum.Posts
{
    public class Tag
    {
        public List<PostTag> PostTag { get; set; } = [];

        [Key]
        public int ID { get; set; }

        public string Name { get; set; } = default!;

        public string Slug { get; set; } = default!;

        public uint UsageCount { get; set; } = 0;

        public DateTime? UpdatedAt { get; set; }

        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    }
}