17 lines
448 B
C#
17 lines
448 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace GameList.Domain;
|
|
|
|
public class Player
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
[MaxLength(64)]
|
|
public string? DisplayName { get; set; }
|
|
|
|
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public ICollection<Suggestion> Suggestions { get; set; } = new List<Suggestion>();
|
|
public ICollection<Vote> Votes { get; set; } = new List<Vote>();
|
|
}
|