using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.AspNetCore.Identity; namespace Newsbot.Collector.Domain.Entities; /// /// This defines the sources a user will want to see as a feed. /// public class UserSourceSubscriptionEntity { [Key] public Guid Id { get; set; } public Guid SourceId { get; set; } public DateTimeOffset DateAdded { get; set; } public string? UserId { get; set; } [ForeignKey(nameof(UserId))] public IdentityUser? User { get; set; } }