using Domain.Entities.Developers; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Persistence.Configurations.Developers; public class ApiRequestLogConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasIndex(x => x.RequestedAt); builder.HasIndex(x => x.ApplicationID); builder.HasIndex(x => x.PatID); builder.ToTable(nameof(ApiRequestLog), x => x.HasComment("공개 API 호출 로그")); builder.HasKey(x => x.ID); builder.Property(x => x.Endpoint).HasMaxLength(200).IsRequired(); builder.Property(x => x.Method).HasMaxLength(10).IsRequired(); builder.Property(x => x.IpAddress).HasMaxLength(45); builder.Property(x => x.RequestedAt).IsRequired(); } }