using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entities
{
    /// <summary>
    /// define an entity for a player
    /// properties :
    ///     Id : identifier in the database
    ///     Nickname : nickname for the player
    ///     HashedPassword : hashed of the password of the player
    /// </summary>
    [Table("Player")]
    public class PlayerEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [Required]
        public string Nickname { get; set; } = null!;
        [Required]
        public string HashedPassword { get; set; } = null!;
    }
}
