using Domain.Entities.Store; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Infrastructure.Persistence.Configurations.Store; public sealed class GameLanguageConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable(nameof(GameLanguage), t => t.HasComment("게임 지원 언어 마스터")); builder.HasKey(x => x.ID); builder.Property(x => x.KorName).HasMaxLength(100).IsRequired().HasComment("언어 한글명"); builder.Property(x => x.EngName).HasMaxLength(100).HasComment("언어 영문명"); builder.Property(x => x.Order).IsRequired(); builder.Property(x => x.IsActive).IsRequired(); builder.Property(x => x.CreatedAt).IsRequired(); builder.Property(x => x.UpdatedAt); builder.HasIndex(x => x.KorName).IsUnique(); builder.HasIndex(x => new { x.IsActive, x.Order }); } }