using System;

namespace Knot.Modules.Messaging.Domain;

public class PollVote
{
    public Guid PollId { get; private set; }
    public Guid UserId { get; private set; }
    public Guid OptionId { get; private set; }
    public DateTime VotedAt { get; private set; }

    private PollVote() { } // EF

    public PollVote(Guid pollId, Guid userId, Guid optionId, DateTime votedAt)
    {
        PollId = pollId;
        UserId = userId;
        OptionId = optionId;
        VotedAt = votedAt;
    }
}
