Files
SNote/Server/Data/ServerDbContext.cs
2026-06-01 06:38:20 +10:00

23 lines
631 B
C#

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);
}
}