< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 555
Coverable lines: 555
Total lines: 622
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.PostgreSql/Migrations/Runtime/20250530104953_V3_5.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Runtime
 6{
 7    /// <inheritdoc />
 8    public partial class V3_5 : Migration
 9    {
 10        private readonly Elsa.Persistence.EFCore.IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 013        public V3_5(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
 14        {
 015            _schema = schema;
 016        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 021            migrationBuilder.AlterColumn<string>(
 022                name: "Name",
 023                schema: _schema.Schema,
 024                table: "Triggers",
 025                type: "text",
 026                nullable: true,
 027                oldClrType: typeof(string),
 028                oldType: "text");
 29
 030            migrationBuilder.AddColumn<string>(
 031                name: "Name",
 032                schema: _schema.Schema,
 033                table: "Bookmarks",
 034                type: "text",
 035                nullable: true);
 36
 037            migrationBuilder.AddColumn<int>(
 038                name: "AggregateFaultCount",
 039                schema: _schema.Schema,
 040                table: "ActivityExecutionRecords",
 041                type: "integer",
 042                nullable: false,
 043                defaultValue: 0);
 44
 045            migrationBuilder.AddColumn<string>(
 046                name: "SerializedMetadata",
 047                schema: _schema.Schema,
 048                table: "ActivityExecutionRecords",
 049                type: "text",
 050                nullable: true);
 51
 052            migrationBuilder.CreateIndex(
 053                name: "IX_StoredBookmark_Name",
 054                schema: _schema.Schema,
 055                table: "Bookmarks",
 056                column: "Name");
 57
 058            migrationBuilder.CreateIndex(
 059                name: "IX_StoredBookmark_Name_Hash",
 060                schema: _schema.Schema,
 061                table: "Bookmarks",
 062                columns: new[] { "Name", "Hash" });
 63
 064            migrationBuilder.CreateIndex(
 065                name: "IX_StoredBookmark_Name_Hash_WorkflowInstanceId",
 066                schema: _schema.Schema,
 067                table: "Bookmarks",
 068                columns: new[] { "Name", "Hash", "WorkflowInstanceId" });
 069        }
 70
 71        /// <inheritdoc />
 72        protected override void Down(MigrationBuilder migrationBuilder)
 73        {
 074            migrationBuilder.DropIndex(
 075                name: "IX_StoredBookmark_Name",
 076                schema: _schema.Schema,
 077                table: "Bookmarks");
 78
 079            migrationBuilder.DropIndex(
 080                name: "IX_StoredBookmark_Name_Hash",
 081                schema: _schema.Schema,
 082                table: "Bookmarks");
 83
 084            migrationBuilder.DropIndex(
 085                name: "IX_StoredBookmark_Name_Hash_WorkflowInstanceId",
 086                schema: _schema.Schema,
 087                table: "Bookmarks");
 88
 089            migrationBuilder.DropColumn(
 090                name: "Name",
 091                schema: _schema.Schema,
 092                table: "Bookmarks");
 93
 094            migrationBuilder.DropColumn(
 095                name: "AggregateFaultCount",
 096                schema: _schema.Schema,
 097                table: "ActivityExecutionRecords");
 98
 099            migrationBuilder.DropColumn(
 0100                name: "SerializedMetadata",
 0101                schema: _schema.Schema,
 0102                table: "ActivityExecutionRecords");
 103
 0104            migrationBuilder.AlterColumn<string>(
 0105                name: "Name",
 0106                schema: _schema.Schema,
 0107                table: "Triggers",
 0108                type: "text",
 0109                nullable: false,
 0110                defaultValue: "",
 0111                oldClrType: typeof(string),
 0112                oldType: "text",
 0113                oldNullable: true);
 0114        }
 115    }
 116}

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