Games have icon and logo

This commit is contained in:
2025-05-26 17:02:13 +02:00
parent 89a0dc1bc2
commit e11390f632
6 changed files with 229 additions and 5 deletions

View File

@ -4,10 +4,12 @@ using Newtonsoft.Json;
namespace SQLiteEF;
[PrimaryKey("AppId")]
public class Game(ulong appId, string name)
public class Game(ulong appId, string name, string? iconUrl, string? logoUrl)
{
public ulong AppId { get; init; } = appId;
public string Name { get; init; } = name;
public string Name { get; set; } = name;
public string? IconUrl { get; set; } = iconUrl;
public string? LogoUrl { get; set; } = logoUrl;
[JsonIgnore] public ICollection<Player> PlayedBy { get; init; } = null!;
[JsonIgnore] public ICollection<TrackedTime> TrackedTimes { get; init; } = null!;
}