using Knot.Shared.Kernel;

namespace Knot.Modules.Messaging.Domain;

public sealed class ReadReceipt : Entity<Guid>
{
    public Guid MessageId { get; private set; }
    public Guid UserId { get; private set; }
    public DateTime ReadAt { get; private set; }

    // Для EF Core
    private ReadReceipt() : base(Guid.Empty) { }

    public ReadReceipt(Guid messageId, Guid userId) : base(Guid.NewGuid())
    {
        MessageId = messageId;
        UserId = userId;
        ReadAt = DateTime.UtcNow;
    }
}


