hopefully not a horribly foolish refactoring

This commit is contained in:
john 2025-05-11 23:26:09 +02:00
parent 59d660165f
commit 1ecaf64dea
82 changed files with 782 additions and 398 deletions

View file

@ -0,0 +1,16 @@
using Femto.Common.Infrastructure.Outbox;
using Microsoft.EntityFrameworkCore;
namespace Femto.Modules.Authentication.Data;
internal class AuthenticationContext : DbContext, IOutboxContext
{
public virtual DbSet<OutboxEntry> Outbox { get; }
protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.HasDefaultSchema("authn");
builder.ApplyConfigurationsFromAssembly(typeof(AuthenticationContext).Assembly);
}
}