2025-01-16 00:32:36 +00:00
|
|
|
using Microsoft.AspNetCore.Identity;
|
2025-01-11 23:30:12 +00:00
|
|
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
namespace Trazo.Model;
|
|
|
|
|
2025-01-16 00:32:36 +00:00
|
|
|
public class ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : IdentityDbContext<User, IdentityRole<Guid>, Guid>(options)
|
2025-01-11 23:30:12 +00:00
|
|
|
{
|
|
|
|
protected override void OnModelCreating(ModelBuilder builder)
|
|
|
|
{
|
|
|
|
base.OnModelCreating(builder);
|
|
|
|
|
|
|
|
builder.Entity<User>();
|
|
|
|
|
|
|
|
builder.HasDefaultSchema("identity");
|
|
|
|
}
|
|
|
|
}
|