Store fee

This commit is contained in:
2024-03-22 12:59:12 +00:00
parent 211c6b9469
commit 37f84592f4
7 changed files with 519 additions and 9 deletions

View File

@ -22,9 +22,11 @@ public class PaymentsConfiguration : IEntityTypeConfiguration<Payment>
builder.Property(a => a.Nostr);
builder.Property(a => a.Type)
.IsRequired();
builder.Property(a => a.Fee)
.IsRequired();
builder.HasOne(a => a.User)
.WithMany(a => a.Payments)
.HasForeignKey(a => a.PubKey);
}
}
}