mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
19 lines
517 B
C#
19 lines
517 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class PendingInvoiceData
|
|
{
|
|
public string Id { get; set; }
|
|
public InvoiceData InvoiceData { get; set; }
|
|
|
|
internal static void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
builder.Entity<PendingInvoiceData>()
|
|
.HasOne(o => o.InvoiceData)
|
|
.WithMany(o => o.PendingInvoices)
|
|
.HasForeignKey(o => o.Id).OnDelete(DeleteBehavior.Cascade);
|
|
}
|
|
}
|
|
}
|