using System.ComponentModel.DataAnnotations;

namespace GameList.Domain;

public class Vote
{
    public int Id { get; set; }

    [Required]
    public Guid PlayerId { get; set; }
    public Player? Player { get; set; }

    [Required]
    public int SuggestionId { get; set; }
    public Suggestion? Suggestion { get; set; }

    [Range(0, 10)]
    public int Score { get; set; }

    public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
}
