Implemented with Antigravity.

This commit is contained in:
Creeper Lv
2026-06-01 05:09:20 +10:00
parent aaad155a30
commit e8ab8e0684
38 changed files with 3908 additions and 47 deletions
+23
View File
@@ -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);
}
}