| | 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 | |
|
| | 8 | | #nullable disable |
| | 9 | |
|
| | 10 | | namespace 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 |
| 0 | 18 | | modelBuilder.HasAnnotation("ProductVersion", "8.0.12"); |
| | 19 | |
|
| 0 | 20 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.BlockchainStateEntity", b => |
| 0 | 21 | | { |
| 0 | 22 | | b.Property<Guid>("Id") |
| 0 | 23 | | .ValueGeneratedOnAdd() |
| 0 | 24 | | .HasColumnType("TEXT"); |
| 0 | 25 | |
|
| 0 | 26 | | b.Property<DateTime>("LastProcessedAt") |
| 0 | 27 | | .HasColumnType("TEXT"); |
| 0 | 28 | |
|
| 0 | 29 | | b.Property<byte[]>("LastProcessedBlockHash") |
| 0 | 30 | | .IsRequired() |
| 0 | 31 | | .HasColumnType("BLOB"); |
| 0 | 32 | |
|
| 0 | 33 | | b.Property<uint>("LastProcessedHeight") |
| 0 | 34 | | .HasColumnType("INTEGER"); |
| 0 | 35 | |
|
| 0 | 36 | | b.HasKey("Id"); |
| 0 | 37 | |
|
| 0 | 38 | | b.ToTable("BlockchainStates"); |
| 0 | 39 | | }); |
| | 40 | |
|
| 0 | 41 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| 0 | 42 | | { |
| 0 | 43 | | b.Property<byte[]>("TransactionId") |
| 0 | 44 | | .HasColumnType("BLOB"); |
| 0 | 45 | |
|
| 0 | 46 | | b.Property<byte[]>("ChannelId") |
| 0 | 47 | | .IsRequired() |
| 0 | 48 | | .HasColumnType("BLOB"); |
| 0 | 49 | |
|
| 0 | 50 | | b.Property<DateTime?>("CompletedAt") |
| 0 | 51 | | .HasColumnType("TEXT"); |
| 0 | 52 | |
|
| 0 | 53 | | b.Property<DateTime>("CreatedAt") |
| 0 | 54 | | .HasColumnType("TEXT"); |
| 0 | 55 | |
|
| 0 | 56 | | b.Property<uint?>("FirstSeenAtHeight") |
| 0 | 57 | | .HasColumnType("INTEGER"); |
| 0 | 58 | |
|
| 0 | 59 | | b.Property<uint>("RequiredDepth") |
| 0 | 60 | | .HasColumnType("INTEGER"); |
| 0 | 61 | |
|
| 0 | 62 | | b.Property<ushort?>("TransactionIndex") |
| 0 | 63 | | .HasColumnType("INTEGER"); |
| 0 | 64 | |
|
| 0 | 65 | | b.HasKey("TransactionId"); |
| 0 | 66 | |
|
| 0 | 67 | | b.HasIndex("ChannelId"); |
| 0 | 68 | |
|
| 0 | 69 | | b.ToTable("WatchedTransactions"); |
| 0 | 70 | | }); |
| | 71 | |
|
| 0 | 72 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| 0 | 73 | | { |
| 0 | 74 | | b.Property<byte[]>("ChannelId") |
| 0 | 75 | | .HasColumnType("BLOB"); |
| 0 | 76 | |
|
| 0 | 77 | | b.Property<long?>("ChannelReserveAmountSats") |
| 0 | 78 | | .HasColumnType("INTEGER"); |
| 0 | 79 | |
|
| 0 | 80 | | b.Property<long>("FeeRatePerKwSatoshis") |
| 0 | 81 | | .HasColumnType("INTEGER"); |
| 0 | 82 | |
|
| 0 | 83 | | b.Property<ulong>("HtlcMinimumMsat") |
| 0 | 84 | | .HasColumnType("INTEGER"); |
| 0 | 85 | |
|
| 0 | 86 | | b.Property<long>("LocalDustLimitAmountSats") |
| 0 | 87 | | .HasColumnType("INTEGER"); |
| 0 | 88 | |
|
| 0 | 89 | | b.Property<byte[]>("LocalUpfrontShutdownScript") |
| 0 | 90 | | .HasColumnType("BLOB"); |
| 0 | 91 | |
|
| 0 | 92 | | b.Property<ushort>("MaxAcceptedHtlcs") |
| 0 | 93 | | .HasColumnType("INTEGER"); |
| 0 | 94 | |
|
| 0 | 95 | | b.Property<ulong>("MaxHtlcAmountInFlight") |
| 0 | 96 | | .HasColumnType("INTEGER"); |
| 0 | 97 | |
|
| 0 | 98 | | b.Property<uint>("MinimumDepth") |
| 0 | 99 | | .HasColumnType("INTEGER"); |
| 0 | 100 | |
|
| 0 | 101 | | b.Property<bool>("OptionAnchorOutputs") |
| 0 | 102 | | .HasColumnType("INTEGER"); |
| 0 | 103 | |
|
| 0 | 104 | | b.Property<long>("RemoteDustLimitAmountSats") |
| 0 | 105 | | .HasColumnType("INTEGER"); |
| 0 | 106 | |
|
| 0 | 107 | | b.Property<byte[]>("RemoteUpfrontShutdownScript") |
| 0 | 108 | | .HasColumnType("BLOB"); |
| 0 | 109 | |
|
| 0 | 110 | | b.Property<ushort>("ToSelfDelay") |
| 0 | 111 | | .HasColumnType("INTEGER"); |
| 0 | 112 | |
|
| 0 | 113 | | b.Property<byte>("UseScidAlias") |
| 0 | 114 | | .HasColumnType("INTEGER"); |
| 0 | 115 | |
|
| 0 | 116 | | b.HasKey("ChannelId"); |
| 0 | 117 | |
|
| 0 | 118 | | b.ToTable("ChannelConfigs"); |
| 0 | 119 | | }); |
| | 120 | |
|
| 0 | 121 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 122 | | { |
| 0 | 123 | | b.Property<byte[]>("ChannelId") |
| 0 | 124 | | .HasColumnType("BLOB"); |
| 0 | 125 | |
|
| 0 | 126 | | b.Property<long>("FundingAmountSatoshis") |
| 0 | 127 | | .HasColumnType("INTEGER"); |
| 0 | 128 | |
|
| 0 | 129 | | b.Property<uint>("FundingCreatedAtBlockHeight") |
| 0 | 130 | | .HasColumnType("INTEGER"); |
| 0 | 131 | |
|
| 0 | 132 | | b.Property<ushort>("FundingOutputIndex") |
| 0 | 133 | | .HasColumnType("INTEGER"); |
| 0 | 134 | |
|
| 0 | 135 | | b.Property<byte[]>("FundingTxId") |
| 0 | 136 | | .IsRequired() |
| 0 | 137 | | .HasColumnType("BLOB"); |
| 0 | 138 | |
|
| 0 | 139 | | b.Property<bool>("IsInitiator") |
| 0 | 140 | | .HasColumnType("INTEGER"); |
| 0 | 141 | |
|
| 0 | 142 | | b.Property<byte[]>("LastReceivedSignature") |
| 0 | 143 | | .HasColumnType("BLOB"); |
| 0 | 144 | |
|
| 0 | 145 | | b.Property<byte[]>("LastSentSignature") |
| 0 | 146 | | .HasColumnType("BLOB"); |
| 0 | 147 | |
|
| 0 | 148 | | b.Property<decimal>("LocalBalanceSatoshis") |
| 0 | 149 | | .HasColumnType("TEXT"); |
| 0 | 150 | |
|
| 0 | 151 | | b.Property<ulong>("LocalNextHtlcId") |
| 0 | 152 | | .HasColumnType("INTEGER"); |
| 0 | 153 | |
|
| 0 | 154 | | b.Property<ulong>("LocalRevocationNumber") |
| 0 | 155 | | .HasColumnType("INTEGER"); |
| 0 | 156 | |
|
| 0 | 157 | | b.Property<byte[]>("PeerEntityNodeId") |
| 0 | 158 | | .HasColumnType("BLOB"); |
| 0 | 159 | |
|
| 0 | 160 | | b.Property<decimal>("RemoteBalanceSatoshis") |
| 0 | 161 | | .HasColumnType("TEXT"); |
| 0 | 162 | |
|
| 0 | 163 | | b.Property<ulong>("RemoteNextHtlcId") |
| 0 | 164 | | .HasColumnType("INTEGER"); |
| 0 | 165 | |
|
| 0 | 166 | | b.Property<byte[]>("RemoteNodeId") |
| 0 | 167 | | .IsRequired() |
| 0 | 168 | | .HasColumnType("BLOB"); |
| 0 | 169 | |
|
| 0 | 170 | | b.Property<ulong>("RemoteRevocationNumber") |
| 0 | 171 | | .HasColumnType("INTEGER"); |
| 0 | 172 | |
|
| 0 | 173 | | b.Property<byte>("State") |
| 0 | 174 | | .HasColumnType("INTEGER"); |
| 0 | 175 | |
|
| 0 | 176 | | b.Property<byte>("Version") |
| 0 | 177 | | .HasColumnType("INTEGER"); |
| 0 | 178 | |
|
| 0 | 179 | | b.HasKey("ChannelId"); |
| 0 | 180 | |
|
| 0 | 181 | | b.HasIndex("PeerEntityNodeId"); |
| 0 | 182 | |
|
| 0 | 183 | | b.ToTable("Channels"); |
| 0 | 184 | | }); |
| | 185 | |
|
| 0 | 186 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| 0 | 187 | | { |
| 0 | 188 | | b.Property<byte[]>("ChannelId") |
| 0 | 189 | | .HasColumnType("BLOB"); |
| 0 | 190 | |
|
| 0 | 191 | | b.Property<bool>("IsLocal") |
| 0 | 192 | | .HasColumnType("INTEGER"); |
| 0 | 193 | |
|
| 0 | 194 | | b.Property<ulong>("CurrentPerCommitmentIndex") |
| 0 | 195 | | .HasColumnType("INTEGER"); |
| 0 | 196 | |
|
| 0 | 197 | | b.Property<byte[]>("CurrentPerCommitmentPoint") |
| 0 | 198 | | .IsRequired() |
| 0 | 199 | | .HasColumnType("BLOB"); |
| 0 | 200 | |
|
| 0 | 201 | | b.Property<byte[]>("DelayedPaymentBasepoint") |
| 0 | 202 | | .IsRequired() |
| 0 | 203 | | .HasColumnType("BLOB"); |
| 0 | 204 | |
|
| 0 | 205 | | b.Property<byte[]>("FundingPubKey") |
| 0 | 206 | | .IsRequired() |
| 0 | 207 | | .HasColumnType("BLOB"); |
| 0 | 208 | |
|
| 0 | 209 | | b.Property<byte[]>("HtlcBasepoint") |
| 0 | 210 | | .IsRequired() |
| 0 | 211 | | .HasColumnType("BLOB"); |
| 0 | 212 | |
|
| 0 | 213 | | b.Property<uint>("KeyIndex") |
| 0 | 214 | | .HasColumnType("INTEGER"); |
| 0 | 215 | |
|
| 0 | 216 | | b.Property<byte[]>("LastRevealedPerCommitmentSecret") |
| 0 | 217 | | .HasColumnType("BLOB"); |
| 0 | 218 | |
|
| 0 | 219 | | b.Property<byte[]>("PaymentBasepoint") |
| 0 | 220 | | .IsRequired() |
| 0 | 221 | | .HasColumnType("BLOB"); |
| 0 | 222 | |
|
| 0 | 223 | | b.Property<byte[]>("RevocationBasepoint") |
| 0 | 224 | | .IsRequired() |
| 0 | 225 | | .HasColumnType("BLOB"); |
| 0 | 226 | |
|
| 0 | 227 | | b.HasKey("ChannelId", "IsLocal"); |
| 0 | 228 | |
|
| 0 | 229 | | b.ToTable("ChannelKeySets"); |
| 0 | 230 | | }); |
| | 231 | |
|
| 0 | 232 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| 0 | 233 | | { |
| 0 | 234 | | b.Property<byte[]>("ChannelId") |
| 0 | 235 | | .HasColumnType("BLOB"); |
| 0 | 236 | |
|
| 0 | 237 | | b.Property<ulong>("HtlcId") |
| 0 | 238 | | .HasColumnType("INTEGER"); |
| 0 | 239 | |
|
| 0 | 240 | | b.Property<byte>("Direction") |
| 0 | 241 | | .HasColumnType("INTEGER"); |
| 0 | 242 | |
|
| 0 | 243 | | b.Property<byte[]>("AddMessageBytes") |
| 0 | 244 | | .IsRequired() |
| 0 | 245 | | .HasColumnType("BLOB"); |
| 0 | 246 | |
|
| 0 | 247 | | b.Property<ulong>("AmountMsat") |
| 0 | 248 | | .HasColumnType("INTEGER"); |
| 0 | 249 | |
|
| 0 | 250 | | b.Property<uint>("CltvExpiry") |
| 0 | 251 | | .HasColumnType("INTEGER"); |
| 0 | 252 | |
|
| 0 | 253 | | b.Property<ulong>("ObscuredCommitmentNumber") |
| 0 | 254 | | .HasColumnType("INTEGER"); |
| 0 | 255 | |
|
| 0 | 256 | | b.Property<byte[]>("PaymentHash") |
| 0 | 257 | | .IsRequired() |
| 0 | 258 | | .HasColumnType("BLOB"); |
| 0 | 259 | |
|
| 0 | 260 | | b.Property<byte[]>("PaymentPreimage") |
| 0 | 261 | | .HasColumnType("BLOB"); |
| 0 | 262 | |
|
| 0 | 263 | | b.Property<byte[]>("Signature") |
| 0 | 264 | | .HasColumnType("BLOB"); |
| 0 | 265 | |
|
| 0 | 266 | | b.Property<byte>("State") |
| 0 | 267 | | .HasColumnType("INTEGER"); |
| 0 | 268 | |
|
| 0 | 269 | | b.HasKey("ChannelId", "HtlcId", "Direction"); |
| 0 | 270 | |
|
| 0 | 271 | | b.ToTable("Htlcs"); |
| 0 | 272 | | }); |
| | 273 | |
|
| 0 | 274 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| 0 | 275 | | { |
| 0 | 276 | | b.Property<byte[]>("NodeId") |
| 0 | 277 | | .HasColumnType("BLOB"); |
| 0 | 278 | |
|
| 0 | 279 | | b.Property<string>("Host") |
| 0 | 280 | | .IsRequired() |
| 0 | 281 | | .HasColumnType("TEXT"); |
| 0 | 282 | |
|
| 0 | 283 | | b.Property<DateTime>("LastSeenAt") |
| 0 | 284 | | .HasColumnType("TEXT"); |
| 0 | 285 | |
|
| 0 | 286 | | b.Property<uint>("Port") |
| 0 | 287 | | .HasColumnType("INTEGER"); |
| 0 | 288 | |
|
| 0 | 289 | | b.HasKey("NodeId"); |
| 0 | 290 | |
|
| 0 | 291 | | b.ToTable("Peers"); |
| 0 | 292 | | }); |
| | 293 | |
|
| 0 | 294 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Bitcoin.WatchedTransactionEntity", b => |
| 0 | 295 | | { |
| 0 | 296 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 297 | | .WithMany("WatchedTransactions") |
| 0 | 298 | | .HasForeignKey("ChannelId") |
| 0 | 299 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 300 | | .IsRequired(); |
| 0 | 301 | | }); |
| | 302 | |
|
| 0 | 303 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", b => |
| 0 | 304 | | { |
| 0 | 305 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 306 | | .WithOne("Config") |
| 0 | 307 | | .HasForeignKey("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelConfigEntity", "Ch |
| 0 | 308 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 309 | | .IsRequired(); |
| 0 | 310 | | }); |
| | 311 | |
|
| 0 | 312 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 313 | | { |
| 0 | 314 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", null) |
| 0 | 315 | | .WithMany("Channels") |
| 0 | 316 | | .HasForeignKey("PeerEntityNodeId"); |
| 0 | 317 | | }); |
| | 318 | |
|
| 0 | 319 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelKeySetEntity", b => |
| 0 | 320 | | { |
| 0 | 321 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 322 | | .WithMany("KeySets") |
| 0 | 323 | | .HasForeignKey("ChannelId") |
| 0 | 324 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 325 | | .IsRequired(); |
| 0 | 326 | | }); |
| | 327 | |
|
| 0 | 328 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.HtlcEntity", b => |
| 0 | 329 | | { |
| 0 | 330 | | b.HasOne("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", null) |
| 0 | 331 | | .WithMany("Htlcs") |
| 0 | 332 | | .HasForeignKey("ChannelId") |
| 0 | 333 | | .OnDelete(DeleteBehavior.Cascade) |
| 0 | 334 | | .IsRequired(); |
| 0 | 335 | | }); |
| | 336 | |
|
| 0 | 337 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Channel.ChannelEntity", b => |
| 0 | 338 | | { |
| 0 | 339 | | b.Navigation("Config"); |
| 0 | 340 | |
|
| 0 | 341 | | b.Navigation("Htlcs"); |
| 0 | 342 | |
|
| 0 | 343 | | b.Navigation("KeySets"); |
| 0 | 344 | |
|
| 0 | 345 | | b.Navigation("WatchedTransactions"); |
| 0 | 346 | | }); |
| | 347 | |
|
| 0 | 348 | | modelBuilder.Entity("NLightning.Infrastructure.Persistence.Entities.Node.PeerEntity", b => |
| 0 | 349 | | { |
| 0 | 350 | | b.Navigation("Channels"); |
| 0 | 351 | | }); |
| | 352 | | #pragma warning restore 612, 618 |
| 0 | 353 | | } |
| | 354 | | } |
| | 355 | | } |