summaryrefslogtreecommitdiff
path: root/backend/Elements.Data/ApplicationDbContext.cs
diff options
context:
space:
mode:
authorPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-21 11:55:33 +0200
committerPaweł Bernaciak <pawelbernaciak@zohomail.eu>2023-10-21 11:55:33 +0200
commit12fef7cbaf2073f9cc349ed765ea140be0259d8e (patch)
tree83412d050139bcdbd11eedffa61e1d0c9862dbed /backend/Elements.Data/ApplicationDbContext.cs
parent17785848eb53f8d0420f6b6b3be00a0d10be4e1e (diff)
Basic API auth and Google login
Diffstat (limited to 'backend/Elements.Data/ApplicationDbContext.cs')
-rw-r--r--backend/Elements.Data/ApplicationDbContext.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/backend/Elements.Data/ApplicationDbContext.cs b/backend/Elements.Data/ApplicationDbContext.cs
index 619719a..a912cc4 100644
--- a/backend/Elements.Data/ApplicationDbContext.cs
+++ b/backend/Elements.Data/ApplicationDbContext.cs
@@ -1,7 +1,14 @@
-using Microsoft.EntityFrameworkCore;
+using Elements.Data.Models;
+using Microsoft.EntityFrameworkCore;
namespace Elements.Data;
public class ApplicationDbContext : DbContext
{
+ public DbSet<Element> Elements { get; set; }
+ public DbSet<User> Users { get; set; }
+ public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
+ {
+
+ }
}