20 lines
573 B
C#
20 lines
573 B
C#
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using Microsoft.AspNetCore.Identity;
|
||
|
|
||
|
namespace Newsbot.Collector.Domain.Entities;
|
||
|
|
||
|
/// <summary>
|
||
|
/// This defines the sources a user will want to see as a feed.
|
||
|
/// </summary>
|
||
|
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; }
|
||
|
}
|