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