Change address if invoice get partially paid

This commit is contained in:
nicolas.dorier
2017-10-25 01:41:01 +09:00
parent c79db1dc99
commit 55a4c3c08d
14 changed files with 865 additions and 145 deletions

View File

@@ -26,6 +26,11 @@ namespace BTCPayServer.Data
get; set;
}
public DbSet<HistoricalAddressInvoiceData> HistoricalAddressInvoices
{
get; set;
}
public DbSet<PendingInvoiceData> PendingInvoices
{
get; set;
@@ -118,6 +123,13 @@ namespace BTCPayServer.Data
b.HasIndex(o => o.SIN);
b.HasIndex(o => o.StoreDataId);
});
builder.Entity<HistoricalAddressInvoiceData>()
.HasKey(o => new
{
o.InvoiceDataId,
o.Address
});
}
}
}