| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Metadata; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 7 | | using NLightning.Infrastructure.Persistence.Contexts; |
| | | 8 | | |
| | | 9 | | #nullable disable |
| | | 10 | | |
| | | 11 | | namespace NLightning.Infrastructure.Persistence.SqlServer.Migrations |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(NLightningDbContext))] |
| | | 14 | | partial class NLightningDbContextModelSnapshot : ModelSnapshot |
| | | 15 | | { |
| | | 16 | | protected override void BuildModel(ModelBuilder modelBuilder) |
| | | 17 | | { |
| | | 18 | | #pragma warning disable 612, 618 |
| | 0 | 19 | | modelBuilder |
| | 0 | 20 | | .HasAnnotation("ProductVersion", "9.0.9") |
| | 0 | 21 | | .HasAnnotation("Relational:MaxIdentifierLength", 128); |
| | | 22 | | |
| | 0 | 23 | | SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); |
| | | 24 | | |
| | 0 | 25 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.BlockchainStateEntity", b => |
| | 0 | 26 | | { |
| | 0 | 27 | | b.Property<Guid>("Id") |
| | 0 | 28 | | .ValueGeneratedOnAdd() |
| | 0 | 29 | | .HasColumnType("uniqueidentifier"); |
| | 0 | 30 | | |
| | 0 | 31 | | b.Property<DateTime>("LastProcessedAt") |
| | 0 | 32 | | .HasColumnType("datetime2"); |
| | 0 | 33 | | |
| | 0 | 34 | | b.Property<byte[]>("LastProcessedBlockHash") |
| | 0 | 35 | | .IsRequired() |
| | 0 | 36 | | .HasColumnType("varbinary(32)"); |
| | 0 | 37 | | |
| | 0 | 38 | | b.Property<long>("LastProcessedHeight") |
| | 0 | 39 | | .HasColumnType("bigint"); |
| | 0 | 40 | | |
| | 0 | 41 | | b.HasKey("Id"); |
| | 0 | 42 | | |
| | 0 | 43 | | b.ToTable("BlockchainStates"); |
| | 0 | 44 | | }); |
| | | 45 | | |
| | 0 | 46 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.UtxoEntity", b => |
| | 0 | 47 | | { |
| | 0 | 48 | | b.Property<byte[]>("TransactionId") |
| | 0 | 49 | | .HasColumnType("varbinary(32)"); |
| | 0 | 50 | | |
| | 0 | 51 | | b.Property<long>("Index") |
| | 0 | 52 | | .HasColumnType("bigint"); |
| | 0 | 53 | | |
| | 0 | 54 | | b.Property<long>("AddressIndex") |
| | 0 | 55 | | .HasColumnType("bigint"); |
| | 0 | 56 | | |
| | 0 | 57 | | b.Property<byte>("AddressType") |
| | 0 | 58 | | .HasColumnType("tinyint"); |
| | 0 | 59 | | |
| | 0 | 60 | | b.Property<long>("AmountSats") |
| | 0 | 61 | | .HasColumnType("bigint"); |
| | 0 | 62 | | |
| | 0 | 63 | | b.Property<long>("BlockHeight") |
| | 0 | 64 | | .HasColumnType("bigint"); |
| | 0 | 65 | | |
| | 0 | 66 | | b.Property<bool>("IsAddressChange") |
| | 0 | 67 | | .HasColumnType("bit"); |
| | 0 | 68 | | |
| | 0 | 69 | | b.Property<byte[]>("LockedToChannelId") |
| | 0 | 70 | | .HasColumnType("varbinary(32)"); |
| | 0 | 71 | | |
| | 0 | 72 | | b.Property<byte[]>("UsedInTransactionId") |
| | 0 | 73 | | .HasColumnType("varbinary(900)"); |
| | 0 | 74 | | |
| | 0 | 75 | | b.HasKey("TransactionId", "Index"); |
| | 0 | 76 | | |
| | 0 | 77 | | b.HasIndex("AddressType") |
| | 0 | 78 | | .HasAnnotation("SqlServer:Online", true); |
| | 0 | 79 | | |
| | 0 | 80 | | b.HasIndex("LockedToChannelId") |
| | 0 | 81 | | .HasAnnotation("SqlServer:Online", true); |
| | 0 | 82 | | |
| | 0 | 83 | | b.HasIndex("UsedInTransactionId") |
| | 0 | 84 | | .HasAnnotation("SqlServer:Online", true); |
| | 0 | 85 | | |
| | 0 | 86 | | b.HasIndex("AddressIndex", "IsAddressChange", "AddressType") |
| | 0 | 87 | | .HasAnnotation("SqlServer:Online", true); |
| | 0 | 88 | | |
| | 0 | 89 | | b.ToTable("Utxos"); |
| | 0 | 90 | | }); |
| | | 91 | | |
| | 0 | 92 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b => |
| | 0 | 93 | | { |
| | 0 | 94 | | b.Property<long>("Index") |
| | 0 | 95 | | .HasColumnType("bigint"); |
| | 0 | 96 | | |
| | 0 | 97 | | b.Property<bool>("IsChange") |
| | 0 | 98 | | .HasColumnType("bit"); |
| | 0 | 99 | | |
| | 0 | 100 | | b.Property<byte>("AddressType") |
| | 0 | 101 | | .HasColumnType("tinyint"); |
| | 0 | 102 | | |
| | 0 | 103 | | b.Property<string>("Address") |
| | 0 | 104 | | .IsRequired() |
| | 0 | 105 | | .HasColumnType("nvarchar(max)"); |
| | 0 | 106 | | |
| | 0 | 107 | | b.HasKey("Index", "IsChange", "AddressType"); |
| | 0 | 108 | | |
| | 0 | 109 | | b.ToTable("WalletAddresses"); |
| | 0 | 110 | | }); |
| | | 111 | | |
| | 0 | 112 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| | 0 | 113 | | { |
| | 0 | 114 | | b.Property<byte[]>("TransactionId") |
| | 0 | 115 | | .HasColumnType("varbinary(32)"); |
| | 0 | 116 | | |
| | 0 | 117 | | b.Property<byte[]>("ChannelId") |
| | 0 | 118 | | .IsRequired() |
| | 0 | 119 | | .HasColumnType("varbinary(32)"); |
| | 0 | 120 | | |
| | 0 | 121 | | b.Property<DateTime?>("CompletedAt") |
| | 0 | 122 | | .HasColumnType("datetime2"); |
| | 0 | 123 | | |
| | 0 | 124 | | b.Property<DateTime>("CreatedAt") |
| | 0 | 125 | | .HasColumnType("datetime2"); |
| | 0 | 126 | | |
| | 0 | 127 | | b.Property<long?>("FirstSeenAtHeight") |
| | 0 | 128 | | .HasColumnType("bigint"); |
| | 0 | 129 | | |
| | 0 | 130 | | b.Property<long>("RequiredDepth") |
| | 0 | 131 | | .HasColumnType("bigint"); |
| | 0 | 132 | | |
| | 0 | 133 | | b.Property<int?>("TransactionIndex") |
| | 0 | 134 | | .HasColumnType("int"); |
| | 0 | 135 | | |
| | 0 | 136 | | b.HasKey("TransactionId"); |
| | 0 | 137 | | |
| | 0 | 138 | | b.HasIndex("ChannelId"); |
| | 0 | 139 | | |
| | 0 | 140 | | b.ToTable("WatchedTransactions"); |
| | 0 | 141 | | }); |
| | | 142 | | |
| | 0 | 143 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| | 0 | 144 | | { |
| | 0 | 145 | | b.Property<byte[]>("ChannelId") |
| | 0 | 146 | | .HasColumnType("varbinary(32)"); |
| | 0 | 147 | | |
| | 0 | 148 | | b.Property<long?>("ChannelReserveAmountSats") |
| | 0 | 149 | | .HasColumnType("bigint"); |
| | 0 | 150 | | |
| | 0 | 151 | | b.Property<long>("FeeRatePerKwSatoshis") |
| | 0 | 152 | | .HasColumnType("bigint"); |
| | 0 | 153 | | |
| | 0 | 154 | | b.Property<decimal>("HtlcMinimumMsat") |
| | 0 | 155 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 156 | | |
| | 0 | 157 | | b.Property<long>("LocalDustLimitAmountSats") |
| | 0 | 158 | | .HasColumnType("bigint"); |
| | 0 | 159 | | |
| | 0 | 160 | | b.Property<byte[]>("LocalUpfrontShutdownScript") |
| | 0 | 161 | | .HasColumnType("varbinary(max)"); |
| | 0 | 162 | | |
| | 0 | 163 | | b.Property<int>("MaxAcceptedHtlcs") |
| | 0 | 164 | | .HasColumnType("int"); |
| | 0 | 165 | | |
| | 0 | 166 | | b.Property<decimal>("MaxHtlcAmountInFlight") |
| | 0 | 167 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 168 | | |
| | 0 | 169 | | b.Property<long>("MinimumDepth") |
| | 0 | 170 | | .HasColumnType("bigint"); |
| | 0 | 171 | | |
| | 0 | 172 | | b.Property<bool>("OptionAnchorOutputs") |
| | 0 | 173 | | .HasColumnType("bit"); |
| | 0 | 174 | | |
| | 0 | 175 | | b.Property<long>("RemoteDustLimitAmountSats") |
| | 0 | 176 | | .HasColumnType("bigint"); |
| | 0 | 177 | | |
| | 0 | 178 | | b.Property<byte[]>("RemoteUpfrontShutdownScript") |
| | 0 | 179 | | .HasColumnType("varbinary(max)"); |
| | 0 | 180 | | |
| | 0 | 181 | | b.Property<int>("ToSelfDelay") |
| | 0 | 182 | | .HasColumnType("int"); |
| | 0 | 183 | | |
| | 0 | 184 | | b.Property<byte>("UseScidAlias") |
| | 0 | 185 | | .HasColumnType("tinyint"); |
| | 0 | 186 | | |
| | 0 | 187 | | b.HasKey("ChannelId"); |
| | 0 | 188 | | |
| | 0 | 189 | | b.ToTable("ChannelConfigs"); |
| | 0 | 190 | | }); |
| | | 191 | | |
| | 0 | 192 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 193 | | { |
| | 0 | 194 | | b.Property<byte[]>("ChannelId") |
| | 0 | 195 | | .HasColumnType("varbinary(32)"); |
| | 0 | 196 | | |
| | 0 | 197 | | b.Property<byte?>("ChangeAddressAddressType") |
| | 0 | 198 | | .HasColumnType("tinyint"); |
| | 0 | 199 | | |
| | 0 | 200 | | b.Property<long?>("ChangeAddressIndex") |
| | 0 | 201 | | .HasColumnType("bigint"); |
| | 0 | 202 | | |
| | 0 | 203 | | b.Property<bool?>("ChangeAddressIsChange") |
| | 0 | 204 | | .HasColumnType("bit"); |
| | 0 | 205 | | |
| | 0 | 206 | | b.Property<byte?>("ChangeAddressType") |
| | 0 | 207 | | .HasColumnType("tinyint"); |
| | 0 | 208 | | |
| | 0 | 209 | | b.Property<long>("FundingAmountSatoshis") |
| | 0 | 210 | | .HasColumnType("bigint"); |
| | 0 | 211 | | |
| | 0 | 212 | | b.Property<long>("FundingCreatedAtBlockHeight") |
| | 0 | 213 | | .HasColumnType("bigint"); |
| | 0 | 214 | | |
| | 0 | 215 | | b.Property<int>("FundingOutputIndex") |
| | 0 | 216 | | .HasColumnType("int"); |
| | 0 | 217 | | |
| | 0 | 218 | | b.Property<byte[]>("FundingTxId") |
| | 0 | 219 | | .IsRequired() |
| | 0 | 220 | | .HasColumnType("varbinary(32)"); |
| | 0 | 221 | | |
| | 0 | 222 | | b.Property<bool>("IsInitiator") |
| | 0 | 223 | | .HasColumnType("bit"); |
| | 0 | 224 | | |
| | 0 | 225 | | b.Property<byte[]>("LastReceivedSignature") |
| | 0 | 226 | | .HasColumnType("varbinary(64)"); |
| | 0 | 227 | | |
| | 0 | 228 | | b.Property<byte[]>("LastSentSignature") |
| | 0 | 229 | | .HasColumnType("varbinary(64)"); |
| | 0 | 230 | | |
| | 0 | 231 | | b.Property<long>("LocalBalanceSatoshis") |
| | 0 | 232 | | .HasColumnType("bigint"); |
| | 0 | 233 | | |
| | 0 | 234 | | b.Property<decimal>("LocalNextHtlcId") |
| | 0 | 235 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 236 | | |
| | 0 | 237 | | b.Property<decimal>("LocalRevocationNumber") |
| | 0 | 238 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 239 | | |
| | 0 | 240 | | b.Property<byte[]>("PeerEntityNodeId") |
| | 0 | 241 | | .HasColumnType("varbinary(33)"); |
| | 0 | 242 | | |
| | 0 | 243 | | b.Property<long>("RemoteBalanceSatoshis") |
| | 0 | 244 | | .HasColumnType("bigint"); |
| | 0 | 245 | | |
| | 0 | 246 | | b.Property<decimal>("RemoteNextHtlcId") |
| | 0 | 247 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 248 | | |
| | 0 | 249 | | b.Property<byte[]>("RemoteNodeId") |
| | 0 | 250 | | .IsRequired() |
| | 0 | 251 | | .HasColumnType("varbinary(32)"); |
| | 0 | 252 | | |
| | 0 | 253 | | b.Property<decimal>("RemoteRevocationNumber") |
| | 0 | 254 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 255 | | |
| | 0 | 256 | | b.Property<byte>("State") |
| | 0 | 257 | | .HasColumnType("tinyint"); |
| | 0 | 258 | | |
| | 0 | 259 | | b.Property<byte>("Version") |
| | 0 | 260 | | .HasColumnType("tinyint"); |
| | 0 | 261 | | |
| | 0 | 262 | | b.HasKey("ChannelId"); |
| | 0 | 263 | | |
| | 0 | 264 | | b.HasIndex("PeerEntityNodeId"); |
| | 0 | 265 | | |
| | 0 | 266 | | b.HasIndex("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType"); |
| | 0 | 267 | | |
| | 0 | 268 | | b.ToTable("Channels"); |
| | 0 | 269 | | }); |
| | | 270 | | |
| | 0 | 271 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| | 0 | 272 | | { |
| | 0 | 273 | | b.Property<byte[]>("ChannelId") |
| | 0 | 274 | | .HasColumnType("varbinary(32)"); |
| | 0 | 275 | | |
| | 0 | 276 | | b.Property<bool>("IsLocal") |
| | 0 | 277 | | .HasColumnType("bit"); |
| | 0 | 278 | | |
| | 0 | 279 | | b.Property<decimal>("CurrentPerCommitmentIndex") |
| | 0 | 280 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 281 | | |
| | 0 | 282 | | b.Property<byte[]>("CurrentPerCommitmentPoint") |
| | 0 | 283 | | .IsRequired() |
| | 0 | 284 | | .HasColumnType("varbinary(33)"); |
| | 0 | 285 | | |
| | 0 | 286 | | b.Property<byte[]>("DelayedPaymentBasepoint") |
| | 0 | 287 | | .IsRequired() |
| | 0 | 288 | | .HasColumnType("varbinary(33)"); |
| | 0 | 289 | | |
| | 0 | 290 | | b.Property<byte[]>("FundingPubKey") |
| | 0 | 291 | | .IsRequired() |
| | 0 | 292 | | .HasColumnType("varbinary(33)"); |
| | 0 | 293 | | |
| | 0 | 294 | | b.Property<byte[]>("HtlcBasepoint") |
| | 0 | 295 | | .IsRequired() |
| | 0 | 296 | | .HasColumnType("varbinary(33)"); |
| | 0 | 297 | | |
| | 0 | 298 | | b.Property<long>("KeyIndex") |
| | 0 | 299 | | .HasColumnType("bigint"); |
| | 0 | 300 | | |
| | 0 | 301 | | b.Property<byte[]>("LastRevealedPerCommitmentSecret") |
| | 0 | 302 | | .HasColumnType("varbinary(max)"); |
| | 0 | 303 | | |
| | 0 | 304 | | b.Property<byte[]>("PaymentBasepoint") |
| | 0 | 305 | | .IsRequired() |
| | 0 | 306 | | .HasColumnType("varbinary(33)"); |
| | 0 | 307 | | |
| | 0 | 308 | | b.Property<byte[]>("RevocationBasepoint") |
| | 0 | 309 | | .IsRequired() |
| | 0 | 310 | | .HasColumnType("varbinary(33)"); |
| | 0 | 311 | | |
| | 0 | 312 | | b.HasKey("ChannelId", "IsLocal"); |
| | 0 | 313 | | |
| | 0 | 314 | | b.ToTable("ChannelKeySets"); |
| | 0 | 315 | | }); |
| | | 316 | | |
| | 0 | 317 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| | 0 | 318 | | { |
| | 0 | 319 | | b.Property<byte[]>("ChannelId") |
| | 0 | 320 | | .HasColumnType("varbinary(32)"); |
| | 0 | 321 | | |
| | 0 | 322 | | b.Property<decimal>("HtlcId") |
| | 0 | 323 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 324 | | |
| | 0 | 325 | | b.Property<byte>("Direction") |
| | 0 | 326 | | .HasColumnType("tinyint"); |
| | 0 | 327 | | |
| | 0 | 328 | | b.Property<byte[]>("AddMessageBytes") |
| | 0 | 329 | | .IsRequired() |
| | 0 | 330 | | .HasColumnType("varbinary(max)"); |
| | 0 | 331 | | |
| | 0 | 332 | | b.Property<decimal>("AmountMsat") |
| | 0 | 333 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 334 | | |
| | 0 | 335 | | b.Property<long>("CltvExpiry") |
| | 0 | 336 | | .HasColumnType("bigint"); |
| | 0 | 337 | | |
| | 0 | 338 | | b.Property<decimal>("ObscuredCommitmentNumber") |
| | 0 | 339 | | .HasColumnType("decimal(20,0)"); |
| | 0 | 340 | | |
| | 0 | 341 | | b.Property<byte[]>("PaymentHash") |
| | 0 | 342 | | .IsRequired() |
| | 0 | 343 | | .HasColumnType("varbinary(32)"); |
| | 0 | 344 | | |
| | 0 | 345 | | b.Property<byte[]>("PaymentPreimage") |
| | 0 | 346 | | .HasColumnType("varbinary(32)"); |
| | 0 | 347 | | |
| | 0 | 348 | | b.Property<byte[]>("Signature") |
| | 0 | 349 | | .HasColumnType("varbinary(max)"); |
| | 0 | 350 | | |
| | 0 | 351 | | b.Property<byte>("State") |
| | 0 | 352 | | .HasColumnType("tinyint"); |
| | 0 | 353 | | |
| | 0 | 354 | | b.HasKey("ChannelId", "HtlcId", "Direction"); |
| | 0 | 355 | | |
| | 0 | 356 | | b.ToTable("Htlcs"); |
| | 0 | 357 | | }); |
| | | 358 | | |
| | 0 | 359 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| | 0 | 360 | | { |
| | 0 | 361 | | b.Property<byte[]>("NodeId") |
| | 0 | 362 | | .HasColumnType("varbinary(33)"); |
| | 0 | 363 | | |
| | 0 | 364 | | b.Property<string>("Host") |
| | 0 | 365 | | .IsRequired() |
| | 0 | 366 | | .HasColumnType("nvarchar(max)"); |
| | 0 | 367 | | |
| | 0 | 368 | | b.Property<DateTime>("LastSeenAt") |
| | 0 | 369 | | .HasColumnType("datetime2"); |
| | 0 | 370 | | |
| | 0 | 371 | | b.Property<long>("Port") |
| | 0 | 372 | | .HasColumnType("bigint"); |
| | 0 | 373 | | |
| | 0 | 374 | | b.Property<string>("Type") |
| | 0 | 375 | | .IsRequired() |
| | 0 | 376 | | .HasColumnType("nvarchar(max)"); |
| | 0 | 377 | | |
| | 0 | 378 | | b.HasKey("NodeId"); |
| | 0 | 379 | | |
| | 0 | 380 | | b.ToTable("Peers"); |
| | 0 | 381 | | }); |
| | | 382 | | |
| | 0 | 383 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.UtxoEntity", b => |
| | 0 | 384 | | { |
| | 0 | 385 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "WalletAddres |
| | 0 | 386 | | .WithMany("Utxos") |
| | 0 | 387 | | .HasForeignKey("AddressIndex", "IsAddressChange", "AddressType") |
| | 0 | 388 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 389 | | .IsRequired(); |
| | 0 | 390 | | |
| | 0 | 391 | | b.Navigation("WalletAddress"); |
| | 0 | 392 | | }); |
| | | 393 | | |
| | 0 | 394 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| | 0 | 395 | | { |
| | 0 | 396 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 397 | | .WithMany("WatchedTransactions") |
| | 0 | 398 | | .HasForeignKey("ChannelId") |
| | 0 | 399 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 400 | | .IsRequired(); |
| | 0 | 401 | | }); |
| | | 402 | | |
| | 0 | 403 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| | 0 | 404 | | { |
| | 0 | 405 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 406 | | .WithOne("Config") |
| | 0 | 407 | | .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch |
| | 0 | 408 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 409 | | .IsRequired(); |
| | 0 | 410 | | }); |
| | | 411 | | |
| | 0 | 412 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 413 | | { |
| | 0 | 414 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null) |
| | 0 | 415 | | .WithMany("Channels") |
| | 0 | 416 | | .HasForeignKey("PeerEntityNodeId"); |
| | 0 | 417 | | |
| | 0 | 418 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "ChangeAddres |
| | 0 | 419 | | .WithMany() |
| | 0 | 420 | | .HasForeignKey("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType"); |
| | 0 | 421 | | |
| | 0 | 422 | | b.Navigation("ChangeAddress"); |
| | 0 | 423 | | }); |
| | | 424 | | |
| | 0 | 425 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| | 0 | 426 | | { |
| | 0 | 427 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 428 | | .WithMany("KeySets") |
| | 0 | 429 | | .HasForeignKey("ChannelId") |
| | 0 | 430 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 431 | | .IsRequired(); |
| | 0 | 432 | | }); |
| | | 433 | | |
| | 0 | 434 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| | 0 | 435 | | { |
| | 0 | 436 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 437 | | .WithMany("Htlcs") |
| | 0 | 438 | | .HasForeignKey("ChannelId") |
| | 0 | 439 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 440 | | .IsRequired(); |
| | 0 | 441 | | }); |
| | | 442 | | |
| | 0 | 443 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b => |
| | 0 | 444 | | { |
| | 0 | 445 | | b.Navigation("Utxos"); |
| | 0 | 446 | | }); |
| | | 447 | | |
| | 0 | 448 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 449 | | { |
| | 0 | 450 | | b.Navigation("Config"); |
| | 0 | 451 | | |
| | 0 | 452 | | b.Navigation("Htlcs"); |
| | 0 | 453 | | |
| | 0 | 454 | | b.Navigation("KeySets"); |
| | 0 | 455 | | |
| | 0 | 456 | | b.Navigation("WatchedTransactions"); |
| | 0 | 457 | | }); |
| | | 458 | | |
| | 0 | 459 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| | 0 | 460 | | { |
| | 0 | 461 | | b.Navigation("Channels"); |
| | 0 | 462 | | }); |
| | | 463 | | #pragma warning restore 612, 618 |
| | 0 | 464 | | } |
| | | 465 | | } |
| | | 466 | | } |