< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 613
Coverable lines: 613
Total lines: 701
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
File 1: .ctor(...)100%210%
File 1: Up(...)100%210%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%210%

File(s)

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

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Runtime
 7{
 8    /// <inheritdoc />
 9    public partial class V3_3 : Migration
 10    {
 11        private readonly Elsa.Persistence.EFCore.IElsaDbContextSchema _schema;
 12
 13        /// <inheritdoc />
 014        public V3_3(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
 15        {
 016            _schema = schema;
 017        }
 18
 19        /// <inheritdoc />
 20        protected override void Up(MigrationBuilder migrationBuilder)
 21        {
 022            migrationBuilder.RenameColumn(
 023                name: "Key",
 024                table: "KeyValuePairs",
 025                newName: "Id");
 26
 027            migrationBuilder.RenameColumn(
 028                name: "BookmarkId",
 029                table: "Bookmarks",
 030                newName: "Id");
 31
 032            migrationBuilder.AddColumn<string>(
 033                name: "TenantId",
 034                table: "WorkflowInboxMessages",
 035                type: "TEXT",
 036                nullable: true);
 37
 038            migrationBuilder.AddColumn<string>(
 039                name: "TenantId",
 040                table: "WorkflowExecutionLogRecords",
 041                type: "TEXT",
 042                nullable: true);
 43
 044            migrationBuilder.AddColumn<string>(
 045                name: "TenantId",
 046                table: "Triggers",
 047                type: "TEXT",
 048                nullable: true);
 49
 050            migrationBuilder.AddColumn<string>(
 051                name: "TenantId",
 052                table: "KeyValuePairs",
 053                type: "TEXT",
 054                nullable: true);
 55
 056            migrationBuilder.AddColumn<string>(
 057                name: "TenantId",
 058                table: "Bookmarks",
 059                type: "TEXT",
 060                nullable: true);
 61
 062            migrationBuilder.AddColumn<string>(
 063                name: "TenantId",
 064                table: "ActivityExecutionRecords",
 065                type: "TEXT",
 066                nullable: true);
 67
 068            migrationBuilder.CreateTable(
 069                name: "BookmarkQueueItems",
 070                columns: table => new
 071                {
 072                    Id = table.Column<string>(type: "TEXT", nullable: false),
 073                    WorkflowInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 074                    CorrelationId = table.Column<string>(type: "TEXT", nullable: true),
 075                    BookmarkId = table.Column<string>(type: "TEXT", nullable: true),
 076                    StimulusHash = table.Column<string>(type: "TEXT", nullable: true),
 077                    ActivityInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 078                    ActivityTypeName = table.Column<string>(type: "TEXT", nullable: true),
 079                    CreatedAt = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
 080                    SerializedOptions = table.Column<string>(type: "TEXT", nullable: true),
 081                    TenantId = table.Column<string>(type: "TEXT", nullable: true)
 082                },
 083                constraints: table =>
 084                {
 085                    table.PrimaryKey("PK_BookmarkQueueItems", x => x.Id);
 086                });
 87
 088            migrationBuilder.CreateIndex(
 089                name: "IX_WorkflowExecutionLogRecord_TenantId",
 090                table: "WorkflowExecutionLogRecords",
 091                column: "TenantId");
 92
 093            migrationBuilder.CreateIndex(
 094                name: "IX_StoredTrigger_TenantId",
 095                table: "Triggers",
 096                column: "TenantId");
 97
 098            migrationBuilder.CreateIndex(
 099                name: "IX_SerializedKeyValuePair_TenantId",
 0100                table: "KeyValuePairs",
 0101                column: "TenantId");
 102
 0103            migrationBuilder.CreateIndex(
 0104                name: "IX_StoredBookmark_TenantId",
 0105                table: "Bookmarks",
 0106                column: "TenantId");
 107
 0108            migrationBuilder.CreateIndex(
 0109                name: "IX_ActivityExecutionRecord_TenantId",
 0110                table: "ActivityExecutionRecords",
 0111                column: "TenantId");
 112
 0113            migrationBuilder.CreateIndex(
 0114                name: "IX_BookmarkQueueItem_ActivityInstanceId",
 0115                table: "BookmarkQueueItems",
 0116                column: "ActivityInstanceId");
 117
 0118            migrationBuilder.CreateIndex(
 0119                name: "IX_BookmarkQueueItem_ActivityTypeName",
 0120                table: "BookmarkQueueItems",
 0121                column: "ActivityTypeName");
 122
 0123            migrationBuilder.CreateIndex(
 0124                name: "IX_BookmarkQueueItem_BookmarkId",
 0125                table: "BookmarkQueueItems",
 0126                column: "BookmarkId");
 127
 0128            migrationBuilder.CreateIndex(
 0129                name: "IX_BookmarkQueueItem_CorrelationId",
 0130                table: "BookmarkQueueItems",
 0131                column: "CorrelationId");
 132
 0133            migrationBuilder.CreateIndex(
 0134                name: "IX_BookmarkQueueItem_CreatedAt",
 0135                table: "BookmarkQueueItems",
 0136                column: "CreatedAt");
 137
 0138            migrationBuilder.CreateIndex(
 0139                name: "IX_BookmarkQueueItem_StimulusHash",
 0140                table: "BookmarkQueueItems",
 0141                column: "StimulusHash");
 142
 0143            migrationBuilder.CreateIndex(
 0144                name: "IX_BookmarkQueueItem_TenantId",
 0145                table: "BookmarkQueueItems",
 0146                column: "TenantId");
 147
 0148            migrationBuilder.CreateIndex(
 0149                name: "IX_BookmarkQueueItem_WorkflowInstanceId",
 0150                table: "BookmarkQueueItems",
 0151                column: "WorkflowInstanceId");
 0152        }
 153
 154        /// <inheritdoc />
 155        protected override void Down(MigrationBuilder migrationBuilder)
 156        {
 0157            migrationBuilder.DropTable(
 0158                name: "BookmarkQueueItems");
 159
 0160            migrationBuilder.DropIndex(
 0161                name: "IX_WorkflowExecutionLogRecord_TenantId",
 0162                table: "WorkflowExecutionLogRecords");
 163
 0164            migrationBuilder.DropIndex(
 0165                name: "IX_StoredTrigger_TenantId",
 0166                table: "Triggers");
 167
 0168            migrationBuilder.DropIndex(
 0169                name: "IX_SerializedKeyValuePair_TenantId",
 0170                table: "KeyValuePairs");
 171
 0172            migrationBuilder.DropIndex(
 0173                name: "IX_StoredBookmark_TenantId",
 0174                table: "Bookmarks");
 175
 0176            migrationBuilder.DropIndex(
 0177                name: "IX_ActivityExecutionRecord_TenantId",
 0178                table: "ActivityExecutionRecords");
 179
 0180            migrationBuilder.DropColumn(
 0181                name: "TenantId",
 0182                table: "WorkflowInboxMessages");
 183
 0184            migrationBuilder.DropColumn(
 0185                name: "TenantId",
 0186                table: "WorkflowExecutionLogRecords");
 187
 0188            migrationBuilder.DropColumn(
 0189                name: "TenantId",
 0190                table: "Triggers");
 191
 0192            migrationBuilder.DropColumn(
 0193                name: "TenantId",
 0194                table: "KeyValuePairs");
 195
 0196            migrationBuilder.DropColumn(
 0197                name: "TenantId",
 0198                table: "Bookmarks");
 199
 0200            migrationBuilder.DropColumn(
 0201                name: "TenantId",
 0202                table: "ActivityExecutionRecords");
 203
 0204            migrationBuilder.RenameColumn(
 0205                name: "Id",
 0206                table: "KeyValuePairs",
 0207                newName: "Key");
 208
 0209            migrationBuilder.RenameColumn(
 0210                name: "Id",
 0211                table: "Bookmarks",
 0212                newName: "BookmarkId");
 0213        }
 214    }
 215}

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

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