< Summary - Combined Code Coverage

Line coverage
0%
Covered lines: 0
Uncovered lines: 535
Coverable lines: 535
Total lines: 614
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: Up(...)100%210%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%210%

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Infrastructure.Persistence.Sqlite/Migrations/20251106194254_AddFieldsForChannelOpen.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace NLightning.Infrastructure.Persistence.Sqlite.Migrations
 6{
 7    /// <inheritdoc />
 8    public partial class AddFieldsForChannelOpen : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 013            migrationBuilder.AddColumn<string>(
 014                name: "Type",
 015                table: "Peers",
 016                type: "TEXT",
 017                nullable: false,
 018                defaultValue: "");
 19
 020            migrationBuilder.AddColumn<byte>(
 021                name: "ChangeAddressAddressType",
 022                table: "Channels",
 023                type: "INTEGER",
 024                nullable: true);
 25
 026            migrationBuilder.AddColumn<uint>(
 027                name: "ChangeAddressIndex",
 028                table: "Channels",
 029                type: "INTEGER",
 030                nullable: true);
 31
 032            migrationBuilder.AddColumn<bool>(
 033                name: "ChangeAddressIsChange",
 034                table: "Channels",
 035                type: "INTEGER",
 036                nullable: true);
 37
 038            migrationBuilder.AddColumn<byte>(
 039                name: "ChangeAddressType",
 040                table: "Channels",
 041                type: "INTEGER",
 042                nullable: true);
 43
 044            migrationBuilder.CreateTable(
 045                name: "WalletAddresses",
 046                columns: table => new
 047                {
 048                    Index = table.Column<uint>(type: "INTEGER", nullable: false),
 049                    IsChange = table.Column<bool>(type: "INTEGER", nullable: false),
 050                    AddressType = table.Column<byte>(type: "INTEGER", nullable: false),
 051                    Address = table.Column<string>(type: "TEXT", nullable: false)
 052                },
 053                constraints: table =>
 054                {
 055                    table.PrimaryKey("PK_WalletAddresses", x => new { x.Index, x.IsChange, x.AddressType });
 056                });
 57
 058            migrationBuilder.CreateTable(
 059                name: "Utxos",
 060                columns: table => new
 061                {
 062                    TransactionId = table.Column<byte[]>(type: "BLOB", nullable: false),
 063                    Index = table.Column<uint>(type: "INTEGER", nullable: false),
 064                    AmountSats = table.Column<long>(type: "INTEGER", nullable: false),
 065                    BlockHeight = table.Column<uint>(type: "INTEGER", nullable: false),
 066                    AddressIndex = table.Column<uint>(type: "INTEGER", nullable: false),
 067                    IsAddressChange = table.Column<bool>(type: "INTEGER", nullable: false),
 068                    AddressType = table.Column<byte>(type: "INTEGER", nullable: false),
 069                    LockedToChannelId = table.Column<byte[]>(type: "BLOB", nullable: true),
 070                    UsedInTransactionId = table.Column<byte[]>(type: "BLOB", nullable: true)
 071                },
 072                constraints: table =>
 073                {
 074                    table.PrimaryKey("PK_Utxos", x => new { x.TransactionId, x.Index });
 075                    table.ForeignKey(
 076                        name: "FK_Utxos_WalletAddresses_AddressIndex_IsAddressChange_AddressType",
 077                        columns: x => new { x.AddressIndex, x.IsAddressChange, x.AddressType },
 078                        principalTable: "WalletAddresses",
 079                        principalColumns: new[] { "Index", "IsChange", "AddressType" },
 080                        onDelete: ReferentialAction.Cascade);
 081                });
 82
 083            migrationBuilder.CreateIndex(
 084                name: "IX_Channels_ChangeAddressIndex_ChangeAddressIsChange_ChangeAddressAddressType",
 085                table: "Channels",
 086                columns: new[] { "ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType" });
 87
 088            migrationBuilder.CreateIndex(
 089                name: "IX_Utxos_AddressIndex_IsAddressChange_AddressType",
 090                table: "Utxos",
 091                columns: new[] { "AddressIndex", "IsAddressChange", "AddressType" });
 92
 093            migrationBuilder.CreateIndex(
 094                name: "IX_Utxos_AddressType",
 095                table: "Utxos",
 096                column: "AddressType");
 97
 098            migrationBuilder.CreateIndex(
 099                name: "IX_Utxos_LockedToChannelId",
 0100                table: "Utxos",
 0101                column: "LockedToChannelId");
 102
 0103            migrationBuilder.CreateIndex(
 0104                name: "IX_Utxos_UsedInTransactionId",
 0105                table: "Utxos",
 0106                column: "UsedInTransactionId");
 107
 0108            migrationBuilder.AddForeignKey(
 0109                name: "FK_Channels_WalletAddresses_ChangeAddressIndex_ChangeAddressIsChange_ChangeAddressAddressType",
 0110                table: "Channels",
 0111                columns: new[] { "ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType" },
 0112                principalTable: "WalletAddresses",
 0113                principalColumns: new[] { "Index", "IsChange", "AddressType" });
 0114        }
 115
 116        /// <inheritdoc />
 117        protected override void Down(MigrationBuilder migrationBuilder)
 118        {
 0119            migrationBuilder.DropForeignKey(
 0120                name: "FK_Channels_WalletAddresses_ChangeAddressIndex_ChangeAddressIsChange_ChangeAddressAddressType",
 0121                table: "Channels");
 122
 0123            migrationBuilder.DropTable(
 0124                name: "Utxos");
 125
 0126            migrationBuilder.DropTable(
 0127                name: "WalletAddresses");
 128
 0129            migrationBuilder.DropIndex(
 0130                name: "IX_Channels_ChangeAddressIndex_ChangeAddressIsChange_ChangeAddressAddressType",
 0131                table: "Channels");
 132
 0133            migrationBuilder.DropColumn(
 0134                name: "Type",
 0135                table: "Peers");
 136
 0137            migrationBuilder.DropColumn(
 0138                name: "ChangeAddressAddressType",
 0139                table: "Channels");
 140
 0141            migrationBuilder.DropColumn(
 0142                name: "ChangeAddressIndex",
 0143                table: "Channels");
 144
 0145            migrationBuilder.DropColumn(
 0146                name: "ChangeAddressIsChange",
 0147                table: "Channels");
 148
 0149            migrationBuilder.DropColumn(
 0150                name: "ChangeAddressType",
 0151                table: "Channels");
 0152        }
 153    }
 154}

/home/runner/work/NLightning/NLightning/src/NLightning.Infrastructure.Persistence.Sqlite/Migrations/20251106194254_AddFieldsForChannelOpen.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using NLightning.Infrastructure.Persistence.Contexts;
 8
 9#nullable disable
 10
 11namespace NLightning.Infrastructure.Persistence.Sqlite.Migrations
 12{
 13    [DbContext(typeof(NLightningDbContext))]
 14    [Migration("20251106194254_AddFieldsForChannelOpen")]
 15    partial class AddFieldsForChannelOpen
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 021            modelBuilder.HasAnnotation("ProductVersion", "9.0.9");
 22
 023            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.BlockchainStateEntity", b =>
 024                {
 025                    b.Property<Guid>("Id")
 026                        .ValueGeneratedOnAdd()
 027                        .HasColumnType("TEXT");
 028
 029                    b.Property<DateTime>("LastProcessedAt")
 030                        .HasColumnType("TEXT");
 031
 032                    b.Property<byte[]>("LastProcessedBlockHash")
 033                        .IsRequired()
 034                        .HasColumnType("BLOB");
 035
 036                    b.Property<uint>("LastProcessedHeight")
 037                        .HasColumnType("INTEGER");
 038
 039                    b.HasKey("Id");
 040
 041                    b.ToTable("BlockchainStates");
 042                });
 43
 044            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.UtxoEntity", b =>
 045                {
 046                    b.Property<byte[]>("TransactionId")
 047                        .HasColumnType("BLOB");
 048
 049                    b.Property<uint>("Index")
 050                        .HasColumnType("INTEGER");
 051
 052                    b.Property<uint>("AddressIndex")
 053                        .HasColumnType("INTEGER");
 054
 055                    b.Property<byte>("AddressType")
 056                        .HasColumnType("INTEGER");
 057
 058                    b.Property<long>("AmountSats")
 059                        .HasColumnType("INTEGER");
 060
 061                    b.Property<uint>("BlockHeight")
 062                        .HasColumnType("INTEGER");
 063
 064                    b.Property<bool>("IsAddressChange")
 065                        .HasColumnType("INTEGER");
 066
 067                    b.Property<byte[]>("LockedToChannelId")
 068                        .HasColumnType("BLOB");
 069
 070                    b.Property<byte[]>("UsedInTransactionId")
 071                        .HasColumnType("BLOB");
 072
 073                    b.HasKey("TransactionId", "Index");
 074
 075                    b.HasIndex("AddressType");
 076
 077                    b.HasIndex("LockedToChannelId");
 078
 079                    b.HasIndex("UsedInTransactionId");
 080
 081                    b.HasIndex("AddressIndex", "IsAddressChange", "AddressType");
 082
 083                    b.ToTable("Utxos");
 084                });
 85
 086            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b =>
 087                {
 088                    b.Property<uint>("Index")
 089                        .HasColumnType("INTEGER");
 090
 091                    b.Property<bool>("IsChange")
 092                        .HasColumnType("INTEGER");
 093
 094                    b.Property<byte>("AddressType")
 095                        .HasColumnType("INTEGER");
 096
 097                    b.Property<string>("Address")
 098                        .IsRequired()
 099                        .HasColumnType("TEXT");
 0100
 0101                    b.HasKey("Index", "IsChange", "AddressType");
 0102
 0103                    b.ToTable("WalletAddresses");
 0104                });
 105
 0106            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b =>
 0107                {
 0108                    b.Property<byte[]>("TransactionId")
 0109                        .HasColumnType("BLOB");
 0110
 0111                    b.Property<byte[]>("ChannelId")
 0112                        .IsRequired()
 0113                        .HasColumnType("BLOB");
 0114
 0115                    b.Property<DateTime?>("CompletedAt")
 0116                        .HasColumnType("TEXT");
 0117
 0118                    b.Property<DateTime>("CreatedAt")
 0119                        .HasColumnType("TEXT");
 0120
 0121                    b.Property<uint?>("FirstSeenAtHeight")
 0122                        .HasColumnType("INTEGER");
 0123
 0124                    b.Property<uint>("RequiredDepth")
 0125                        .HasColumnType("INTEGER");
 0126
 0127                    b.Property<ushort?>("TransactionIndex")
 0128                        .HasColumnType("INTEGER");
 0129
 0130                    b.HasKey("TransactionId");
 0131
 0132                    b.HasIndex("ChannelId");
 0133
 0134                    b.ToTable("WatchedTransactions");
 0135                });
 136
 0137            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b =>
 0138                {
 0139                    b.Property<byte[]>("ChannelId")
 0140                        .HasColumnType("BLOB");
 0141
 0142                    b.Property<long?>("ChannelReserveAmountSats")
 0143                        .HasColumnType("INTEGER");
 0144
 0145                    b.Property<long>("FeeRatePerKwSatoshis")
 0146                        .HasColumnType("INTEGER");
 0147
 0148                    b.Property<ulong>("HtlcMinimumMsat")
 0149                        .HasColumnType("INTEGER");
 0150
 0151                    b.Property<long>("LocalDustLimitAmountSats")
 0152                        .HasColumnType("INTEGER");
 0153
 0154                    b.Property<byte[]>("LocalUpfrontShutdownScript")
 0155                        .HasColumnType("BLOB");
 0156
 0157                    b.Property<ushort>("MaxAcceptedHtlcs")
 0158                        .HasColumnType("INTEGER");
 0159
 0160                    b.Property<ulong>("MaxHtlcAmountInFlight")
 0161                        .HasColumnType("INTEGER");
 0162
 0163                    b.Property<uint>("MinimumDepth")
 0164                        .HasColumnType("INTEGER");
 0165
 0166                    b.Property<bool>("OptionAnchorOutputs")
 0167                        .HasColumnType("INTEGER");
 0168
 0169                    b.Property<long>("RemoteDustLimitAmountSats")
 0170                        .HasColumnType("INTEGER");
 0171
 0172                    b.Property<byte[]>("RemoteUpfrontShutdownScript")
 0173                        .HasColumnType("BLOB");
 0174
 0175                    b.Property<ushort>("ToSelfDelay")
 0176                        .HasColumnType("INTEGER");
 0177
 0178                    b.Property<byte>("UseScidAlias")
 0179                        .HasColumnType("INTEGER");
 0180
 0181                    b.HasKey("ChannelId");
 0182
 0183                    b.ToTable("ChannelConfigs");
 0184                });
 185
 0186            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0187                {
 0188                    b.Property<byte[]>("ChannelId")
 0189                        .HasColumnType("BLOB");
 0190
 0191                    b.Property<byte?>("ChangeAddressAddressType")
 0192                        .HasColumnType("INTEGER");
 0193
 0194                    b.Property<uint?>("ChangeAddressIndex")
 0195                        .HasColumnType("INTEGER");
 0196
 0197                    b.Property<bool?>("ChangeAddressIsChange")
 0198                        .HasColumnType("INTEGER");
 0199
 0200                    b.Property<byte?>("ChangeAddressType")
 0201                        .HasColumnType("INTEGER");
 0202
 0203                    b.Property<long>("FundingAmountSatoshis")
 0204                        .HasColumnType("INTEGER");
 0205
 0206                    b.Property<uint>("FundingCreatedAtBlockHeight")
 0207                        .HasColumnType("INTEGER");
 0208
 0209                    b.Property<ushort>("FundingOutputIndex")
 0210                        .HasColumnType("INTEGER");
 0211
 0212                    b.Property<byte[]>("FundingTxId")
 0213                        .IsRequired()
 0214                        .HasColumnType("BLOB");
 0215
 0216                    b.Property<bool>("IsInitiator")
 0217                        .HasColumnType("INTEGER");
 0218
 0219                    b.Property<byte[]>("LastReceivedSignature")
 0220                        .HasColumnType("BLOB");
 0221
 0222                    b.Property<byte[]>("LastSentSignature")
 0223                        .HasColumnType("BLOB");
 0224
 0225                    b.Property<decimal>("LocalBalanceSatoshis")
 0226                        .HasColumnType("TEXT");
 0227
 0228                    b.Property<ulong>("LocalNextHtlcId")
 0229                        .HasColumnType("INTEGER");
 0230
 0231                    b.Property<ulong>("LocalRevocationNumber")
 0232                        .HasColumnType("INTEGER");
 0233
 0234                    b.Property<byte[]>("PeerEntityNodeId")
 0235                        .HasColumnType("BLOB");
 0236
 0237                    b.Property<decimal>("RemoteBalanceSatoshis")
 0238                        .HasColumnType("TEXT");
 0239
 0240                    b.Property<ulong>("RemoteNextHtlcId")
 0241                        .HasColumnType("INTEGER");
 0242
 0243                    b.Property<byte[]>("RemoteNodeId")
 0244                        .IsRequired()
 0245                        .HasColumnType("BLOB");
 0246
 0247                    b.Property<ulong>("RemoteRevocationNumber")
 0248                        .HasColumnType("INTEGER");
 0249
 0250                    b.Property<byte>("State")
 0251                        .HasColumnType("INTEGER");
 0252
 0253                    b.Property<byte>("Version")
 0254                        .HasColumnType("INTEGER");
 0255
 0256                    b.HasKey("ChannelId");
 0257
 0258                    b.HasIndex("PeerEntityNodeId");
 0259
 0260                    b.HasIndex("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType");
 0261
 0262                    b.ToTable("Channels");
 0263                });
 264
 0265            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b =>
 0266                {
 0267                    b.Property<byte[]>("ChannelId")
 0268                        .HasColumnType("BLOB");
 0269
 0270                    b.Property<bool>("IsLocal")
 0271                        .HasColumnType("INTEGER");
 0272
 0273                    b.Property<ulong>("CurrentPerCommitmentIndex")
 0274                        .HasColumnType("INTEGER");
 0275
 0276                    b.Property<byte[]>("CurrentPerCommitmentPoint")
 0277                        .IsRequired()
 0278                        .HasColumnType("BLOB");
 0279
 0280                    b.Property<byte[]>("DelayedPaymentBasepoint")
 0281                        .IsRequired()
 0282                        .HasColumnType("BLOB");
 0283
 0284                    b.Property<byte[]>("FundingPubKey")
 0285                        .IsRequired()
 0286                        .HasColumnType("BLOB");
 0287
 0288                    b.Property<byte[]>("HtlcBasepoint")
 0289                        .IsRequired()
 0290                        .HasColumnType("BLOB");
 0291
 0292                    b.Property<uint>("KeyIndex")
 0293                        .HasColumnType("INTEGER");
 0294
 0295                    b.Property<byte[]>("LastRevealedPerCommitmentSecret")
 0296                        .HasColumnType("BLOB");
 0297
 0298                    b.Property<byte[]>("PaymentBasepoint")
 0299                        .IsRequired()
 0300                        .HasColumnType("BLOB");
 0301
 0302                    b.Property<byte[]>("RevocationBasepoint")
 0303                        .IsRequired()
 0304                        .HasColumnType("BLOB");
 0305
 0306                    b.HasKey("ChannelId", "IsLocal");
 0307
 0308                    b.ToTable("ChannelKeySets");
 0309                });
 310
 0311            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b =>
 0312                {
 0313                    b.Property<byte[]>("ChannelId")
 0314                        .HasColumnType("BLOB");
 0315
 0316                    b.Property<ulong>("HtlcId")
 0317                        .HasColumnType("INTEGER");
 0318
 0319                    b.Property<byte>("Direction")
 0320                        .HasColumnType("INTEGER");
 0321
 0322                    b.Property<byte[]>("AddMessageBytes")
 0323                        .IsRequired()
 0324                        .HasColumnType("BLOB");
 0325
 0326                    b.Property<ulong>("AmountMsat")
 0327                        .HasColumnType("INTEGER");
 0328
 0329                    b.Property<uint>("CltvExpiry")
 0330                        .HasColumnType("INTEGER");
 0331
 0332                    b.Property<ulong>("ObscuredCommitmentNumber")
 0333                        .HasColumnType("INTEGER");
 0334
 0335                    b.Property<byte[]>("PaymentHash")
 0336                        .IsRequired()
 0337                        .HasColumnType("BLOB");
 0338
 0339                    b.Property<byte[]>("PaymentPreimage")
 0340                        .HasColumnType("BLOB");
 0341
 0342                    b.Property<byte[]>("Signature")
 0343                        .HasColumnType("BLOB");
 0344
 0345                    b.Property<byte>("State")
 0346                        .HasColumnType("INTEGER");
 0347
 0348                    b.HasKey("ChannelId", "HtlcId", "Direction");
 0349
 0350                    b.ToTable("Htlcs");
 0351                });
 352
 0353            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b =>
 0354                {
 0355                    b.Property<byte[]>("NodeId")
 0356                        .HasColumnType("BLOB");
 0357
 0358                    b.Property<string>("Host")
 0359                        .IsRequired()
 0360                        .HasColumnType("TEXT");
 0361
 0362                    b.Property<DateTime>("LastSeenAt")
 0363                        .HasColumnType("TEXT");
 0364
 0365                    b.Property<uint>("Port")
 0366                        .HasColumnType("INTEGER");
 0367
 0368                    b.Property<string>("Type")
 0369                        .IsRequired()
 0370                        .HasColumnType("TEXT");
 0371
 0372                    b.HasKey("NodeId");
 0373
 0374                    b.ToTable("Peers");
 0375                });
 376
 0377            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.UtxoEntity", b =>
 0378                {
 0379                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "WalletAddres
 0380                        .WithMany("Utxos")
 0381                        .HasForeignKey("AddressIndex", "IsAddressChange", "AddressType")
 0382                        .OnDelete(DeleteBehavior.Cascade)
 0383                        .IsRequired();
 0384
 0385                    b.Navigation("WalletAddress");
 0386                });
 387
 0388            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b =>
 0389                {
 0390                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0391                        .WithMany("WatchedTransactions")
 0392                        .HasForeignKey("ChannelId")
 0393                        .OnDelete(DeleteBehavior.Cascade)
 0394                        .IsRequired();
 0395                });
 396
 0397            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b =>
 0398                {
 0399                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0400                        .WithOne("Config")
 0401                        .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch
 0402                        .OnDelete(DeleteBehavior.Cascade)
 0403                        .IsRequired();
 0404                });
 405
 0406            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0407                {
 0408                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null)
 0409                        .WithMany("Channels")
 0410                        .HasForeignKey("PeerEntityNodeId");
 0411
 0412                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "ChangeAddres
 0413                        .WithMany()
 0414                        .HasForeignKey("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType");
 0415
 0416                    b.Navigation("ChangeAddress");
 0417                });
 418
 0419            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b =>
 0420                {
 0421                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0422                        .WithMany("KeySets")
 0423                        .HasForeignKey("ChannelId")
 0424                        .OnDelete(DeleteBehavior.Cascade)
 0425                        .IsRequired();
 0426                });
 427
 0428            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b =>
 0429                {
 0430                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0431                        .WithMany("Htlcs")
 0432                        .HasForeignKey("ChannelId")
 0433                        .OnDelete(DeleteBehavior.Cascade)
 0434                        .IsRequired();
 0435                });
 436
 0437            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b =>
 0438                {
 0439                    b.Navigation("Utxos");
 0440                });
 441
 0442            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0443                {
 0444                    b.Navigation("Config");
 0445
 0446                    b.Navigation("Htlcs");
 0447
 0448                    b.Navigation("KeySets");
 0449
 0450                    b.Navigation("WatchedTransactions");
 0451                });
 452
 0453            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b =>
 0454                {
 0455                    b.Navigation("Channels");
 0456                });
 457#pragma warning restore 612, 618
 0458        }
 459    }
 460}