Files
game-ideas/src/GameIdeas/GameIdeas.Shared/Model/Game.cs
2025-04-21 01:53:58 +02:00

34 lines
1.3 KiB
C#

namespace GameIdeas.Shared.Model;
public partial class Game
{
public Game()
{
GamePlatforms = new HashSet<GamePlatform>();
GameProperties = new HashSet<GameProperty>();
GameTags = new HashSet<GameTag>();
GamePublishers = new HashSet<GamePublisher>();
GameDevelopers = new HashSet<GameDeveloper>();
}
public int Id { get; set; }
public string Title { get; set; } = null!;
public DateTime? ReleaseDate { get; set; }
public DateTime CreationDate { get; set; }
public string CreationUserId { get; set; } = null!;
public DateTime? ModificationDate { get; set; }
public string? ModificationUserId { get; set; }
public double? StorageSpace { get; set; }
public string? Description { get; set; }
public int Interest { get; set; }
public virtual User CreationUser { get; set; } = null!;
public virtual User? ModificationUser { get; set; }
public virtual ICollection<GamePlatform> GamePlatforms { get; set; }
public virtual ICollection<GameProperty> GameProperties { get; set; }
public virtual ICollection<GameTag> GameTags { get; set; }
public virtual ICollection<GamePublisher> GamePublishers { get; set; }
public virtual ICollection<GameDeveloper> GameDevelopers { get; set; }
}