< Summary - Combined Code Coverage

Information
Class: NLightning.Infrastructure.Persistence.Sqlite.Migrations.NLightningDbContextModelSnapshot
Assembly: NLightning.Infrastructure.Persistence.Sqlite
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Infrastructure.Persistence.Sqlite/Migrations/NLightningDbContextModelSnapshot.cs
Tag: 57_24045730253
Line coverage
0%
Covered lines: 0
Uncovered lines: 419
Coverable lines: 419
Total lines: 457
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
BuildModel(...)100%210%

File(s)

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

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