| | 1 | | // <auto-generated /> |
| | 2 | | using System; |
| | 3 | | using Microsoft.EntityFrameworkCore; |
| | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | 5 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | 7 | | using NLightning.Infrastructure.Persistence.Contexts; |
| | 8 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | 9 | |
|
| | 10 | | #nullable disable |
| | 11 | |
|
| | 12 | | namespace NLightning.Infrastructure.Persistence.Postgres.Migrations |
| | 13 | | { |
| | 14 | | [DbContext(typeof(NLightningDbContext))] |
| | 15 | | [Migration("20250612173122_AddBlockchaisStateAndWatchedTransaction")] |
| | 16 | | partial class AddBlockchaisStateAndWatchedTransaction |
| | 17 | | { |
| | 18 | | /// <inheritdoc /> |
| | 19 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | 20 | | { |
| | 21 | | #pragma warning disable 612, 618 |
| 0 | 22 | | modelBuilder |
| 0 | 23 | | .HasAnnotation("ProductVersion", "8.0.12") |
| 0 | 24 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | 25 | |
|
| 0 | 26 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | 27 | |
|
| 0 | 28 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.BlockchainStateEntity", b => |
| 0 | 29 | | { |
| 0 | 30 | | b.Property<Guid>("Id") |
| 0 | 31 | | .ValueGeneratedOnAdd() |
| 0 | 32 | | .HasColumnType("uuid") |
| 0 | 33 | | .HasColumnName("id"); |
| 0 | 34 | |
|
| 0 | 35 | | b.Property<DateTime>("LastProcessedAt") |
| 0 | 36 | | .HasColumnType("timestamp with time zone") |
| 0 | 37 | | .HasColumnName("last_processed_at"); |
| 0 | 38 | |
|
| 0 | 39 | | b.Property<byte[]>("LastProcessedBlockHash") |
| 0 | 40 | | .IsRequired() |
| 0 | 41 | | .HasColumnType("bytea") |
| 0 | 42 | | .HasColumnName("last_processed_block_hash"); |
| 0 | 43 | |
|
| 0 | 44 | | b.Property<long>("LastProcessedHeight") |
| 0 | 45 | | .HasColumnType("bigint") |
| 0 | 46 | | .HasColumnName("last_processed_height"); |
| 0 | 47 | |
|
| 0 | 48 | | b.HasKey("Id") |
| 0 | 49 | | .HasName("pk_blockchain_states"); |
| 0 | 50 | |
|
| 0 | 51 | | b.ToTable("blockchain_states", (string)null); |
| 0 | 52 | | }); |
| | 53 | |
|
| 0 | 54 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| 0 | 55 | | { |
| 0 | 56 | | b.Property<byte[]>("TransactionId") |
| 0 | 57 | | .HasColumnType("bytea") |
| 0 | 58 | | .HasColumnName("transaction_id"); |
| 0 | 59 | |
|
| 0 | 60 | | b.Property<byte[]>("ChannelId") |
| 0 | 61 | | .IsRequired() |
| 0 | 62 | | .HasColumnType("bytea") |
| 0 | 63 | | .HasColumnName("channel_id"); |
| 0 | 64 | |
|
| 0 | 65 | | b.Property<DateTime?>("CompletedAt") |
| 0 | 66 | | .HasColumnType("timestamp with time zone") |
| 0 | 67 | | .HasColumnName("completed_at"); |
| 0 | 68 | |
|
| 0 | 69 | | b.Property<DateTime>("CreatedAt") |
| 0 | 70 | | .HasColumnType("timestamp with time zone") |
| 0 | 71 | | .HasColumnName("created_at"); |
| 0 | 72 | |
|
| 0 | 73 | | b.Property<long?>("FirstSeenAtHeight") |
| 0 | 74 | | .HasColumnType("bigint") |
| 0 | 75 | | .HasColumnName("first_seen_at_height"); |
| 0 | 76 | |
|
| 0 | 77 | | b.Property<long>("RequiredDepth") |
| 0 | 78 | | .HasColumnType("bigint") |
| 0 | 79 | | .HasColumnName("required_depth"); |
| 0 | 80 | |
|
| 0 | 81 | | b.Property<int?>("TransactionIndex") |
| 0 | 82 | | .HasColumnType("integer") |
| 0 | 83 | | .HasColumnName("transaction_index"); |
| 0 | 84 | |
|
| 0 | 85 | | b.HasKey("TransactionId") |
| 0 | 86 | | .HasName("pk_watched_transactions"); |
| 0 | 87 | |
|
| 0 | 88 | | b.HasIndex("ChannelId") |
| 0 | 89 | | .HasDatabaseName("ix_watched_transactions_channel_id"); |
| 0 | 90 | |
|
| 0 | 91 | | b.ToTable("watched_transactions", (string)null); |
| 0 | 92 | | }); |
| | 93 | |
|
| 0 | 94 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| 0 | 95 | | { |
| 0 | 96 | | b.Property<byte[]>("ChannelId") |
| 0 | 97 | | .HasColumnType("bytea") |
| 0 | 98 | | .HasColumnName("channel_id"); |
| 0 | 99 | |
|
| 0 | 100 | | b.Property<long?>("ChannelReserveAmountSats") |
| 0 | 101 | | .HasColumnType("bigint") |
| 0 | 102 | | .HasColumnName("channel_reserve_amount_sats"); |
| 0 | 103 | |
|
| 0 | 104 | | b.Property<long>("FeeRatePerKwSatoshis") |
| 0 | 105 | | .HasColumnType("bigint") |
| 0 | 106 | | .HasColumnName("fee_rate_per_kw_satoshis"); |
| 0 | 107 | |
|
| 0 | 108 | | b.Property<decimal>("HtlcMinimumMsat") |
| 0 | 109 | | .HasColumnType("numeric(20,0)") |
| 0 | 110 | | .HasColumnName("htlc_minimum_msat"); |
| 0 | 111 | |
|
| 0 | 112 | | b.Property<long>("LocalDustLimitAmountSats") |
| 0 | 113 | | .HasColumnType("bigint") |
| 0 | 114 | | .HasColumnName("local_dust_limit_amount_sats"); |
| 0 | 115 | |
|
| 0 | 116 | | b.Property<byte[]>("LocalUpfrontShutdownScript") |
| 0 | 117 | | .HasColumnType("bytea") |
| 0 | 118 | | .HasColumnName("local_upfront_shutdown_script"); |
| 0 | 119 | |
|
| 0 | 120 | | b.Property<int>("MaxAcceptedHtlcs") |
| 0 | 121 | | .HasColumnType("integer") |
| 0 | 122 | | .HasColumnName("max_accepted_htlcs"); |
| 0 | 123 | |
|
| 0 | 124 | | b.Property<decimal>("MaxHtlcAmountInFlight") |
| 0 | 125 | | .HasColumnType("numeric(20,0)") |
| 0 | 126 | | .HasColumnName("max_htlc_amount_in_flight"); |
| 0 | 127 | |
|
| 0 | 128 | | b.Property<long>("MinimumDepth") |
| 0 | 129 | | .HasColumnType("bigint") |
| 0 | 130 | | .HasColumnName("minimum_depth"); |
| 0 | 131 | |
|
| 0 | 132 | | b.Property<bool>("OptionAnchorOutputs") |
| 0 | 133 | | .HasColumnType("boolean") |
| 0 | 134 | | .HasColumnName("option_anchor_outputs"); |
| 0 | 135 | |
|
| 0 | 136 | | b.Property<long>("RemoteDustLimitAmountSats") |
| 0 | 137 | | .HasColumnType("bigint") |
| 0 | 138 | | .HasColumnName("remote_dust_limit_amount_sats"); |
| 0 | 139 | |
|
| 0 | 140 | | b.Property<byte[]>("RemoteUpfrontShutdownScript") |
| 0 | 141 | | .HasColumnType("bytea") |
| 0 | 142 | | .HasColumnName("remote_upfront_shutdown_script"); |
| 0 | 143 | |
|
| 0 | 144 | | b.Property<int>("ToSelfDelay") |
| 0 | 145 | | .HasColumnType("integer") |
| 0 | 146 | | .HasColumnName("to_self_delay"); |
| 0 | 147 | |
|
| 0 | 148 | | b.Property<byte>("UseScidAlias") |
| 0 | 149 | | .HasColumnType("smallint") |
| 0 | 150 | | .HasColumnName("use_scid_alias"); |
| 0 | 151 | |
|
| 0 | 152 | | b.HasKey("ChannelId") |
| 0 | 153 | | .HasName("pk_channel_configs"); |
| 0 | 154 | |
|
| 0 | 155 | | b.ToTable("channel_configs", (string)null); |
| 0 | 156 | | }); |
| | 157 | |
|
| 0 | 158 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 159 | | { |
| 0 | 160 | | b.Property<byte[]>("ChannelId") |
| 0 | 161 | | .HasColumnType("bytea") |
| 0 | 162 | | .HasColumnName("channel_id"); |
| 0 | 163 | |
|
| 0 | 164 | | b.Property<long>("FundingAmountSatoshis") |
| 0 | 165 | | .HasColumnType("bigint") |
| 0 | 166 | | .HasColumnName("funding_amount_satoshis"); |
| 0 | 167 | |
|
| 0 | 168 | | b.Property<long>("FundingCreatedAtBlockHeight") |
| 0 | 169 | | .HasColumnType("bigint") |
| 0 | 170 | | .HasColumnName("funding_created_at_block_height"); |
| 0 | 171 | |
|
| 0 | 172 | | b.Property<int>("FundingOutputIndex") |
| 0 | 173 | | .HasColumnType("integer") |
| 0 | 174 | | .HasColumnName("funding_output_index"); |
| 0 | 175 | |
|
| 0 | 176 | | b.Property<byte[]>("FundingTxId") |
| 0 | 177 | | .IsRequired() |
| 0 | 178 | | .HasColumnType("bytea") |
| 0 | 179 | | .HasColumnName("funding_tx_id"); |
| 0 | 180 | |
|
| 0 | 181 | | b.Property<bool>("IsInitiator") |
| 0 | 182 | | .HasColumnType("boolean") |
| 0 | 183 | | .HasColumnName("is_initiator"); |
| 0 | 184 | |
|
| 0 | 185 | | b.Property<byte[]>("LastReceivedSignature") |
| 0 | 186 | | .HasColumnType("bytea") |
| 0 | 187 | | .HasColumnName("last_received_signature"); |
| 0 | 188 | |
|
| 0 | 189 | | b.Property<byte[]>("LastSentSignature") |
| 0 | 190 | | .HasColumnType("bytea") |
| 0 | 191 | | .HasColumnName("last_sent_signature"); |
| 0 | 192 | |
|
| 0 | 193 | | b.Property<decimal>("LocalBalanceSatoshis") |
| 0 | 194 | | .HasColumnType("numeric") |
| 0 | 195 | | .HasColumnName("local_balance_satoshis"); |
| 0 | 196 | |
|
| 0 | 197 | | b.Property<decimal>("LocalNextHtlcId") |
| 0 | 198 | | .HasColumnType("numeric(20,0)") |
| 0 | 199 | | .HasColumnName("local_next_htlc_id"); |
| 0 | 200 | |
|
| 0 | 201 | | b.Property<decimal>("LocalRevocationNumber") |
| 0 | 202 | | .HasColumnType("numeric(20,0)") |
| 0 | 203 | | .HasColumnName("local_revocation_number"); |
| 0 | 204 | |
|
| 0 | 205 | | b.Property<byte[]>("PeerEntityNodeId") |
| 0 | 206 | | .HasColumnType("bytea") |
| 0 | 207 | | .HasColumnName("peer_entity_node_id"); |
| 0 | 208 | |
|
| 0 | 209 | | b.Property<decimal>("RemoteBalanceSatoshis") |
| 0 | 210 | | .HasColumnType("numeric") |
| 0 | 211 | | .HasColumnName("remote_balance_satoshis"); |
| 0 | 212 | |
|
| 0 | 213 | | b.Property<decimal>("RemoteNextHtlcId") |
| 0 | 214 | | .HasColumnType("numeric(20,0)") |
| 0 | 215 | | .HasColumnName("remote_next_htlc_id"); |
| 0 | 216 | |
|
| 0 | 217 | | b.Property<byte[]>("RemoteNodeId") |
| 0 | 218 | | .IsRequired() |
| 0 | 219 | | .HasColumnType("bytea") |
| 0 | 220 | | .HasColumnName("remote_node_id"); |
| 0 | 221 | |
|
| 0 | 222 | | b.Property<decimal>("RemoteRevocationNumber") |
| 0 | 223 | | .HasColumnType("numeric(20,0)") |
| 0 | 224 | | .HasColumnName("remote_revocation_number"); |
| 0 | 225 | |
|
| 0 | 226 | | b.Property<byte>("State") |
| 0 | 227 | | .HasColumnType("smallint") |
| 0 | 228 | | .HasColumnName("state"); |
| 0 | 229 | |
|
| 0 | 230 | | b.Property<byte>("Version") |
| 0 | 231 | | .HasColumnType("smallint") |
| 0 | 232 | | .HasColumnName("version"); |
| 0 | 233 | |
|
| 0 | 234 | | b.HasKey("ChannelId") |
| 0 | 235 | | .HasName("pk_channels"); |
| 0 | 236 | |
|
| 0 | 237 | | b.HasIndex("PeerEntityNodeId") |
| 0 | 238 | | .HasDatabaseName("ix_channels_peer_entity_node_id"); |
| 0 | 239 | |
|
| 0 | 240 | | b.ToTable("channels", (string)null); |
| 0 | 241 | | }); |
| | 242 | |
|
| 0 | 243 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| 0 | 244 | | { |
| 0 | 245 | | b.Property<byte[]>("ChannelId") |
| 0 | 246 | | .HasColumnType("bytea") |
| 0 | 247 | | .HasColumnName("channel_id"); |
| 0 | 248 | |
|
| 0 | 249 | | b.Property<bool>("IsLocal") |
| 0 | 250 | | .HasColumnType("boolean") |
| 0 | 251 | | .HasColumnName("is_local"); |
| 0 | 252 | |
|
| 0 | 253 | | b.Property<decimal>("CurrentPerCommitmentIndex") |
| 0 | 254 | | .HasColumnType("numeric(20,0)") |
| 0 | 255 | | .HasColumnName("current_per_commitment_index"); |
| 0 | 256 | |
|
| 0 | 257 | | b.Property<byte[]>("CurrentPerCommitmentPoint") |
| 0 | 258 | | .IsRequired() |
| 0 | 259 | | .HasColumnType("bytea") |
| 0 | 260 | | .HasColumnName("current_per_commitment_point"); |
| 0 | 261 | |
|
| 0 | 262 | | b.Property<byte[]>("DelayedPaymentBasepoint") |
| 0 | 263 | | .IsRequired() |
| 0 | 264 | | .HasColumnType("bytea") |
| 0 | 265 | | .HasColumnName("delayed_payment_basepoint"); |
| 0 | 266 | |
|
| 0 | 267 | | b.Property<byte[]>("FundingPubKey") |
| 0 | 268 | | .IsRequired() |
| 0 | 269 | | .HasColumnType("bytea") |
| 0 | 270 | | .HasColumnName("funding_pub_key"); |
| 0 | 271 | |
|
| 0 | 272 | | b.Property<byte[]>("HtlcBasepoint") |
| 0 | 273 | | .IsRequired() |
| 0 | 274 | | .HasColumnType("bytea") |
| 0 | 275 | | .HasColumnName("htlc_basepoint"); |
| 0 | 276 | |
|
| 0 | 277 | | b.Property<long>("KeyIndex") |
| 0 | 278 | | .HasColumnType("bigint") |
| 0 | 279 | | .HasColumnName("key_index"); |
| 0 | 280 | |
|
| 0 | 281 | | b.Property<byte[]>("LastRevealedPerCommitmentSecret") |
| 0 | 282 | | .HasColumnType("bytea") |
| 0 | 283 | | .HasColumnName("last_revealed_per_commitment_secret"); |
| 0 | 284 | |
|
| 0 | 285 | | b.Property<byte[]>("PaymentBasepoint") |
| 0 | 286 | | .IsRequired() |
| 0 | 287 | | .HasColumnType("bytea") |
| 0 | 288 | | .HasColumnName("payment_basepoint"); |
| 0 | 289 | |
|
| 0 | 290 | | b.Property<byte[]>("RevocationBasepoint") |
| 0 | 291 | | .IsRequired() |
| 0 | 292 | | .HasColumnType("bytea") |
| 0 | 293 | | .HasColumnName("revocation_basepoint"); |
| 0 | 294 | |
|
| 0 | 295 | | b.HasKey("ChannelId", "IsLocal") |
| 0 | 296 | | .HasName("pk_channel_key_sets"); |
| 0 | 297 | |
|
| 0 | 298 | | b.ToTable("channel_key_sets", (string)null); |
| 0 | 299 | | }); |
| | 300 | |
|
| 0 | 301 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| 0 | 302 | | { |
| 0 | 303 | | b.Property<byte[]>("ChannelId") |
| 0 | 304 | | .HasColumnType("bytea") |
| 0 | 305 | | .HasColumnName("channel_id"); |
| 0 | 306 | |
|
| 0 | 307 | | b.Property<decimal>("HtlcId") |
| 0 | 308 | | .HasColumnType("numeric(20,0)") |
| 0 | 309 | | .HasColumnName("htlc_id"); |
| 0 | 310 | |
|
| 0 | 311 | | b.Property<byte>("Direction") |
| 0 | 312 | | .HasColumnType("smallint") |
| 0 | 313 | | .HasColumnName("direction"); |
| 0 | 314 | |
|
| 0 | 315 | | b.Property<byte[]>("AddMessageBytes") |
| 0 | 316 | | .IsRequired() |
| 0 | 317 | | .HasColumnType("bytea") |
| 0 | 318 | | .HasColumnName("add_message_bytes"); |
| 0 | 319 | |
|
| 0 | 320 | | b.Property<decimal>("AmountMsat") |
| 0 | 321 | | .HasColumnType("numeric(20,0)") |
| 0 | 322 | | .HasColumnName("amount_msat"); |
| 0 | 323 | |
|
| 0 | 324 | | b.Property<long>("CltvExpiry") |
| 0 | 325 | | .HasColumnType("bigint") |
| 0 | 326 | | .HasColumnName("cltv_expiry"); |
| 0 | 327 | |
|
| 0 | 328 | | b.Property<decimal>("ObscuredCommitmentNumber") |
| 0 | 329 | | .HasColumnType("numeric(20,0)") |
| 0 | 330 | | .HasColumnName("obscured_commitment_number"); |
| 0 | 331 | |
|
| 0 | 332 | | b.Property<byte[]>("PaymentHash") |
| 0 | 333 | | .IsRequired() |
| 0 | 334 | | .HasColumnType("bytea") |
| 0 | 335 | | .HasColumnName("payment_hash"); |
| 0 | 336 | |
|
| 0 | 337 | | b.Property<byte[]>("PaymentPreimage") |
| 0 | 338 | | .HasColumnType("bytea") |
| 0 | 339 | | .HasColumnName("payment_preimage"); |
| 0 | 340 | |
|
| 0 | 341 | | b.Property<byte[]>("Signature") |
| 0 | 342 | | .HasColumnType("bytea") |
| 0 | 343 | | .HasColumnName("signature"); |
| 0 | 344 | |
|
| 0 | 345 | | b.Property<byte>("State") |
| 0 | 346 | | .HasColumnType("smallint") |
| 0 | 347 | | .HasColumnName("state"); |
| 0 | 348 | |
|
| 0 | 349 | | b.HasKey("ChannelId", "HtlcId", "Direction") |
| 0 | 350 | | .HasName("pk_htlcs"); |
| 0 | 351 | |
|
| 0 | 352 | | b.ToTable("htlcs", (string)null); |
| 0 | 353 | | }); |
| | 354 | |
|
| 0 | 355 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| 0 | 356 | | { |
| 0 | 357 | | b.Property<byte[]>("NodeId") |
| 0 | 358 | | .HasColumnType("bytea") |
| 0 | 359 | | .HasColumnName("node_id"); |
| 0 | 360 | |
|
| 0 | 361 | | b.Property<string>("Host") |
| 0 | 362 | | .IsRequired() |
| 0 | 363 | | .HasColumnType("text") |
| 0 | 364 | | .HasColumnName("host"); |
| 0 | 365 | |
|
| 0 | 366 | | b.Property<DateTime>("LastSeenAt") |
| 0 | 367 | | .HasColumnType("timestamp with time zone") |
| 0 | 368 | | .HasColumnName("last_seen_at"); |
| 0 | 369 | |
|
| 0 | 370 | | b.Property<long>("Port") |
| 0 | 371 | | .HasColumnType("bigint") |
| 0 | 372 | | .HasColumnName("port"); |
| 0 | 373 | |
|
| 0 | 374 | | b.HasKey("NodeId") |
| 0 | 375 | | .HasName("pk_peers"); |
| 0 | 376 | |
|
| 0 | 377 | | b.ToTable("peers", (string)null); |
| 0 | 378 | | }); |
| | 379 | |
|
| 0 | 380 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| 0 | 381 | | { |
| 0 | 382 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 383 | | .WithMany("WatchedTransactions") |
| 0 | 384 | | .HasForeignKey("ChannelId") |
| 0 | 385 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 386 | | .IsRequired() |
| 0 | 387 | | .HasConstraintName("fk_watched_transactions_channels_channel_id"); |
| 0 | 388 | | }); |
| | 389 | |
|
| 0 | 390 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| 0 | 391 | | { |
| 0 | 392 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 393 | | .WithOne("Config") |
| 0 | 394 | | .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch |
| 0 | 395 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 396 | | .IsRequired() |
| 0 | 397 | | .HasConstraintName("fk_channel_configs_channels_channel_id"); |
| 0 | 398 | | }); |
| | 399 | |
|
| 0 | 400 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 401 | | { |
| 0 | 402 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null) |
| 0 | 403 | | .WithMany("Channels") |
| 0 | 404 | | .HasForeignKey("PeerEntityNodeId") |
| 0 | 405 | | .HasConstraintName("fk_channels_peers_peer_entity_node_id"); |
| 0 | 406 | | }); |
| | 407 | |
|
| 0 | 408 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| 0 | 409 | | { |
| 0 | 410 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 411 | | .WithMany("KeySets") |
| 0 | 412 | | .HasForeignKey("ChannelId") |
| 0 | 413 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 414 | | .IsRequired() |
| 0 | 415 | | .HasConstraintName("fk_channel_key_sets_channels_channel_id"); |
| 0 | 416 | | }); |
| | 417 | |
|
| 0 | 418 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| 0 | 419 | | { |
| 0 | 420 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 421 | | .WithMany("Htlcs") |
| 0 | 422 | | .HasForeignKey("ChannelId") |
| 0 | 423 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 424 | | .IsRequired() |
| 0 | 425 | | .HasConstraintName("fk_htlcs_channels_channel_id"); |
| 0 | 426 | | }); |
| | 427 | |
|
| 0 | 428 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 429 | | { |
| 0 | 430 | | b.Navigation("Config"); |
| 0 | 431 | |
|
| 0 | 432 | | b.Navigation("Htlcs"); |
| 0 | 433 | |
|
| 0 | 434 | | b.Navigation("KeySets"); |
| 0 | 435 | |
|
| 0 | 436 | | b.Navigation("WatchedTransactions"); |
| 0 | 437 | | }); |
| | 438 | |
|
| 0 | 439 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| 0 | 440 | | { |
| 0 | 441 | | b.Navigation("Channels"); |
| 0 | 442 | | }); |
| | 443 | | #pragma warning restore 612, 618 |
| 0 | 444 | | } |
| | 445 | | } |
| | 446 | | } |