using API.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace API.Database.Configurations { public class AppUserConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("Users"); builder.Property(x => x.CreatedAt).IsRequired(); builder.Property(x => x.UpdatedAt).IsRequired(); builder.Property(x => x.IsAdmin).IsRequired(); builder.Property(x => x.IsActive).IsRequired(); builder.Property(x => x.MustChangePassword).IsRequired(); } } }