< Summary

Information
Class: Elsa.Persistence.EFCore.Sqlite.Migrations.Runtime.RuntimeElsaDbContextModelSnapshot
Assembly: Elsa.Persistence.EFCore.Sqlite
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 472
Coverable lines: 472
Total lines: 499
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Runtime/RuntimeElsaDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Elsa.Persistence.EFCore.Modules.Runtime;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Runtime
 11{
 12    [DbContext(typeof(RuntimeElsaDbContext))]
 13    partial class RuntimeElsaDbContextModelSnapshot : ModelSnapshot
 14    {
 15        protected override void BuildModel(ModelBuilder modelBuilder)
 16        {
 17#pragma warning disable 612, 618
 018            modelBuilder
 019                .HasDefaultSchema("Elsa")
 020                .HasAnnotation("ProductVersion", "9.0.5");
 21
 022            modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b =>
 023                {
 024                    b.Property<string>("Id")
 025                        .HasColumnType("TEXT");
 026
 027                    b.Property<string>("SerializedValue")
 028                        .IsRequired()
 029                        .HasColumnType("TEXT");
 030
 031                    b.Property<string>("TenantId")
 032                        .HasColumnType("TEXT");
 033
 034                    b.HasKey("Id");
 035
 036                    b.HasIndex(new[] { "TenantId" }, "IX_SerializedKeyValuePair_TenantId");
 037
 038                    b.ToTable("KeyValuePairs", "Elsa");
 039                });
 40
 041            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.ActivityExecutionRecord", b =>
 042                {
 043                    b.Property<string>("Id")
 044                        .HasColumnType("TEXT");
 045
 046                    b.Property<string>("ActivityId")
 047                        .IsRequired()
 048                        .HasColumnType("TEXT");
 049
 050                    b.Property<string>("ActivityName")
 051                        .HasColumnType("TEXT");
 052
 053                    b.Property<string>("ActivityNodeId")
 054                        .IsRequired()
 055                        .HasColumnType("TEXT");
 056
 057                    b.Property<string>("ActivityType")
 058                        .IsRequired()
 059                        .HasColumnType("TEXT");
 060
 061                    b.Property<int>("ActivityTypeVersion")
 062                        .HasColumnType("INTEGER");
 063
 064                    b.Property<int>("AggregateFaultCount")
 065                        .HasColumnType("INTEGER");
 066
 067                    b.Property<DateTimeOffset?>("CompletedAt")
 068                        .HasColumnType("TEXT");
 069
 070                    b.Property<bool>("HasBookmarks")
 071                        .HasColumnType("INTEGER");
 072
 073                    b.Property<string>("SerializedActivityState")
 074                        .HasColumnType("TEXT");
 075
 076                    b.Property<string>("SerializedActivityStateCompressionAlgorithm")
 077                        .HasColumnType("TEXT");
 078
 079                    b.Property<string>("SerializedException")
 080                        .HasColumnType("TEXT");
 081
 082                    b.Property<string>("SerializedMetadata")
 083                        .HasColumnType("TEXT");
 084
 085                    b.Property<string>("SerializedOutputs")
 086                        .HasColumnType("TEXT");
 087
 088                    b.Property<string>("SerializedPayload")
 089                        .HasColumnType("TEXT");
 090
 091                    b.Property<string>("SerializedProperties")
 092                        .HasColumnType("TEXT");
 093
 094                    b.Property<DateTimeOffset>("StartedAt")
 095                        .HasColumnType("TEXT");
 096
 097                    b.Property<string>("Status")
 098                        .IsRequired()
 099                        .HasColumnType("TEXT");
 0100
 0101                    b.Property<string>("TenantId")
 0102                        .HasColumnType("TEXT");
 0103
 0104                    b.Property<string>("WorkflowInstanceId")
 0105                        .IsRequired()
 0106                        .HasColumnType("TEXT");
 0107
 0108                    b.HasKey("Id");
 0109
 0110                    b.HasIndex("ActivityId")
 0111                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityId");
 0112
 0113                    b.HasIndex("ActivityName")
 0114                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityName");
 0115
 0116                    b.HasIndex("ActivityNodeId")
 0117                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityNodeId");
 0118
 0119                    b.HasIndex("ActivityType")
 0120                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType");
 0121
 0122                    b.HasIndex("ActivityTypeVersion")
 0123                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityTypeVersion");
 0124
 0125                    b.HasIndex("CompletedAt")
 0126                        .HasDatabaseName("IX_ActivityExecutionRecord_CompletedAt");
 0127
 0128                    b.HasIndex("HasBookmarks")
 0129                        .HasDatabaseName("IX_ActivityExecutionRecord_HasBookmarks");
 0130
 0131                    b.HasIndex("StartedAt")
 0132                        .HasDatabaseName("IX_ActivityExecutionRecord_StartedAt");
 0133
 0134                    b.HasIndex("Status")
 0135                        .HasDatabaseName("IX_ActivityExecutionRecord_Status");
 0136
 0137                    b.HasIndex("TenantId")
 0138                        .HasDatabaseName("IX_ActivityExecutionRecord_TenantId");
 0139
 0140                    b.HasIndex("WorkflowInstanceId")
 0141                        .HasDatabaseName("IX_ActivityExecutionRecord_WorkflowInstanceId");
 0142
 0143                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 0144                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType_ActivityTypeVersion");
 0145
 0146                    b.ToTable("ActivityExecutionRecords", "Elsa");
 0147                });
 148
 0149            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.BookmarkQueueItem", b =>
 0150                {
 0151                    b.Property<string>("Id")
 0152                        .HasColumnType("TEXT");
 0153
 0154                    b.Property<string>("ActivityInstanceId")
 0155                        .HasColumnType("TEXT");
 0156
 0157                    b.Property<string>("ActivityTypeName")
 0158                        .HasColumnType("TEXT");
 0159
 0160                    b.Property<string>("BookmarkId")
 0161                        .HasColumnType("TEXT");
 0162
 0163                    b.Property<string>("CorrelationId")
 0164                        .HasColumnType("TEXT");
 0165
 0166                    b.Property<DateTimeOffset>("CreatedAt")
 0167                        .HasColumnType("TEXT");
 0168
 0169                    b.Property<string>("SerializedOptions")
 0170                        .HasColumnType("TEXT");
 0171
 0172                    b.Property<string>("StimulusHash")
 0173                        .HasColumnType("TEXT");
 0174
 0175                    b.Property<string>("TenantId")
 0176                        .HasColumnType("TEXT");
 0177
 0178                    b.Property<string>("WorkflowInstanceId")
 0179                        .HasColumnType("TEXT");
 0180
 0181                    b.HasKey("Id");
 0182
 0183                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_BookmarkQueueItem_ActivityInstanceId");
 0184
 0185                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_BookmarkQueueItem_ActivityTypeName");
 0186
 0187                    b.HasIndex(new[] { "BookmarkId" }, "IX_BookmarkQueueItem_BookmarkId");
 0188
 0189                    b.HasIndex(new[] { "CorrelationId" }, "IX_BookmarkQueueItem_CorrelationId");
 0190
 0191                    b.HasIndex(new[] { "CreatedAt" }, "IX_BookmarkQueueItem_CreatedAt");
 0192
 0193                    b.HasIndex(new[] { "StimulusHash" }, "IX_BookmarkQueueItem_StimulusHash");
 0194
 0195                    b.HasIndex(new[] { "TenantId" }, "IX_BookmarkQueueItem_TenantId");
 0196
 0197                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_BookmarkQueueItem_WorkflowInstanceId");
 0198
 0199                    b.ToTable("BookmarkQueueItems", "Elsa");
 0200                });
 201
 0202            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredBookmark", b =>
 0203                {
 0204                    b.Property<string>("Id")
 0205                        .HasColumnType("TEXT");
 0206
 0207                    b.Property<string>("ActivityInstanceId")
 0208                        .HasColumnType("TEXT");
 0209
 0210                    b.Property<string>("ActivityTypeName")
 0211                        .IsRequired()
 0212                        .HasColumnType("TEXT");
 0213
 0214                    b.Property<string>("CorrelationId")
 0215                        .HasColumnType("TEXT");
 0216
 0217                    b.Property<DateTimeOffset>("CreatedAt")
 0218                        .HasColumnType("TEXT");
 0219
 0220                    b.Property<string>("Hash")
 0221                        .IsRequired()
 0222                        .HasColumnType("TEXT");
 0223
 0224                    b.Property<string>("Name")
 0225                        .HasColumnType("TEXT");
 0226
 0227                    b.Property<string>("SerializedMetadata")
 0228                        .HasColumnType("TEXT");
 0229
 0230                    b.Property<string>("SerializedPayload")
 0231                        .HasColumnType("TEXT");
 0232
 0233                    b.Property<string>("TenantId")
 0234                        .HasColumnType("TEXT");
 0235
 0236                    b.Property<string>("WorkflowInstanceId")
 0237                        .IsRequired()
 0238                        .HasColumnType("TEXT");
 0239
 0240                    b.HasKey("Id");
 0241
 0242                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_StoredBookmark_ActivityInstanceId");
 0243
 0244                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_StoredBookmark_ActivityTypeName");
 0245
 0246                    b.HasIndex(new[] { "ActivityTypeName", "Hash" }, "IX_StoredBookmark_ActivityTypeName_Hash");
 0247
 0248                    b.HasIndex(new[] { "ActivityTypeName", "Hash", "WorkflowInstanceId" }, "IX_StoredBookmark_ActivityTy
 0249
 0250                    b.HasIndex(new[] { "CreatedAt" }, "IX_StoredBookmark_CreatedAt");
 0251
 0252                    b.HasIndex(new[] { "Hash" }, "IX_StoredBookmark_Hash");
 0253
 0254                    b.HasIndex(new[] { "Name" }, "IX_StoredBookmark_Name");
 0255
 0256                    b.HasIndex(new[] { "Name", "Hash" }, "IX_StoredBookmark_Name_Hash");
 0257
 0258                    b.HasIndex(new[] { "Name", "Hash", "WorkflowInstanceId" }, "IX_StoredBookmark_Name_Hash_WorkflowInst
 0259
 0260                    b.HasIndex(new[] { "TenantId" }, "IX_StoredBookmark_TenantId");
 0261
 0262                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_StoredBookmark_WorkflowInstanceId");
 0263
 0264                    b.ToTable("Bookmarks", "Elsa");
 0265                });
 266
 0267            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredTrigger", b =>
 0268                {
 0269                    b.Property<string>("Id")
 0270                        .HasColumnType("TEXT");
 0271
 0272                    b.Property<string>("ActivityId")
 0273                        .IsRequired()
 0274                        .HasColumnType("TEXT");
 0275
 0276                    b.Property<string>("Hash")
 0277                        .HasColumnType("TEXT");
 0278
 0279                    b.Property<string>("Name")
 0280                        .HasColumnType("TEXT");
 0281
 0282                    b.Property<string>("SerializedPayload")
 0283                        .HasColumnType("TEXT");
 0284
 0285                    b.Property<string>("TenantId")
 0286                        .HasColumnType("TEXT");
 0287
 0288                    b.Property<string>("WorkflowDefinitionId")
 0289                        .IsRequired()
 0290                        .HasColumnType("TEXT");
 0291
 0292                    b.Property<string>("WorkflowDefinitionVersionId")
 0293                        .IsRequired()
 0294                        .HasColumnType("TEXT");
 0295
 0296                    b.HasKey("Id");
 0297
 0298                    b.HasIndex("Hash")
 0299                        .HasDatabaseName("IX_StoredTrigger_Hash");
 0300
 0301                    b.HasIndex("Name")
 0302                        .HasDatabaseName("IX_StoredTrigger_Name");
 0303
 0304                    b.HasIndex("TenantId")
 0305                        .HasDatabaseName("IX_StoredTrigger_TenantId");
 0306
 0307                    b.HasIndex("WorkflowDefinitionId")
 0308                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionId");
 0309
 0310                    b.HasIndex("WorkflowDefinitionVersionId")
 0311                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionVersionId");
 0312
 0313                    b.ToTable("Triggers", "Elsa");
 0314                });
 315
 0316            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowExecutionLogRecord", b =>
 0317                {
 0318                    b.Property<string>("Id")
 0319                        .HasColumnType("TEXT");
 0320
 0321                    b.Property<string>("ActivityId")
 0322                        .IsRequired()
 0323                        .HasColumnType("TEXT");
 0324
 0325                    b.Property<string>("ActivityInstanceId")
 0326                        .IsRequired()
 0327                        .HasColumnType("TEXT");
 0328
 0329                    b.Property<string>("ActivityName")
 0330                        .HasColumnType("TEXT");
 0331
 0332                    b.Property<string>("ActivityNodeId")
 0333                        .IsRequired()
 0334                        .HasColumnType("TEXT");
 0335
 0336                    b.Property<string>("ActivityType")
 0337                        .IsRequired()
 0338                        .HasColumnType("TEXT");
 0339
 0340                    b.Property<int>("ActivityTypeVersion")
 0341                        .HasColumnType("INTEGER");
 0342
 0343                    b.Property<string>("EventName")
 0344                        .HasColumnType("TEXT");
 0345
 0346                    b.Property<string>("Message")
 0347                        .HasColumnType("TEXT");
 0348
 0349                    b.Property<string>("ParentActivityInstanceId")
 0350                        .HasColumnType("TEXT");
 0351
 0352                    b.Property<long>("Sequence")
 0353                        .HasColumnType("INTEGER");
 0354
 0355                    b.Property<string>("SerializedActivityState")
 0356                        .HasColumnType("TEXT");
 0357
 0358                    b.Property<string>("SerializedPayload")
 0359                        .HasColumnType("TEXT");
 0360
 0361                    b.Property<string>("Source")
 0362                        .HasColumnType("TEXT");
 0363
 0364                    b.Property<string>("TenantId")
 0365                        .HasColumnType("TEXT");
 0366
 0367                    b.Property<DateTimeOffset>("Timestamp")
 0368                        .HasColumnType("TEXT");
 0369
 0370                    b.Property<string>("WorkflowDefinitionId")
 0371                        .IsRequired()
 0372                        .HasColumnType("TEXT");
 0373
 0374                    b.Property<string>("WorkflowDefinitionVersionId")
 0375                        .IsRequired()
 0376                        .HasColumnType("TEXT");
 0377
 0378                    b.Property<string>("WorkflowInstanceId")
 0379                        .IsRequired()
 0380                        .HasColumnType("TEXT");
 0381
 0382                    b.Property<int>("WorkflowVersion")
 0383                        .HasColumnType("INTEGER");
 0384
 0385                    b.HasKey("Id");
 0386
 0387                    b.HasIndex("ActivityId")
 0388                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityId");
 0389
 0390                    b.HasIndex("ActivityInstanceId")
 0391                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityInstanceId");
 0392
 0393                    b.HasIndex("ActivityName")
 0394                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityName");
 0395
 0396                    b.HasIndex("ActivityNodeId")
 0397                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityNodeId");
 0398
 0399                    b.HasIndex("ActivityType")
 0400                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType");
 0401
 0402                    b.HasIndex("ActivityTypeVersion")
 0403                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityTypeVersion");
 0404
 0405                    b.HasIndex("EventName")
 0406                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_EventName");
 0407
 0408                    b.HasIndex("ParentActivityInstanceId")
 0409                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ParentActivityInstanceId");
 0410
 0411                    b.HasIndex("Sequence")
 0412                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Sequence");
 0413
 0414                    b.HasIndex("TenantId")
 0415                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_TenantId");
 0416
 0417                    b.HasIndex("Timestamp")
 0418                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp");
 0419
 0420                    b.HasIndex("WorkflowDefinitionId")
 0421                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionId");
 0422
 0423                    b.HasIndex("WorkflowDefinitionVersionId")
 0424                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionVersionId");
 0425
 0426                    b.HasIndex("WorkflowInstanceId")
 0427                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowInstanceId");
 0428
 0429                    b.HasIndex("WorkflowVersion")
 0430                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowVersion");
 0431
 0432                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 0433                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType_ActivityTypeVersion");
 0434
 0435                    b.HasIndex("Timestamp", "Sequence")
 0436                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp_Sequence");
 0437
 0438                    b.ToTable("WorkflowExecutionLogRecords", "Elsa");
 0439                });
 440
 0441            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowInboxMessage", b =>
 0442                {
 0443                    b.Property<string>("Id")
 0444                        .HasColumnType("TEXT");
 0445
 0446                    b.Property<string>("ActivityInstanceId")
 0447                        .HasColumnType("TEXT");
 0448
 0449                    b.Property<string>("ActivityTypeName")
 0450                        .IsRequired()
 0451                        .HasColumnType("TEXT");
 0452
 0453                    b.Property<string>("CorrelationId")
 0454                        .HasColumnType("TEXT");
 0455
 0456                    b.Property<DateTimeOffset>("CreatedAt")
 0457                        .HasColumnType("TEXT");
 0458
 0459                    b.Property<DateTimeOffset>("ExpiresAt")
 0460                        .HasColumnType("TEXT");
 0461
 0462                    b.Property<string>("Hash")
 0463                        .IsRequired()
 0464                        .HasColumnType("TEXT");
 0465
 0466                    b.Property<string>("SerializedBookmarkPayload")
 0467                        .HasColumnType("TEXT");
 0468
 0469                    b.Property<string>("SerializedInput")
 0470                        .HasColumnType("TEXT");
 0471
 0472                    b.Property<string>("TenantId")
 0473                        .HasColumnType("TEXT");
 0474
 0475                    b.Property<string>("WorkflowInstanceId")
 0476                        .HasColumnType("TEXT");
 0477
 0478                    b.HasKey("Id");
 0479
 0480                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_WorkflowInboxMessage_ActivityInstanceId");
 0481
 0482                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_WorkflowInboxMessage_ActivityTypeName");
 0483
 0484                    b.HasIndex(new[] { "CorrelationId" }, "IX_WorkflowInboxMessage_CorrelationId");
 0485
 0486                    b.HasIndex(new[] { "CreatedAt" }, "IX_WorkflowInboxMessage_CreatedAt");
 0487
 0488                    b.HasIndex(new[] { "ExpiresAt" }, "IX_WorkflowInboxMessage_ExpiresAt");
 0489
 0490                    b.HasIndex(new[] { "Hash" }, "IX_WorkflowInboxMessage_Hash");
 0491
 0492                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_WorkflowInboxMessage_WorkflowInstanceId");
 0493
 0494                    b.ToTable("WorkflowInboxMessages", "Elsa");
 0495                });
 496#pragma warning restore 612, 618
 0497        }
 498    }
 499}