Implemented with Antigravity.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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>();
|
||||
public DbSet<PeerServer> PeerServers => Set<PeerServer>();
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user