< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 553
Coverable lines: 553
Total lines: 618
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/20250530104854_V3_5.cs

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