< Summary

Line coverage
93%
Covered lines: 520
Uncovered lines: 35
Coverable lines: 555
Total lines: 622
Line coverage: 93.6%
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%11100%
File 1: Up(...)100%11100%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%11100%

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 />
 213        public V3_5(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
 14        {
 215            _schema = schema;
 216        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 221            migrationBuilder.AlterColumn<string>(
 222                name: "Name",
 223                schema: _schema.Schema,
 224                table: "Triggers",
 225                type: "text",
 226                nullable: true,
 227                oldClrType: typeof(string),
 228                oldType: "text");
 29
 230            migrationBuilder.AddColumn<string>(
 231                name: "Name",
 232                schema: _schema.Schema,
 233                table: "Bookmarks",
 234                type: "text",
 235                nullable: true);
 36
 237            migrationBuilder.AddColumn<int>(
 238                name: "AggregateFaultCount",
 239                schema: _schema.Schema,
 240                table: "ActivityExecutionRecords",
 241                type: "integer",
 242                nullable: false,
 243                defaultValue: 0);
 44
 245            migrationBuilder.AddColumn<string>(
 246                name: "SerializedMetadata",
 247                schema: _schema.Schema,
 248                table: "ActivityExecutionRecords",
 249                type: "text",
 250                nullable: true);
 51
 252            migrationBuilder.CreateIndex(
 253                name: "IX_StoredBookmark_Name",
 254                schema: _schema.Schema,
 255                table: "Bookmarks",
 256                column: "Name");
 57
 258            migrationBuilder.CreateIndex(
 259                name: "IX_StoredBookmark_Name_Hash",
 260                schema: _schema.Schema,
 261                table: "Bookmarks",
 262                columns: new[] { "Name", "Hash" });
 63
 264            migrationBuilder.CreateIndex(
 265                name: "IX_StoredBookmark_Name_Hash_WorkflowInstanceId",
 266                schema: _schema.Schema,
 267                table: "Bookmarks",
 268                columns: new[] { "Name", "Hash", "WorkflowInstanceId" });
 269        }
 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
 122            modelBuilder
 123                .HasDefaultSchema("Elsa")
 124                .HasAnnotation("ProductVersion", "9.0.5")
 125                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 26
 127            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 28
 129            modelBuilder.Entity("Elsa.KeyValues.Entities.SerializedKeyValuePair", b =>
 130                {
 131                    b.Property<string>("Id")
 132                        .HasColumnType("text");
 133
 134                    b.Property<string>("SerializedValue")
 135                        .IsRequired()
 136                        .HasColumnType("text");
 137
 138                    b.Property<string>("TenantId")
 139                        .HasColumnType("text");
 140
 141                    b.HasKey("Id");
 142
 143                    b.HasIndex(new[] { "TenantId" }, "IX_SerializedKeyValuePair_TenantId");
 144
 145                    b.ToTable("KeyValuePairs", "Elsa");
 246                });
 47
 148            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.ActivityExecutionRecord", b =>
 149                {
 150                    b.Property<string>("Id")
 151                        .HasColumnType("text");
 152
 153                    b.Property<string>("ActivityId")
 154                        .IsRequired()
 155                        .HasColumnType("text");
 156
 157                    b.Property<string>("ActivityName")
 158                        .HasColumnType("text");
 159
 160                    b.Property<string>("ActivityNodeId")
 161                        .IsRequired()
 162                        .HasColumnType("text");
 163
 164                    b.Property<string>("ActivityType")
 165                        .IsRequired()
 166                        .HasColumnType("text");
 167
 168                    b.Property<int>("ActivityTypeVersion")
 169                        .HasColumnType("integer");
 170
 171                    b.Property<int>("AggregateFaultCount")
 172                        .HasColumnType("integer");
 173
 174                    b.Property<DateTimeOffset?>("CompletedAt")
 175                        .HasColumnType("timestamp with time zone");
 176
 177                    b.Property<bool>("HasBookmarks")
 178                        .HasColumnType("boolean");
 179
 180                    b.Property<string>("SerializedActivityState")
 181                        .HasColumnType("text");
 182
 183                    b.Property<string>("SerializedActivityStateCompressionAlgorithm")
 184                        .HasColumnType("text");
 185
 186                    b.Property<string>("SerializedException")
 187                        .HasColumnType("text");
 188
 189                    b.Property<string>("SerializedMetadata")
 190                        .HasColumnType("text");
 191
 192                    b.Property<string>("SerializedOutputs")
 193                        .HasColumnType("text");
 194
 195                    b.Property<string>("SerializedPayload")
 196                        .HasColumnType("text");
 197
 198                    b.Property<string>("SerializedProperties")
 199                        .HasColumnType("text");
 1100
 1101                    b.Property<DateTimeOffset>("StartedAt")
 1102                        .HasColumnType("timestamp with time zone");
 1103
 1104                    b.Property<string>("Status")
 1105                        .IsRequired()
 1106                        .HasColumnType("text");
 1107
 1108                    b.Property<string>("TenantId")
 1109                        .HasColumnType("text");
 1110
 1111                    b.Property<string>("WorkflowInstanceId")
 1112                        .IsRequired()
 1113                        .HasColumnType("text");
 1114
 1115                    b.HasKey("Id");
 1116
 1117                    b.HasIndex("ActivityId")
 1118                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityId");
 1119
 1120                    b.HasIndex("ActivityName")
 1121                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityName");
 1122
 1123                    b.HasIndex("ActivityNodeId")
 1124                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityNodeId");
 1125
 1126                    b.HasIndex("ActivityType")
 1127                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType");
 1128
 1129                    b.HasIndex("ActivityTypeVersion")
 1130                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityTypeVersion");
 1131
 1132                    b.HasIndex("CompletedAt")
 1133                        .HasDatabaseName("IX_ActivityExecutionRecord_CompletedAt");
 1134
 1135                    b.HasIndex("HasBookmarks")
 1136                        .HasDatabaseName("IX_ActivityExecutionRecord_HasBookmarks");
 1137
 1138                    b.HasIndex("StartedAt")
 1139                        .HasDatabaseName("IX_ActivityExecutionRecord_StartedAt");
 1140
 1141                    b.HasIndex("Status")
 1142                        .HasDatabaseName("IX_ActivityExecutionRecord_Status");
 1143
 1144                    b.HasIndex("TenantId")
 1145                        .HasDatabaseName("IX_ActivityExecutionRecord_TenantId");
 1146
 1147                    b.HasIndex("WorkflowInstanceId")
 1148                        .HasDatabaseName("IX_ActivityExecutionRecord_WorkflowInstanceId");
 1149
 1150                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 1151                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType_ActivityTypeVersion");
 1152
 1153                    b.ToTable("ActivityExecutionRecords", "Elsa");
 2154                });
 155
 1156            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.BookmarkQueueItem", b =>
 1157                {
 1158                    b.Property<string>("Id")
 1159                        .HasColumnType("text");
 1160
 1161                    b.Property<string>("ActivityInstanceId")
 1162                        .HasColumnType("text");
 1163
 1164                    b.Property<string>("ActivityTypeName")
 1165                        .HasColumnType("text");
 1166
 1167                    b.Property<string>("BookmarkId")
 1168                        .HasColumnType("text");
 1169
 1170                    b.Property<string>("CorrelationId")
 1171                        .HasColumnType("text");
 1172
 1173                    b.Property<DateTimeOffset>("CreatedAt")
 1174                        .HasColumnType("timestamp with time zone");
 1175
 1176                    b.Property<string>("SerializedOptions")
 1177                        .HasColumnType("text");
 1178
 1179                    b.Property<string>("StimulusHash")
 1180                        .HasColumnType("text");
 1181
 1182                    b.Property<string>("TenantId")
 1183                        .HasColumnType("text");
 1184
 1185                    b.Property<string>("WorkflowInstanceId")
 1186                        .HasColumnType("text");
 1187
 1188                    b.HasKey("Id");
 1189
 1190                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_BookmarkQueueItem_ActivityInstanceId");
 1191
 1192                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_BookmarkQueueItem_ActivityTypeName");
 1193
 1194                    b.HasIndex(new[] { "BookmarkId" }, "IX_BookmarkQueueItem_BookmarkId");
 1195
 1196                    b.HasIndex(new[] { "CorrelationId" }, "IX_BookmarkQueueItem_CorrelationId");
 1197
 1198                    b.HasIndex(new[] { "CreatedAt" }, "IX_BookmarkQueueItem_CreatedAt");
 1199
 1200                    b.HasIndex(new[] { "StimulusHash" }, "IX_BookmarkQueueItem_StimulusHash");
 1201
 1202                    b.HasIndex(new[] { "TenantId" }, "IX_BookmarkQueueItem_TenantId");
 1203
 1204                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_BookmarkQueueItem_WorkflowInstanceId");
 1205
 1206                    b.ToTable("BookmarkQueueItems", "Elsa");
 2207                });
 208
 1209            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredBookmark", b =>
 1210                {
 1211                    b.Property<string>("Id")
 1212                        .HasColumnType("text");
 1213
 1214                    b.Property<string>("ActivityInstanceId")
 1215                        .HasColumnType("text");
 1216
 1217                    b.Property<string>("ActivityTypeName")
 1218                        .IsRequired()
 1219                        .HasColumnType("text");
 1220
 1221                    b.Property<string>("CorrelationId")
 1222                        .HasColumnType("text");
 1223
 1224                    b.Property<DateTimeOffset>("CreatedAt")
 1225                        .HasColumnType("timestamp with time zone");
 1226
 1227                    b.Property<string>("Hash")
 1228                        .IsRequired()
 1229                        .HasColumnType("text");
 1230
 1231                    b.Property<string>("Name")
 1232                        .HasColumnType("text");
 1233
 1234                    b.Property<string>("SerializedMetadata")
 1235                        .HasColumnType("text");
 1236
 1237                    b.Property<string>("SerializedPayload")
 1238                        .HasColumnType("text");
 1239
 1240                    b.Property<string>("TenantId")
 1241                        .HasColumnType("text");
 1242
 1243                    b.Property<string>("WorkflowInstanceId")
 1244                        .IsRequired()
 1245                        .HasColumnType("text");
 1246
 1247                    b.HasKey("Id");
 1248
 1249                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_StoredBookmark_ActivityInstanceId");
 1250
 1251                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_StoredBookmark_ActivityTypeName");
 1252
 1253                    b.HasIndex(new[] { "ActivityTypeName", "Hash" }, "IX_StoredBookmark_ActivityTypeName_Hash");
 1254
 1255                    b.HasIndex(new[] { "ActivityTypeName", "Hash", "WorkflowInstanceId" }, "IX_StoredBookmark_ActivityTy
 1256
 1257                    b.HasIndex(new[] { "CreatedAt" }, "IX_StoredBookmark_CreatedAt");
 1258
 1259                    b.HasIndex(new[] { "Hash" }, "IX_StoredBookmark_Hash");
 1260
 1261                    b.HasIndex(new[] { "Name" }, "IX_StoredBookmark_Name");
 1262
 1263                    b.HasIndex(new[] { "Name", "Hash" }, "IX_StoredBookmark_Name_Hash");
 1264
 1265                    b.HasIndex(new[] { "Name", "Hash", "WorkflowInstanceId" }, "IX_StoredBookmark_Name_Hash_WorkflowInst
 1266
 1267                    b.HasIndex(new[] { "TenantId" }, "IX_StoredBookmark_TenantId");
 1268
 1269                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_StoredBookmark_WorkflowInstanceId");
 1270
 1271                    b.ToTable("Bookmarks", "Elsa");
 2272                });
 273
 1274            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredTrigger", b =>
 1275                {
 1276                    b.Property<string>("Id")
 1277                        .HasColumnType("text");
 1278
 1279                    b.Property<string>("ActivityId")
 1280                        .IsRequired()
 1281                        .HasColumnType("text");
 1282
 1283                    b.Property<string>("Hash")
 1284                        .HasColumnType("text");
 1285
 1286                    b.Property<string>("Name")
 1287                        .HasColumnType("text");
 1288
 1289                    b.Property<string>("SerializedPayload")
 1290                        .HasColumnType("text");
 1291
 1292                    b.Property<string>("TenantId")
 1293                        .HasColumnType("text");
 1294
 1295                    b.Property<string>("WorkflowDefinitionId")
 1296                        .IsRequired()
 1297                        .HasColumnType("text");
 1298
 1299                    b.Property<string>("WorkflowDefinitionVersionId")
 1300                        .IsRequired()
 1301                        .HasColumnType("text");
 1302
 1303                    b.HasKey("Id");
 1304
 1305                    b.HasIndex("Hash")
 1306                        .HasDatabaseName("IX_StoredTrigger_Hash");
 1307
 1308                    b.HasIndex("Name")
 1309                        .HasDatabaseName("IX_StoredTrigger_Name");
 1310
 1311                    b.HasIndex("TenantId")
 1312                        .HasDatabaseName("IX_StoredTrigger_TenantId");
 1313
 1314                    b.HasIndex("WorkflowDefinitionId")
 1315                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionId");
 1316
 1317                    b.HasIndex("WorkflowDefinitionVersionId")
 1318                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionVersionId");
 1319
 1320                    b.ToTable("Triggers", "Elsa");
 2321                });
 322
 1323            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowExecutionLogRecord", b =>
 1324                {
 1325                    b.Property<string>("Id")
 1326                        .HasColumnType("text");
 1327
 1328                    b.Property<string>("ActivityId")
 1329                        .IsRequired()
 1330                        .HasColumnType("text");
 1331
 1332                    b.Property<string>("ActivityInstanceId")
 1333                        .IsRequired()
 1334                        .HasColumnType("text");
 1335
 1336                    b.Property<string>("ActivityName")
 1337                        .HasColumnType("text");
 1338
 1339                    b.Property<string>("ActivityNodeId")
 1340                        .IsRequired()
 1341                        .HasColumnType("text");
 1342
 1343                    b.Property<string>("ActivityType")
 1344                        .IsRequired()
 1345                        .HasColumnType("text");
 1346
 1347                    b.Property<int>("ActivityTypeVersion")
 1348                        .HasColumnType("integer");
 1349
 1350                    b.Property<string>("EventName")
 1351                        .HasColumnType("text");
 1352
 1353                    b.Property<string>("Message")
 1354                        .HasColumnType("text");
 1355
 1356                    b.Property<string>("ParentActivityInstanceId")
 1357                        .HasColumnType("text");
 1358
 1359                    b.Property<long>("Sequence")
 1360                        .HasColumnType("bigint");
 1361
 1362                    b.Property<string>("SerializedActivityState")
 1363                        .HasColumnType("text");
 1364
 1365                    b.Property<string>("SerializedPayload")
 1366                        .HasColumnType("text");
 1367
 1368                    b.Property<string>("Source")
 1369                        .HasColumnType("text");
 1370
 1371                    b.Property<string>("TenantId")
 1372                        .HasColumnType("text");
 1373
 1374                    b.Property<DateTimeOffset>("Timestamp")
 1375                        .HasColumnType("timestamp with time zone");
 1376
 1377                    b.Property<string>("WorkflowDefinitionId")
 1378                        .IsRequired()
 1379                        .HasColumnType("text");
 1380
 1381                    b.Property<string>("WorkflowDefinitionVersionId")
 1382                        .IsRequired()
 1383                        .HasColumnType("text");
 1384
 1385                    b.Property<string>("WorkflowInstanceId")
 1386                        .IsRequired()
 1387                        .HasColumnType("text");
 1388
 1389                    b.Property<int>("WorkflowVersion")
 1390                        .HasColumnType("integer");
 1391
 1392                    b.HasKey("Id");
 1393
 1394                    b.HasIndex("ActivityId")
 1395                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityId");
 1396
 1397                    b.HasIndex("ActivityInstanceId")
 1398                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityInstanceId");
 1399
 1400                    b.HasIndex("ActivityName")
 1401                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityName");
 1402
 1403                    b.HasIndex("ActivityNodeId")
 1404                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityNodeId");
 1405
 1406                    b.HasIndex("ActivityType")
 1407                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType");
 1408
 1409                    b.HasIndex("ActivityTypeVersion")
 1410                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityTypeVersion");
 1411
 1412                    b.HasIndex("EventName")
 1413                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_EventName");
 1414
 1415                    b.HasIndex("ParentActivityInstanceId")
 1416                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ParentActivityInstanceId");
 1417
 1418                    b.HasIndex("Sequence")
 1419                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Sequence");
 1420
 1421                    b.HasIndex("TenantId")
 1422                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_TenantId");
 1423
 1424                    b.HasIndex("Timestamp")
 1425                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp");
 1426
 1427                    b.HasIndex("WorkflowDefinitionId")
 1428                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionId");
 1429
 1430                    b.HasIndex("WorkflowDefinitionVersionId")
 1431                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionVersionId");
 1432
 1433                    b.HasIndex("WorkflowInstanceId")
 1434                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowInstanceId");
 1435
 1436                    b.HasIndex("WorkflowVersion")
 1437                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowVersion");
 1438
 1439                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 1440                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType_ActivityTypeVersion");
 1441
 1442                    b.HasIndex("Timestamp", "Sequence")
 1443                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp_Sequence");
 1444
 1445                    b.ToTable("WorkflowExecutionLogRecords", "Elsa");
 2446                });
 447
 1448            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowInboxMessage", b =>
 1449                {
 1450                    b.Property<string>("Id")
 1451                        .HasColumnType("text");
 1452
 1453                    b.Property<string>("ActivityInstanceId")
 1454                        .HasColumnType("text");
 1455
 1456                    b.Property<string>("ActivityTypeName")
 1457                        .IsRequired()
 1458                        .HasColumnType("text");
 1459
 1460                    b.Property<string>("CorrelationId")
 1461                        .HasColumnType("text");
 1462
 1463                    b.Property<DateTimeOffset>("CreatedAt")
 1464                        .HasColumnType("timestamp with time zone");
 1465
 1466                    b.Property<DateTimeOffset>("ExpiresAt")
 1467                        .HasColumnType("timestamp with time zone");
 1468
 1469                    b.Property<string>("Hash")
 1470                        .IsRequired()
 1471                        .HasColumnType("text");
 1472
 1473                    b.Property<string>("SerializedBookmarkPayload")
 1474                        .HasColumnType("text");
 1475
 1476                    b.Property<string>("SerializedInput")
 1477                        .HasColumnType("text");
 1478
 1479                    b.Property<string>("TenantId")
 1480                        .HasColumnType("text");
 1481
 1482                    b.Property<string>("WorkflowInstanceId")
 1483                        .HasColumnType("text");
 1484
 1485                    b.HasKey("Id");
 1486
 1487                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_WorkflowInboxMessage_ActivityInstanceId");
 1488
 1489                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_WorkflowInboxMessage_ActivityTypeName");
 1490
 1491                    b.HasIndex(new[] { "CorrelationId" }, "IX_WorkflowInboxMessage_CorrelationId");
 1492
 1493                    b.HasIndex(new[] { "CreatedAt" }, "IX_WorkflowInboxMessage_CreatedAt");
 1494
 1495                    b.HasIndex(new[] { "ExpiresAt" }, "IX_WorkflowInboxMessage_ExpiresAt");
 1496
 1497                    b.HasIndex(new[] { "Hash" }, "IX_WorkflowInboxMessage_Hash");
 1498
 1499                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_WorkflowInboxMessage_WorkflowInstanceId");
 1500
 1501                    b.ToTable("WorkflowInboxMessages", "Elsa");
 2502                });
 503#pragma warning restore 612, 618
 1504        }
 505    }
 506}