22 lines
564 B
C#
22 lines
564 B
C#
using Knot.Shared.Kernel;
|
|
|
|
namespace Knot.Modules.Identity.Domain;
|
|
|
|
public sealed class StoryReaction : Entity<Guid>
|
|
{
|
|
public Guid StoryId { get; set; }
|
|
public Guid UserId { get; set; }
|
|
public string Emoji { get; set; } = string.Empty;
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
private StoryReaction() : base(Guid.NewGuid()) { }
|
|
|
|
public StoryReaction(Guid storyId, Guid userId, string emoji) : base(Guid.NewGuid())
|
|
{
|
|
StoryId = storyId;
|
|
UserId = userId;
|
|
Emoji = emoji;
|
|
CreatedAt = DateTime.UtcNow;
|
|
}
|
|
}
|