Files
SNote/Server/Data/ServerDbContext.cs
T

23 lines
631 B
C#
Raw Normal View History

2026-06-01 05:09:20 +10:00
using Microsoft.EntityFrameworkCore;
using SNote.Models;
namespace SNote.Server.Data;
public class ServerDbContext : DbContext
{
public ServerDbContext(DbContextOptions<ServerDbContext> options) : base(options)
{
}
public DbSet<User> Users => Set<User>();
public DbSet<Node> Nodes => Set<Node>();
public DbSet<NodeKey> NodeKeys => Set<NodeKey>();
public DbSet<PendingShare> PendingShares => Set<PendingShare>();
public DbSet<AclEntry> AclEntries => Set<AclEntry>();
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}