Upgrade to .NET 10 and finalize foundation scaffold
This commit is contained in:
32
Domain/Suggestion.cs
Normal file
32
Domain/Suggestion.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GameList.Domain;
|
||||
|
||||
public class Suggestion
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public Guid PlayerId { get; set; }
|
||||
public Player? Player { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(100)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(50)]
|
||||
public string? Genre { get; set; }
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? ScreenshotUrl { get; set; }
|
||||
|
||||
[MaxLength(2048)]
|
||||
public string? YoutubeUrl { get; set; }
|
||||
|
||||
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
|
||||
public ICollection<Vote> Votes { get; set; } = new List<Vote>();
|
||||
}
|
||||
Reference in New Issue
Block a user