From aa20adb295cabb213eca4ae7ebdc9664673cba0e Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 3 Apr 2023 22:15:48 -0400 Subject: [PATCH] progress --- DbContext.cs | 4 +++- Entities/Hand.cs | 8 ++++++++ Entities/LayoutCard.cs | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 Entities/Hand.cs create mode 100644 Entities/LayoutCard.cs diff --git a/DbContext.cs b/DbContext.cs index 2582ff5..ded20d8 100644 --- a/DbContext.cs +++ b/DbContext.cs @@ -7,5 +7,7 @@ public class DbContext : IdentityDbContext, Guid> { public DbContext(DbContextOptions options) : base(options) { } - public DbSet Cards { get; set; } + public DbSet Deck { get; set; } + public DbSet LayoutCards { get; set; } + } \ No newline at end of file diff --git a/Entities/Hand.cs b/Entities/Hand.cs new file mode 100644 index 0000000..25f24bc --- /dev/null +++ b/Entities/Hand.cs @@ -0,0 +1,8 @@ +namespace Sequence.Entities; + +public class Hand +{ + public Guid Id { get; set; } + public User User { get; set; } + public ICollection Cards { get; set; } +} \ No newline at end of file diff --git a/Entities/LayoutCard.cs b/Entities/LayoutCard.cs new file mode 100644 index 0000000..7e96963 --- /dev/null +++ b/Entities/LayoutCard.cs @@ -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; } +}