using Femto.Common.Infrastructure.Outbox; using Femto.Modules.Auth.Models; using Microsoft.EntityFrameworkCore; namespace Femto.Modules.Auth.Data; internal class AuthContext : DbContext, IOutboxContext { public virtual DbSet Users { get; } public virtual DbSet Outbox { get; } protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); builder.HasDefaultSchema("authn"); builder.ApplyConfigurationsFromAssembly(typeof(AuthContext).Assembly); } }