using System.ComponentModel.DataAnnotations;
namespace FinlyticNews.Entities;
///
/// Represents a news or feed source configuration retrieved from the database to discover article links.
///
public class ArticleSourceEntity
{
///
/// Gets or sets the unique primary key identifier.
///
[Key]
public Guid Id { get; set; } = Guid.NewGuid();
///
/// Gets or sets the target URL or domain feed address (e.g., RSS XML URL or HTML listing URL).
///
[Required]
public string Source { get; set; } = string.Empty;
///
/// Gets or sets the human-readable display name of the news provider.
///
[Required]
public string Name { get; set; } = string.Empty;
///
/// Gets or sets the adapter type keyword used to resolve the parsing adapter (e.g., "rss", "finanznachrichten").
///
[Required]
public string Type { get; set; } = string.Empty;
}