using Bitvault.Data; using Microsoft.EntityFrameworkCore; namespace Bitvault.Data; public class VaultDbContext(DbContextOptions options) : DbContext(options) { public DbSet Categories { get; set; } public DbSet Documents { get; set; } public DbSet Items { get; set; } public DbSet Tags { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasMany(x => x.Tags) .WithOne(); modelBuilder.Entity() .HasMany(x => x.Documents) .WithOne(); } }