namespace LiteCharms.Features.MidrandBooks.Payments.Entities; public sealed class PaymentGatewayConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.ToTable("Gateways"); builder.HasKey(f => f.Id); builder.Property(f => f.CreatedAt).IsRequired().ValueGeneratedOnAdd().HasDefaultValueSql("now()"); builder.Property(f => f.UpdatedAt); builder.Property(f => f.Website).IsRequired(false); builder.Property(f => f.IsSandbox); builder.Property(f => f.MerchantKey).IsRequired(); builder.Property(f => f.MerchantId).IsRequired(); builder.Property(f => f.Enabled); builder.Property(f => f.Name).IsRequired(); } }