Add models

This commit is contained in:
2025-04-09 20:30:44 +02:00
parent cb60f3de31
commit e82e412c18
11 changed files with 137 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
namespace GameIdeas.Shared.Model;
public partial class User
{
public User()
{
CreationGames = new HashSet<Game>();
ModificationGames = new HashSet<Game>();
}
public Guid Id { get; set; }
public string Username { get; set; } = null!;
public string Password { get; set; } = null!;
public int Role { get; set; }
public virtual ICollection<Game> CreationGames { get; set; }
public virtual ICollection<Game> ModificationGames { get; set; }
}