| | | 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", "9.0.9") |
| | 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.UtxoEntity", b => |
| | 0 | 52 | | { |
| | 0 | 53 | | b.Property<byte[]>("TransactionId") |
| | 0 | 54 | | .HasColumnType("bytea") |
| | 0 | 55 | | .HasColumnName("transaction_id"); |
| | 0 | 56 | | |
| | 0 | 57 | | b.Property<long>("Index") |
| | 0 | 58 | | .HasColumnType("bigint") |
| | 0 | 59 | | .HasColumnName("index"); |
| | 0 | 60 | | |
| | 0 | 61 | | b.Property<long>("AddressIndex") |
| | 0 | 62 | | .HasColumnType("bigint") |
| | 0 | 63 | | .HasColumnName("address_index"); |
| | 0 | 64 | | |
| | 0 | 65 | | b.Property<byte>("AddressType") |
| | 0 | 66 | | .HasColumnType("smallint") |
| | 0 | 67 | | .HasColumnName("address_type"); |
| | 0 | 68 | | |
| | 0 | 69 | | b.Property<long>("AmountSats") |
| | 0 | 70 | | .HasColumnType("bigint") |
| | 0 | 71 | | .HasColumnName("amount_sats"); |
| | 0 | 72 | | |
| | 0 | 73 | | b.Property<long>("BlockHeight") |
| | 0 | 74 | | .HasColumnType("bigint") |
| | 0 | 75 | | .HasColumnName("block_height"); |
| | 0 | 76 | | |
| | 0 | 77 | | b.Property<bool>("IsAddressChange") |
| | 0 | 78 | | .HasColumnType("boolean") |
| | 0 | 79 | | .HasColumnName("is_address_change"); |
| | 0 | 80 | | |
| | 0 | 81 | | b.Property<byte[]>("LockedToChannelId") |
| | 0 | 82 | | .HasColumnType("bytea") |
| | 0 | 83 | | .HasColumnName("locked_to_channel_id"); |
| | 0 | 84 | | |
| | 0 | 85 | | b.Property<byte[]>("UsedInTransactionId") |
| | 0 | 86 | | .HasColumnType("bytea") |
| | 0 | 87 | | .HasColumnName("used_in_transaction_id"); |
| | 0 | 88 | | |
| | 0 | 89 | | b.HasKey("TransactionId", "Index") |
| | 0 | 90 | | .HasName("pk_utxos"); |
| | 0 | 91 | | |
| | 0 | 92 | | b.HasIndex("AddressType") |
| | 0 | 93 | | .HasDatabaseName("ix_utxos_address_type") |
| | 0 | 94 | | .HasAnnotation("Npgsql:CreatedConcurrently", true); |
| | 0 | 95 | | |
| | 0 | 96 | | b.HasIndex("LockedToChannelId") |
| | 0 | 97 | | .HasDatabaseName("ix_utxos_locked_to_channel_id") |
| | 0 | 98 | | .HasAnnotation("Npgsql:CreatedConcurrently", true); |
| | 0 | 99 | | |
| | 0 | 100 | | b.HasIndex("UsedInTransactionId") |
| | 0 | 101 | | .HasDatabaseName("ix_utxos_used_in_transaction_id") |
| | 0 | 102 | | .HasAnnotation("Npgsql:CreatedConcurrently", true); |
| | 0 | 103 | | |
| | 0 | 104 | | b.HasIndex("AddressIndex", "IsAddressChange", "AddressType") |
| | 0 | 105 | | .HasDatabaseName("ix_utxos_address_index_is_address_change_address_type") |
| | 0 | 106 | | .HasAnnotation("Npgsql:CreatedConcurrently", true); |
| | 0 | 107 | | |
| | 0 | 108 | | b.ToTable("utxos", (string)null); |
| | 0 | 109 | | }); |
| | | 110 | | |
| | 0 | 111 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b => |
| | 0 | 112 | | { |
| | 0 | 113 | | b.Property<long>("Index") |
| | 0 | 114 | | .HasColumnType("bigint") |
| | 0 | 115 | | .HasColumnName("index"); |
| | 0 | 116 | | |
| | 0 | 117 | | b.Property<bool>("IsChange") |
| | 0 | 118 | | .HasColumnType("boolean") |
| | 0 | 119 | | .HasColumnName("is_change"); |
| | 0 | 120 | | |
| | 0 | 121 | | b.Property<byte>("AddressType") |
| | 0 | 122 | | .HasColumnType("smallint") |
| | 0 | 123 | | .HasColumnName("address_type"); |
| | 0 | 124 | | |
| | 0 | 125 | | b.Property<string>("Address") |
| | 0 | 126 | | .IsRequired() |
| | 0 | 127 | | .HasColumnType("text") |
| | 0 | 128 | | .HasColumnName("address"); |
| | 0 | 129 | | |
| | 0 | 130 | | b.HasKey("Index", "IsChange", "AddressType") |
| | 0 | 131 | | .HasName("pk_wallet_addresses"); |
| | 0 | 132 | | |
| | 0 | 133 | | b.ToTable("wallet_addresses", (string)null); |
| | 0 | 134 | | }); |
| | | 135 | | |
| | 0 | 136 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| | 0 | 137 | | { |
| | 0 | 138 | | b.Property<byte[]>("TransactionId") |
| | 0 | 139 | | .HasColumnType("bytea") |
| | 0 | 140 | | .HasColumnName("transaction_id"); |
| | 0 | 141 | | |
| | 0 | 142 | | b.Property<byte[]>("ChannelId") |
| | 0 | 143 | | .IsRequired() |
| | 0 | 144 | | .HasColumnType("bytea") |
| | 0 | 145 | | .HasColumnName("channel_id"); |
| | 0 | 146 | | |
| | 0 | 147 | | b.Property<DateTime?>("CompletedAt") |
| | 0 | 148 | | .HasColumnType("timestamp with time zone") |
| | 0 | 149 | | .HasColumnName("completed_at"); |
| | 0 | 150 | | |
| | 0 | 151 | | b.Property<DateTime>("CreatedAt") |
| | 0 | 152 | | .HasColumnType("timestamp with time zone") |
| | 0 | 153 | | .HasColumnName("created_at"); |
| | 0 | 154 | | |
| | 0 | 155 | | b.Property<long?>("FirstSeenAtHeight") |
| | 0 | 156 | | .HasColumnType("bigint") |
| | 0 | 157 | | .HasColumnName("first_seen_at_height"); |
| | 0 | 158 | | |
| | 0 | 159 | | b.Property<long>("RequiredDepth") |
| | 0 | 160 | | .HasColumnType("bigint") |
| | 0 | 161 | | .HasColumnName("required_depth"); |
| | 0 | 162 | | |
| | 0 | 163 | | b.Property<int?>("TransactionIndex") |
| | 0 | 164 | | .HasColumnType("integer") |
| | 0 | 165 | | .HasColumnName("transaction_index"); |
| | 0 | 166 | | |
| | 0 | 167 | | b.HasKey("TransactionId") |
| | 0 | 168 | | .HasName("pk_watched_transactions"); |
| | 0 | 169 | | |
| | 0 | 170 | | b.HasIndex("ChannelId") |
| | 0 | 171 | | .HasDatabaseName("ix_watched_transactions_channel_id"); |
| | 0 | 172 | | |
| | 0 | 173 | | b.ToTable("watched_transactions", (string)null); |
| | 0 | 174 | | }); |
| | | 175 | | |
| | 0 | 176 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| | 0 | 177 | | { |
| | 0 | 178 | | b.Property<byte[]>("ChannelId") |
| | 0 | 179 | | .HasColumnType("bytea") |
| | 0 | 180 | | .HasColumnName("channel_id"); |
| | 0 | 181 | | |
| | 0 | 182 | | b.Property<long?>("ChannelReserveAmountSats") |
| | 0 | 183 | | .HasColumnType("bigint") |
| | 0 | 184 | | .HasColumnName("channel_reserve_amount_sats"); |
| | 0 | 185 | | |
| | 0 | 186 | | b.Property<long>("FeeRatePerKwSatoshis") |
| | 0 | 187 | | .HasColumnType("bigint") |
| | 0 | 188 | | .HasColumnName("fee_rate_per_kw_satoshis"); |
| | 0 | 189 | | |
| | 0 | 190 | | b.Property<decimal>("HtlcMinimumMsat") |
| | 0 | 191 | | .HasColumnType("numeric(20,0)") |
| | 0 | 192 | | .HasColumnName("htlc_minimum_msat"); |
| | 0 | 193 | | |
| | 0 | 194 | | b.Property<long>("LocalDustLimitAmountSats") |
| | 0 | 195 | | .HasColumnType("bigint") |
| | 0 | 196 | | .HasColumnName("local_dust_limit_amount_sats"); |
| | 0 | 197 | | |
| | 0 | 198 | | b.Property<byte[]>("LocalUpfrontShutdownScript") |
| | 0 | 199 | | .HasColumnType("bytea") |
| | 0 | 200 | | .HasColumnName("local_upfront_shutdown_script"); |
| | 0 | 201 | | |
| | 0 | 202 | | b.Property<int>("MaxAcceptedHtlcs") |
| | 0 | 203 | | .HasColumnType("integer") |
| | 0 | 204 | | .HasColumnName("max_accepted_htlcs"); |
| | 0 | 205 | | |
| | 0 | 206 | | b.Property<decimal>("MaxHtlcAmountInFlight") |
| | 0 | 207 | | .HasColumnType("numeric(20,0)") |
| | 0 | 208 | | .HasColumnName("max_htlc_amount_in_flight"); |
| | 0 | 209 | | |
| | 0 | 210 | | b.Property<long>("MinimumDepth") |
| | 0 | 211 | | .HasColumnType("bigint") |
| | 0 | 212 | | .HasColumnName("minimum_depth"); |
| | 0 | 213 | | |
| | 0 | 214 | | b.Property<bool>("OptionAnchorOutputs") |
| | 0 | 215 | | .HasColumnType("boolean") |
| | 0 | 216 | | .HasColumnName("option_anchor_outputs"); |
| | 0 | 217 | | |
| | 0 | 218 | | b.Property<long>("RemoteDustLimitAmountSats") |
| | 0 | 219 | | .HasColumnType("bigint") |
| | 0 | 220 | | .HasColumnName("remote_dust_limit_amount_sats"); |
| | 0 | 221 | | |
| | 0 | 222 | | b.Property<byte[]>("RemoteUpfrontShutdownScript") |
| | 0 | 223 | | .HasColumnType("bytea") |
| | 0 | 224 | | .HasColumnName("remote_upfront_shutdown_script"); |
| | 0 | 225 | | |
| | 0 | 226 | | b.Property<int>("ToSelfDelay") |
| | 0 | 227 | | .HasColumnType("integer") |
| | 0 | 228 | | .HasColumnName("to_self_delay"); |
| | 0 | 229 | | |
| | 0 | 230 | | b.Property<byte>("UseScidAlias") |
| | 0 | 231 | | .HasColumnType("smallint") |
| | 0 | 232 | | .HasColumnName("use_scid_alias"); |
| | 0 | 233 | | |
| | 0 | 234 | | b.HasKey("ChannelId") |
| | 0 | 235 | | .HasName("pk_channel_configs"); |
| | 0 | 236 | | |
| | 0 | 237 | | b.ToTable("channel_configs", (string)null); |
| | 0 | 238 | | }); |
| | | 239 | | |
| | 0 | 240 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 241 | | { |
| | 0 | 242 | | b.Property<byte[]>("ChannelId") |
| | 0 | 243 | | .HasColumnType("bytea") |
| | 0 | 244 | | .HasColumnName("channel_id"); |
| | 0 | 245 | | |
| | 0 | 246 | | b.Property<byte?>("ChangeAddressAddressType") |
| | 0 | 247 | | .HasColumnType("smallint") |
| | 0 | 248 | | .HasColumnName("change_address_address_type"); |
| | 0 | 249 | | |
| | 0 | 250 | | b.Property<long?>("ChangeAddressIndex") |
| | 0 | 251 | | .HasColumnType("bigint") |
| | 0 | 252 | | .HasColumnName("change_address_index"); |
| | 0 | 253 | | |
| | 0 | 254 | | b.Property<bool?>("ChangeAddressIsChange") |
| | 0 | 255 | | .HasColumnType("boolean") |
| | 0 | 256 | | .HasColumnName("change_address_is_change"); |
| | 0 | 257 | | |
| | 0 | 258 | | b.Property<byte?>("ChangeAddressType") |
| | 0 | 259 | | .HasColumnType("smallint") |
| | 0 | 260 | | .HasColumnName("change_address_type"); |
| | 0 | 261 | | |
| | 0 | 262 | | b.Property<long>("FundingAmountSatoshis") |
| | 0 | 263 | | .HasColumnType("bigint") |
| | 0 | 264 | | .HasColumnName("funding_amount_satoshis"); |
| | 0 | 265 | | |
| | 0 | 266 | | b.Property<long>("FundingCreatedAtBlockHeight") |
| | 0 | 267 | | .HasColumnType("bigint") |
| | 0 | 268 | | .HasColumnName("funding_created_at_block_height"); |
| | 0 | 269 | | |
| | 0 | 270 | | b.Property<int>("FundingOutputIndex") |
| | 0 | 271 | | .HasColumnType("integer") |
| | 0 | 272 | | .HasColumnName("funding_output_index"); |
| | 0 | 273 | | |
| | 0 | 274 | | b.Property<byte[]>("FundingTxId") |
| | 0 | 275 | | .IsRequired() |
| | 0 | 276 | | .HasColumnType("bytea") |
| | 0 | 277 | | .HasColumnName("funding_tx_id"); |
| | 0 | 278 | | |
| | 0 | 279 | | b.Property<bool>("IsInitiator") |
| | 0 | 280 | | .HasColumnType("boolean") |
| | 0 | 281 | | .HasColumnName("is_initiator"); |
| | 0 | 282 | | |
| | 0 | 283 | | b.Property<byte[]>("LastReceivedSignature") |
| | 0 | 284 | | .HasColumnType("bytea") |
| | 0 | 285 | | .HasColumnName("last_received_signature"); |
| | 0 | 286 | | |
| | 0 | 287 | | b.Property<byte[]>("LastSentSignature") |
| | 0 | 288 | | .HasColumnType("bytea") |
| | 0 | 289 | | .HasColumnName("last_sent_signature"); |
| | 0 | 290 | | |
| | 0 | 291 | | b.Property<decimal>("LocalBalanceSatoshis") |
| | 0 | 292 | | .HasColumnType("numeric") |
| | 0 | 293 | | .HasColumnName("local_balance_satoshis"); |
| | 0 | 294 | | |
| | 0 | 295 | | b.Property<decimal>("LocalNextHtlcId") |
| | 0 | 296 | | .HasColumnType("numeric(20,0)") |
| | 0 | 297 | | .HasColumnName("local_next_htlc_id"); |
| | 0 | 298 | | |
| | 0 | 299 | | b.Property<decimal>("LocalRevocationNumber") |
| | 0 | 300 | | .HasColumnType("numeric(20,0)") |
| | 0 | 301 | | .HasColumnName("local_revocation_number"); |
| | 0 | 302 | | |
| | 0 | 303 | | b.Property<byte[]>("PeerEntityNodeId") |
| | 0 | 304 | | .HasColumnType("bytea") |
| | 0 | 305 | | .HasColumnName("peer_entity_node_id"); |
| | 0 | 306 | | |
| | 0 | 307 | | b.Property<decimal>("RemoteBalanceSatoshis") |
| | 0 | 308 | | .HasColumnType("numeric") |
| | 0 | 309 | | .HasColumnName("remote_balance_satoshis"); |
| | 0 | 310 | | |
| | 0 | 311 | | b.Property<decimal>("RemoteNextHtlcId") |
| | 0 | 312 | | .HasColumnType("numeric(20,0)") |
| | 0 | 313 | | .HasColumnName("remote_next_htlc_id"); |
| | 0 | 314 | | |
| | 0 | 315 | | b.Property<byte[]>("RemoteNodeId") |
| | 0 | 316 | | .IsRequired() |
| | 0 | 317 | | .HasColumnType("bytea") |
| | 0 | 318 | | .HasColumnName("remote_node_id"); |
| | 0 | 319 | | |
| | 0 | 320 | | b.Property<decimal>("RemoteRevocationNumber") |
| | 0 | 321 | | .HasColumnType("numeric(20,0)") |
| | 0 | 322 | | .HasColumnName("remote_revocation_number"); |
| | 0 | 323 | | |
| | 0 | 324 | | b.Property<byte>("State") |
| | 0 | 325 | | .HasColumnType("smallint") |
| | 0 | 326 | | .HasColumnName("state"); |
| | 0 | 327 | | |
| | 0 | 328 | | b.Property<byte>("Version") |
| | 0 | 329 | | .HasColumnType("smallint") |
| | 0 | 330 | | .HasColumnName("version"); |
| | 0 | 331 | | |
| | 0 | 332 | | b.HasKey("ChannelId") |
| | 0 | 333 | | .HasName("pk_channels"); |
| | 0 | 334 | | |
| | 0 | 335 | | b.HasIndex("PeerEntityNodeId") |
| | 0 | 336 | | .HasDatabaseName("ix_channels_peer_entity_node_id"); |
| | 0 | 337 | | |
| | 0 | 338 | | b.HasIndex("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType") |
| | 0 | 339 | | .HasDatabaseName("ix_channels_change_address_index_change_address_is_change_chan"); |
| | 0 | 340 | | |
| | 0 | 341 | | b.ToTable("channels", (string)null); |
| | 0 | 342 | | }); |
| | | 343 | | |
| | 0 | 344 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| | 0 | 345 | | { |
| | 0 | 346 | | b.Property<byte[]>("ChannelId") |
| | 0 | 347 | | .HasColumnType("bytea") |
| | 0 | 348 | | .HasColumnName("channel_id"); |
| | 0 | 349 | | |
| | 0 | 350 | | b.Property<bool>("IsLocal") |
| | 0 | 351 | | .HasColumnType("boolean") |
| | 0 | 352 | | .HasColumnName("is_local"); |
| | 0 | 353 | | |
| | 0 | 354 | | b.Property<decimal>("CurrentPerCommitmentIndex") |
| | 0 | 355 | | .HasColumnType("numeric(20,0)") |
| | 0 | 356 | | .HasColumnName("current_per_commitment_index"); |
| | 0 | 357 | | |
| | 0 | 358 | | b.Property<byte[]>("CurrentPerCommitmentPoint") |
| | 0 | 359 | | .IsRequired() |
| | 0 | 360 | | .HasColumnType("bytea") |
| | 0 | 361 | | .HasColumnName("current_per_commitment_point"); |
| | 0 | 362 | | |
| | 0 | 363 | | b.Property<byte[]>("DelayedPaymentBasepoint") |
| | 0 | 364 | | .IsRequired() |
| | 0 | 365 | | .HasColumnType("bytea") |
| | 0 | 366 | | .HasColumnName("delayed_payment_basepoint"); |
| | 0 | 367 | | |
| | 0 | 368 | | b.Property<byte[]>("FundingPubKey") |
| | 0 | 369 | | .IsRequired() |
| | 0 | 370 | | .HasColumnType("bytea") |
| | 0 | 371 | | .HasColumnName("funding_pub_key"); |
| | 0 | 372 | | |
| | 0 | 373 | | b.Property<byte[]>("HtlcBasepoint") |
| | 0 | 374 | | .IsRequired() |
| | 0 | 375 | | .HasColumnType("bytea") |
| | 0 | 376 | | .HasColumnName("htlc_basepoint"); |
| | 0 | 377 | | |
| | 0 | 378 | | b.Property<long>("KeyIndex") |
| | 0 | 379 | | .HasColumnType("bigint") |
| | 0 | 380 | | .HasColumnName("key_index"); |
| | 0 | 381 | | |
| | 0 | 382 | | b.Property<byte[]>("LastRevealedPerCommitmentSecret") |
| | 0 | 383 | | .HasColumnType("bytea") |
| | 0 | 384 | | .HasColumnName("last_revealed_per_commitment_secret"); |
| | 0 | 385 | | |
| | 0 | 386 | | b.Property<byte[]>("PaymentBasepoint") |
| | 0 | 387 | | .IsRequired() |
| | 0 | 388 | | .HasColumnType("bytea") |
| | 0 | 389 | | .HasColumnName("payment_basepoint"); |
| | 0 | 390 | | |
| | 0 | 391 | | b.Property<byte[]>("RevocationBasepoint") |
| | 0 | 392 | | .IsRequired() |
| | 0 | 393 | | .HasColumnType("bytea") |
| | 0 | 394 | | .HasColumnName("revocation_basepoint"); |
| | 0 | 395 | | |
| | 0 | 396 | | b.HasKey("ChannelId", "IsLocal") |
| | 0 | 397 | | .HasName("pk_channel_key_sets"); |
| | 0 | 398 | | |
| | 0 | 399 | | b.ToTable("channel_key_sets", (string)null); |
| | 0 | 400 | | }); |
| | | 401 | | |
| | 0 | 402 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| | 0 | 403 | | { |
| | 0 | 404 | | b.Property<byte[]>("ChannelId") |
| | 0 | 405 | | .HasColumnType("bytea") |
| | 0 | 406 | | .HasColumnName("channel_id"); |
| | 0 | 407 | | |
| | 0 | 408 | | b.Property<decimal>("HtlcId") |
| | 0 | 409 | | .HasColumnType("numeric(20,0)") |
| | 0 | 410 | | .HasColumnName("htlc_id"); |
| | 0 | 411 | | |
| | 0 | 412 | | b.Property<byte>("Direction") |
| | 0 | 413 | | .HasColumnType("smallint") |
| | 0 | 414 | | .HasColumnName("direction"); |
| | 0 | 415 | | |
| | 0 | 416 | | b.Property<byte[]>("AddMessageBytes") |
| | 0 | 417 | | .IsRequired() |
| | 0 | 418 | | .HasColumnType("bytea") |
| | 0 | 419 | | .HasColumnName("add_message_bytes"); |
| | 0 | 420 | | |
| | 0 | 421 | | b.Property<decimal>("AmountMsat") |
| | 0 | 422 | | .HasColumnType("numeric(20,0)") |
| | 0 | 423 | | .HasColumnName("amount_msat"); |
| | 0 | 424 | | |
| | 0 | 425 | | b.Property<long>("CltvExpiry") |
| | 0 | 426 | | .HasColumnType("bigint") |
| | 0 | 427 | | .HasColumnName("cltv_expiry"); |
| | 0 | 428 | | |
| | 0 | 429 | | b.Property<decimal>("ObscuredCommitmentNumber") |
| | 0 | 430 | | .HasColumnType("numeric(20,0)") |
| | 0 | 431 | | .HasColumnName("obscured_commitment_number"); |
| | 0 | 432 | | |
| | 0 | 433 | | b.Property<byte[]>("PaymentHash") |
| | 0 | 434 | | .IsRequired() |
| | 0 | 435 | | .HasColumnType("bytea") |
| | 0 | 436 | | .HasColumnName("payment_hash"); |
| | 0 | 437 | | |
| | 0 | 438 | | b.Property<byte[]>("PaymentPreimage") |
| | 0 | 439 | | .HasColumnType("bytea") |
| | 0 | 440 | | .HasColumnName("payment_preimage"); |
| | 0 | 441 | | |
| | 0 | 442 | | b.Property<byte[]>("Signature") |
| | 0 | 443 | | .HasColumnType("bytea") |
| | 0 | 444 | | .HasColumnName("signature"); |
| | 0 | 445 | | |
| | 0 | 446 | | b.Property<byte>("State") |
| | 0 | 447 | | .HasColumnType("smallint") |
| | 0 | 448 | | .HasColumnName("state"); |
| | 0 | 449 | | |
| | 0 | 450 | | b.HasKey("ChannelId", "HtlcId", "Direction") |
| | 0 | 451 | | .HasName("pk_htlcs"); |
| | 0 | 452 | | |
| | 0 | 453 | | b.ToTable("htlcs", (string)null); |
| | 0 | 454 | | }); |
| | | 455 | | |
| | 0 | 456 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| | 0 | 457 | | { |
| | 0 | 458 | | b.Property<byte[]>("NodeId") |
| | 0 | 459 | | .HasColumnType("bytea") |
| | 0 | 460 | | .HasColumnName("node_id"); |
| | 0 | 461 | | |
| | 0 | 462 | | b.Property<string>("Host") |
| | 0 | 463 | | .IsRequired() |
| | 0 | 464 | | .HasColumnType("text") |
| | 0 | 465 | | .HasColumnName("host"); |
| | 0 | 466 | | |
| | 0 | 467 | | b.Property<DateTime>("LastSeenAt") |
| | 0 | 468 | | .HasColumnType("timestamp with time zone") |
| | 0 | 469 | | .HasColumnName("last_seen_at"); |
| | 0 | 470 | | |
| | 0 | 471 | | b.Property<long>("Port") |
| | 0 | 472 | | .HasColumnType("bigint") |
| | 0 | 473 | | .HasColumnName("port"); |
| | 0 | 474 | | |
| | 0 | 475 | | b.Property<string>("Type") |
| | 0 | 476 | | .IsRequired() |
| | 0 | 477 | | .HasColumnType("text") |
| | 0 | 478 | | .HasColumnName("type"); |
| | 0 | 479 | | |
| | 0 | 480 | | b.HasKey("NodeId") |
| | 0 | 481 | | .HasName("pk_peers"); |
| | 0 | 482 | | |
| | 0 | 483 | | b.ToTable("peers", (string)null); |
| | 0 | 484 | | }); |
| | | 485 | | |
| | 0 | 486 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.UtxoEntity", b => |
| | 0 | 487 | | { |
| | 0 | 488 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "WalletAddres |
| | 0 | 489 | | .WithMany("Utxos") |
| | 0 | 490 | | .HasForeignKey("AddressIndex", "IsAddressChange", "AddressType") |
| | 0 | 491 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 492 | | .IsRequired() |
| | 0 | 493 | | .HasConstraintName("fk_utxos_wallet_addresses_address_index_is_address_change_addr"); |
| | 0 | 494 | | |
| | 0 | 495 | | b.Navigation("WalletAddress"); |
| | 0 | 496 | | }); |
| | | 497 | | |
| | 0 | 498 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| | 0 | 499 | | { |
| | 0 | 500 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 501 | | .WithMany("WatchedTransactions") |
| | 0 | 502 | | .HasForeignKey("ChannelId") |
| | 0 | 503 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 504 | | .IsRequired() |
| | 0 | 505 | | .HasConstraintName("fk_watched_transactions_channels_channel_id"); |
| | 0 | 506 | | }); |
| | | 507 | | |
| | 0 | 508 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| | 0 | 509 | | { |
| | 0 | 510 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 511 | | .WithOne("Config") |
| | 0 | 512 | | .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch |
| | 0 | 513 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 514 | | .IsRequired() |
| | 0 | 515 | | .HasConstraintName("fk_channel_configs_channels_channel_id"); |
| | 0 | 516 | | }); |
| | | 517 | | |
| | 0 | 518 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 519 | | { |
| | 0 | 520 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null) |
| | 0 | 521 | | .WithMany("Channels") |
| | 0 | 522 | | .HasForeignKey("PeerEntityNodeId") |
| | 0 | 523 | | .HasConstraintName("fk_channels_peers_peer_entity_node_id"); |
| | 0 | 524 | | |
| | 0 | 525 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", "ChangeAddres |
| | 0 | 526 | | .WithMany() |
| | 0 | 527 | | .HasForeignKey("ChangeAddressIndex", "ChangeAddressIsChange", "ChangeAddressAddressType") |
| | 0 | 528 | | .HasConstraintName("fk_channels_wallet_addresses_change_address_index_change_addre"); |
| | 0 | 529 | | |
| | 0 | 530 | | b.Navigation("ChangeAddress"); |
| | 0 | 531 | | }); |
| | | 532 | | |
| | 0 | 533 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| | 0 | 534 | | { |
| | 0 | 535 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 536 | | .WithMany("KeySets") |
| | 0 | 537 | | .HasForeignKey("ChannelId") |
| | 0 | 538 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 539 | | .IsRequired() |
| | 0 | 540 | | .HasConstraintName("fk_channel_key_sets_channels_channel_id"); |
| | 0 | 541 | | }); |
| | | 542 | | |
| | 0 | 543 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| | 0 | 544 | | { |
| | 0 | 545 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| | 0 | 546 | | .WithMany("Htlcs") |
| | 0 | 547 | | .HasForeignKey("ChannelId") |
| | 0 | 548 | | .OnDelete(DeleteBehavior.Cascade) |
| | 0 | 549 | | .IsRequired() |
| | 0 | 550 | | .HasConstraintName("fk_htlcs_channels_channel_id"); |
| | 0 | 551 | | }); |
| | | 552 | | |
| | 0 | 553 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WalletAddressEntity", b => |
| | 0 | 554 | | { |
| | 0 | 555 | | b.Navigation("Utxos"); |
| | 0 | 556 | | }); |
| | | 557 | | |
| | 0 | 558 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| | 0 | 559 | | { |
| | 0 | 560 | | b.Navigation("Config"); |
| | 0 | 561 | | |
| | 0 | 562 | | b.Navigation("Htlcs"); |
| | 0 | 563 | | |
| | 0 | 564 | | b.Navigation("KeySets"); |
| | 0 | 565 | | |
| | 0 | 566 | | b.Navigation("WatchedTransactions"); |
| | 0 | 567 | | }); |
| | | 568 | | |
| | 0 | 569 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| | 0 | 570 | | { |
| | 0 | 571 | | b.Navigation("Channels"); |
| | 0 | 572 | | }); |
| | | 573 | | #pragma warning restore 612, 618 |
| | 0 | 574 | | } |
| | | 575 | | } |
| | | 576 | | } |