This commit is contained in:
Ryan Peters 2023-04-03 22:15:48 -04:00
parent 60c8910425
commit aa20adb295
3 changed files with 20 additions and 1 deletions

View File

@ -7,5 +7,7 @@ public class DbContext : IdentityDbContext<User, IdentityRole<Guid>, Guid>
{ {
public DbContext(DbContextOptions<DbContext> options) : base(options) { } public DbContext(DbContextOptions<DbContext> options) : base(options) { }
public DbSet<Card> Cards { get; set; } public DbSet<Card> Deck { get; set; }
public DbSet<LayoutCard> LayoutCards { get; set; }
} }

8
Entities/Hand.cs Normal file
View File

@ -0,0 +1,8 @@
namespace Sequence.Entities;
public class Hand
{
public Guid Id { get; set; }
public User User { get; set; }
public ICollection<Card> Cards { get; set; }
}

9
Entities/LayoutCard.cs Normal file
View File

@ -0,0 +1,9 @@
namespace Sequence.Entities;
public class LayoutCard
{
public Guid Id { get; set; }
public Card Card { get; set; }
public int PositionX { get; set; }
public int PositionY { get; set; }
}