using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace NostrStreamer.Database.Configuration; public class PaymentsConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(a => a.PubKey); builder.Property(a => a.Invoice) .IsRequired(); builder.Property(a => a.IsPaid) .IsRequired(); } }