using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace FinlyticNews.Entities; /// /// Entity representing a blocked news URL (e.g. duplicates, missing content, or no matched assets). /// Prevents redundant re-discovery and re-scraping of known bad or duplicate URLs. /// [Table("BlockedNewsUrls")] public class BlockedNewsUrlEntity { [Key] public Guid Id { get; set; } = Guid.NewGuid(); [Required] [MaxLength(2048)] public string Url { get; set; } = string.Empty; [MaxLength(256)] public string Reason { get; set; } = string.Empty; public DateTime BlockedAtUtc { get; set; } = DateTime.UtcNow; }