Upgrade to .NET 10 and finalize foundation scaffold
This commit is contained in:
21
Domain/Vote.cs
Normal file
21
Domain/Vote.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user