Insert credit payments

This commit is contained in:
2023-08-31 14:20:01 +01:00
parent 201344b622
commit 31144cffa3
8 changed files with 389 additions and 6 deletions

View File

@ -8,8 +8,7 @@ public class PaymentsConfiguration : IEntityTypeConfiguration<Payment>
public void Configure(EntityTypeBuilder<Payment> builder)
{
builder.HasKey(a => a.PaymentHash);
builder.Property(a => a.Invoice)
.IsRequired();
builder.Property(a => a.Invoice);
builder.Property(a => a.IsPaid)
.IsRequired();