2020-06-27 21:55:16 +09:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2017-10-12 16:33:53 +09:00
|
|
|
|
|
|
|
namespace BTCPayServer.Data
|
|
|
|
{
|
|
|
|
public class PendingInvoiceData
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
public string Id
|
|
|
|
{
|
|
|
|
get; set;
|
|
|
|
}
|
2018-07-19 19:31:17 +09:00
|
|
|
public InvoiceData InvoiceData { get; set; }
|
2020-06-27 21:55:16 +09:00
|
|
|
|
|
|
|
internal static void OnModelCreating(ModelBuilder builder)
|
|
|
|
{
|
|
|
|
builder.Entity<PendingInvoiceData>()
|
|
|
|
.HasOne(o => o.InvoiceData)
|
|
|
|
.WithMany(o => o.PendingInvoices)
|
|
|
|
.HasForeignKey(o => o.Id).OnDelete(DeleteBehavior.Cascade);
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
}
|
2017-10-12 16:33:53 +09:00
|
|
|
}
|