26 lines
720 B
C#
26 lines
720 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace FinlyticNews.Entities;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
[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;
|
|
}
|