You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
607 B
22 lines
607 B
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("Players")]
|
|
public class PlayerEntity
|
|
{
|
|
[Key]
|
|
public uint Id { get; set; }
|
|
public string Nickname { get; set; } = null!;
|
|
public string HashedPassword { get; set; } = null!;
|
|
}
|
|
}
|