mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 13:43:46 +01:00
a2fa688cde
* Create new tables * wip * wip * Refactor LegacyLabel * Remove LabelFactory * Add migration * wip * wip * Add pull-payment attachment to tx * Address kukks points
32 lines
912 B
C#
32 lines
912 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
[Obsolete]
|
|
public class WalletTransactionData
|
|
{
|
|
public string WalletDataId { get; set; }
|
|
public WalletData WalletData { get; set; }
|
|
public string TransactionId { get; set; }
|
|
public string Labels { get; set; }
|
|
public byte[] Blob { get; set; }
|
|
|
|
|
|
internal static void OnModelCreating(ModelBuilder builder)
|
|
{
|
|
builder.Entity<WalletTransactionData>()
|
|
.HasKey(o => new
|
|
{
|
|
o.WalletDataId,
|
|
#pragma warning disable CS0618
|
|
o.TransactionId
|
|
#pragma warning restore CS0618
|
|
});
|
|
builder.Entity<WalletTransactionData>()
|
|
.HasOne(o => o.WalletData)
|
|
.WithMany(w => w.WalletTransactions).OnDelete(DeleteBehavior.Cascade);
|
|
}
|
|
}
|
|
}
|