Files
forkmessager/apps/server-net/src/Modules/Identity/Domain/StoryReaction.cs
Халимов Рустам 893c9f2316 Очистка мусора
2026-03-15 21:36:49 +03:00

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;
}
}