< 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: 36_15743069263
Line coverage
0%
Covered lines: 0
Uncovered lines: 321
Coverable lines: 321
Total lines: 355
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", "8.0.12");
 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.WatchedTransactionEntity", b =>
 042                {
 043                    b.Property<byte[]>("TransactionId")
 044                        .HasColumnType("BLOB");
 045
 046                    b.Property<byte[]>("ChannelId")
 047                        .IsRequired()
 048                        .HasColumnType("BLOB");
 049
 050                    b.Property<DateTime?>("CompletedAt")
 051                        .HasColumnType("TEXT");
 052
 053                    b.Property<DateTime>("CreatedAt")
 054                        .HasColumnType("TEXT");
 055
 056                    b.Property<uint?>("FirstSeenAtHeight")
 057                        .HasColumnType("INTEGER");
 058
 059                    b.Property<uint>("RequiredDepth")
 060                        .HasColumnType("INTEGER");
 061
 062                    b.Property<ushort?>("TransactionIndex")
 063                        .HasColumnType("INTEGER");
 064
 065                    b.HasKey("TransactionId");
 066
 067                    b.HasIndex("ChannelId");
 068
 069                    b.ToTable("WatchedTransactions");
 070                });
 71
 072            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b =>
 073                {
 074                    b.Property<byte[]>("ChannelId")
 075                        .HasColumnType("BLOB");
 076
 077                    b.Property<long?>("ChannelReserveAmountSats")
 078                        .HasColumnType("INTEGER");
 079
 080                    b.Property<long>("FeeRatePerKwSatoshis")
 081                        .HasColumnType("INTEGER");
 082
 083                    b.Property<ulong>("HtlcMinimumMsat")
 084                        .HasColumnType("INTEGER");
 085
 086                    b.Property<long>("LocalDustLimitAmountSats")
 087                        .HasColumnType("INTEGER");
 088
 089                    b.Property<byte[]>("LocalUpfrontShutdownScript")
 090                        .HasColumnType("BLOB");
 091
 092                    b.Property<ushort>("MaxAcceptedHtlcs")
 093                        .HasColumnType("INTEGER");
 094
 095                    b.Property<ulong>("MaxHtlcAmountInFlight")
 096                        .HasColumnType("INTEGER");
 097
 098                    b.Property<uint>("MinimumDepth")
 099                        .HasColumnType("INTEGER");
 0100
 0101                    b.Property<bool>("OptionAnchorOutputs")
 0102                        .HasColumnType("INTEGER");
 0103
 0104                    b.Property<long>("RemoteDustLimitAmountSats")
 0105                        .HasColumnType("INTEGER");
 0106
 0107                    b.Property<byte[]>("RemoteUpfrontShutdownScript")
 0108                        .HasColumnType("BLOB");
 0109
 0110                    b.Property<ushort>("ToSelfDelay")
 0111                        .HasColumnType("INTEGER");
 0112
 0113                    b.Property<byte>("UseScidAlias")
 0114                        .HasColumnType("INTEGER");
 0115
 0116                    b.HasKey("ChannelId");
 0117
 0118                    b.ToTable("ChannelConfigs");
 0119                });
 120
 0121            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0122                {
 0123                    b.Property<byte[]>("ChannelId")
 0124                        .HasColumnType("BLOB");
 0125
 0126                    b.Property<long>("FundingAmountSatoshis")
 0127                        .HasColumnType("INTEGER");
 0128
 0129                    b.Property<uint>("FundingCreatedAtBlockHeight")
 0130                        .HasColumnType("INTEGER");
 0131
 0132                    b.Property<ushort>("FundingOutputIndex")
 0133                        .HasColumnType("INTEGER");
 0134
 0135                    b.Property<byte[]>("FundingTxId")
 0136                        .IsRequired()
 0137                        .HasColumnType("BLOB");
 0138
 0139                    b.Property<bool>("IsInitiator")
 0140                        .HasColumnType("INTEGER");
 0141
 0142                    b.Property<byte[]>("LastReceivedSignature")
 0143                        .HasColumnType("BLOB");
 0144
 0145                    b.Property<byte[]>("LastSentSignature")
 0146                        .HasColumnType("BLOB");
 0147
 0148                    b.Property<decimal>("LocalBalanceSatoshis")
 0149                        .HasColumnType("TEXT");
 0150
 0151                    b.Property<ulong>("LocalNextHtlcId")
 0152                        .HasColumnType("INTEGER");
 0153
 0154                    b.Property<ulong>("LocalRevocationNumber")
 0155                        .HasColumnType("INTEGER");
 0156
 0157                    b.Property<byte[]>("PeerEntityNodeId")
 0158                        .HasColumnType("BLOB");
 0159
 0160                    b.Property<decimal>("RemoteBalanceSatoshis")
 0161                        .HasColumnType("TEXT");
 0162
 0163                    b.Property<ulong>("RemoteNextHtlcId")
 0164                        .HasColumnType("INTEGER");
 0165
 0166                    b.Property<byte[]>("RemoteNodeId")
 0167                        .IsRequired()
 0168                        .HasColumnType("BLOB");
 0169
 0170                    b.Property<ulong>("RemoteRevocationNumber")
 0171                        .HasColumnType("INTEGER");
 0172
 0173                    b.Property<byte>("State")
 0174                        .HasColumnType("INTEGER");
 0175
 0176                    b.Property<byte>("Version")
 0177                        .HasColumnType("INTEGER");
 0178
 0179                    b.HasKey("ChannelId");
 0180
 0181                    b.HasIndex("PeerEntityNodeId");
 0182
 0183                    b.ToTable("Channels");
 0184                });
 185
 0186            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b =>
 0187                {
 0188                    b.Property<byte[]>("ChannelId")
 0189                        .HasColumnType("BLOB");
 0190
 0191                    b.Property<bool>("IsLocal")
 0192                        .HasColumnType("INTEGER");
 0193
 0194                    b.Property<ulong>("CurrentPerCommitmentIndex")
 0195                        .HasColumnType("INTEGER");
 0196
 0197                    b.Property<byte[]>("CurrentPerCommitmentPoint")
 0198                        .IsRequired()
 0199                        .HasColumnType("BLOB");
 0200
 0201                    b.Property<byte[]>("DelayedPaymentBasepoint")
 0202                        .IsRequired()
 0203                        .HasColumnType("BLOB");
 0204
 0205                    b.Property<byte[]>("FundingPubKey")
 0206                        .IsRequired()
 0207                        .HasColumnType("BLOB");
 0208
 0209                    b.Property<byte[]>("HtlcBasepoint")
 0210                        .IsRequired()
 0211                        .HasColumnType("BLOB");
 0212
 0213                    b.Property<uint>("KeyIndex")
 0214                        .HasColumnType("INTEGER");
 0215
 0216                    b.Property<byte[]>("LastRevealedPerCommitmentSecret")
 0217                        .HasColumnType("BLOB");
 0218
 0219                    b.Property<byte[]>("PaymentBasepoint")
 0220                        .IsRequired()
 0221                        .HasColumnType("BLOB");
 0222
 0223                    b.Property<byte[]>("RevocationBasepoint")
 0224                        .IsRequired()
 0225                        .HasColumnType("BLOB");
 0226
 0227                    b.HasKey("ChannelId", "IsLocal");
 0228
 0229                    b.ToTable("ChannelKeySets");
 0230                });
 231
 0232            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b =>
 0233                {
 0234                    b.Property<byte[]>("ChannelId")
 0235                        .HasColumnType("BLOB");
 0236
 0237                    b.Property<ulong>("HtlcId")
 0238                        .HasColumnType("INTEGER");
 0239
 0240                    b.Property<byte>("Direction")
 0241                        .HasColumnType("INTEGER");
 0242
 0243                    b.Property<byte[]>("AddMessageBytes")
 0244                        .IsRequired()
 0245                        .HasColumnType("BLOB");
 0246
 0247                    b.Property<ulong>("AmountMsat")
 0248                        .HasColumnType("INTEGER");
 0249
 0250                    b.Property<uint>("CltvExpiry")
 0251                        .HasColumnType("INTEGER");
 0252
 0253                    b.Property<ulong>("ObscuredCommitmentNumber")
 0254                        .HasColumnType("INTEGER");
 0255
 0256                    b.Property<byte[]>("PaymentHash")
 0257                        .IsRequired()
 0258                        .HasColumnType("BLOB");
 0259
 0260                    b.Property<byte[]>("PaymentPreimage")
 0261                        .HasColumnType("BLOB");
 0262
 0263                    b.Property<byte[]>("Signature")
 0264                        .HasColumnType("BLOB");
 0265
 0266                    b.Property<byte>("State")
 0267                        .HasColumnType("INTEGER");
 0268
 0269                    b.HasKey("ChannelId", "HtlcId", "Direction");
 0270
 0271                    b.ToTable("Htlcs");
 0272                });
 273
 0274            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b =>
 0275                {
 0276                    b.Property<byte[]>("NodeId")
 0277                        .HasColumnType("BLOB");
 0278
 0279                    b.Property<string>("Host")
 0280                        .IsRequired()
 0281                        .HasColumnType("TEXT");
 0282
 0283                    b.Property<DateTime>("LastSeenAt")
 0284                        .HasColumnType("TEXT");
 0285
 0286                    b.Property<uint>("Port")
 0287                        .HasColumnType("INTEGER");
 0288
 0289                    b.HasKey("NodeId");
 0290
 0291                    b.ToTable("Peers");
 0292                });
 293
 0294            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b =>
 0295                {
 0296                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0297                        .WithMany("WatchedTransactions")
 0298                        .HasForeignKey("ChannelId")
 0299                        .OnDelete(DeleteBehavior.Cascade)
 0300                        .IsRequired();
 0301                });
 302
 0303            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b =>
 0304                {
 0305                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0306                        .WithOne("Config")
 0307                        .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch
 0308                        .OnDelete(DeleteBehavior.Cascade)
 0309                        .IsRequired();
 0310                });
 311
 0312            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0313                {
 0314                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null)
 0315                        .WithMany("Channels")
 0316                        .HasForeignKey("PeerEntityNodeId");
 0317                });
 318
 0319            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b =>
 0320                {
 0321                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0322                        .WithMany("KeySets")
 0323                        .HasForeignKey("ChannelId")
 0324                        .OnDelete(DeleteBehavior.Cascade)
 0325                        .IsRequired();
 0326                });
 327
 0328            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b =>
 0329                {
 0330                    b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null)
 0331                        .WithMany("Htlcs")
 0332                        .HasForeignKey("ChannelId")
 0333                        .OnDelete(DeleteBehavior.Cascade)
 0334                        .IsRequired();
 0335                });
 336
 0337            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b =>
 0338                {
 0339                    b.Navigation("Config");
 0340
 0341                    b.Navigation("Htlcs");
 0342
 0343                    b.Navigation("KeySets");
 0344
 0345                    b.Navigation("WatchedTransactions");
 0346                });
 347
 0348            modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b =>
 0349                {
 0350                    b.Navigation("Channels");
 0351                });
 352#pragma warning restore 612, 618
 0353        }
 354    }
 355}