using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; namespace FinlyticNews.Entities; /// /// Represents a specific financial asset class match linked to a news article. /// public class MatchedAssetEntity { /// /// Gets or sets the unique primary key identifier. /// [Key] public Guid Id { get; set; } = Guid.NewGuid(); /// /// Gets or sets the foreign key pointing to the associated news article. /// [Required] public Guid NewsArticleId { get; set; } /// /// Gets or sets the navigation property for the associated news article. /// [JsonIgnore] public NewsArticleEntity? NewsArticle { get; set; } /// /// Gets or sets the ISIN of the matched asset. /// [Required] public string Isin { get; set; } = string.Empty; /// /// Gets or sets the matched asset name. /// [Required] public string Name { get; set; } = string.Empty; }