mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-01 13:14:30 +01:00
26 lines
645 B
C#
26 lines
645 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
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);
|
|
}
|
|
}
|
|
}
|