Add db context
All checks were successful
Game Ideas build for PR / build_blazor_app (pull_request) Successful in 36s

This commit is contained in:
2025-04-09 01:59:28 +02:00
parent 3d5056ce91
commit cb60f3de31
5 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
namespace GameIdeas.Shared.Model;
public partial class Game
{
public Game()
{
GamePlatforms = new HashSet<GamePlatform>();
}
public int Id { get; set; }
public string Title { get; set; } = null!;
public DateTime? ReleaseDate { get; set; }
public DateTime CreationDate { get; set; }
public DateTime? ModificationDate { get; set; }
public double? StorageSpace { get; set; }
public string? Description { get; set; }
public int? Interest { get; set; }
public virtual ICollection<GamePlatform> GamePlatforms { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace GameIdeas.Shared.Model;
public partial class GamePlatform
{
public int GameId { get; set; }
public int PlatformId { get; set; }
public virtual Game Game { get; set; } = null!;
public virtual Platform Platform { get; set; } = null!;
}

View File

@@ -0,0 +1,8 @@
namespace GameIdeas.Shared.Model;
public partial class Platform
{
public int Id { get; set; }
public string Libelle { get; set; } = null!;
public string? Url { get; set; }
}