< Summary

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