< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 656
Coverable lines: 656
Total lines: 754
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: 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/20231024160948_Initial.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 Initial : Migration
 9    {
 10        /// <inheritdoc />
 11        protected override void Up(MigrationBuilder migrationBuilder)
 12        {
 013            migrationBuilder.CreateTable(
 014                name: "ActivityExecutionRecords",
 015                columns: table => new
 016                {
 017                    Id = table.Column<string>(type: "TEXT", nullable: false),
 018                    WorkflowInstanceId = table.Column<string>(type: "TEXT", nullable: false),
 019                    ActivityId = table.Column<string>(type: "TEXT", nullable: false),
 020                    ActivityNodeId = table.Column<string>(type: "TEXT", nullable: false),
 021                    ActivityType = table.Column<string>(type: "TEXT", nullable: false),
 022                    ActivityTypeVersion = table.Column<int>(type: "INTEGER", nullable: false),
 023                    ActivityName = table.Column<string>(type: "TEXT", nullable: true),
 024                    StartedAt = table.Column<string>(type: "TEXT", nullable: false),
 025                    HasBookmarks = table.Column<bool>(type: "INTEGER", nullable: false),
 026                    Status = table.Column<string>(type: "TEXT", nullable: false),
 027                    CompletedAt = table.Column<string>(type: "TEXT", nullable: true),
 028                    SerializedActivityState = table.Column<string>(type: "TEXT", nullable: true),
 029                    SerializedException = table.Column<string>(type: "TEXT", nullable: true),
 030                    SerializedOutputs = table.Column<string>(type: "TEXT", nullable: true),
 031                    SerializedPayload = table.Column<string>(type: "TEXT", nullable: true)
 032                },
 033                constraints: table =>
 034                {
 035                    table.PrimaryKey("PK_ActivityExecutionRecords", x => x.Id);
 036                });
 37
 038            migrationBuilder.CreateTable(
 039                name: "Bookmarks",
 040                columns: table => new
 041                {
 042                    BookmarkId = table.Column<string>(type: "TEXT", nullable: false),
 043                    ActivityTypeName = table.Column<string>(type: "TEXT", nullable: false),
 044                    Hash = table.Column<string>(type: "TEXT", nullable: false),
 045                    WorkflowInstanceId = table.Column<string>(type: "TEXT", nullable: false),
 046                    ActivityInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 047                    CorrelationId = table.Column<string>(type: "TEXT", nullable: true),
 048                    CreatedAt = table.Column<string>(type: "TEXT", nullable: false),
 049                    SerializedMetadata = table.Column<string>(type: "TEXT", nullable: true),
 050                    SerializedPayload = table.Column<string>(type: "TEXT", nullable: true)
 051                },
 052                constraints: table =>
 053                {
 054                    table.PrimaryKey("PK_Bookmarks", x => x.BookmarkId);
 055                });
 56
 057            migrationBuilder.CreateTable(
 058                name: "Triggers",
 059                columns: table => new
 060                {
 061                    Id = table.Column<string>(type: "TEXT", nullable: false),
 062                    WorkflowDefinitionId = table.Column<string>(type: "TEXT", nullable: false),
 063                    WorkflowDefinitionVersionId = table.Column<string>(type: "TEXT", nullable: false),
 064                    Name = table.Column<string>(type: "TEXT", nullable: false),
 065                    ActivityId = table.Column<string>(type: "TEXT", nullable: false),
 066                    Hash = table.Column<string>(type: "TEXT", nullable: true),
 067                    SerializedPayload = table.Column<string>(type: "TEXT", nullable: true)
 068                },
 069                constraints: table =>
 070                {
 071                    table.PrimaryKey("PK_Triggers", x => x.Id);
 072                });
 73
 074            migrationBuilder.CreateTable(
 075                name: "WorkflowExecutionLogRecords",
 076                columns: table => new
 077                {
 078                    Id = table.Column<string>(type: "TEXT", nullable: false),
 079                    WorkflowDefinitionId = table.Column<string>(type: "TEXT", nullable: false),
 080                    WorkflowDefinitionVersionId = table.Column<string>(type: "TEXT", nullable: false),
 081                    WorkflowInstanceId = table.Column<string>(type: "TEXT", nullable: false),
 082                    WorkflowVersion = table.Column<int>(type: "INTEGER", nullable: false),
 083                    ActivityInstanceId = table.Column<string>(type: "TEXT", nullable: false),
 084                    ParentActivityInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 085                    ActivityId = table.Column<string>(type: "TEXT", nullable: false),
 086                    ActivityType = table.Column<string>(type: "TEXT", nullable: false),
 087                    ActivityTypeVersion = table.Column<int>(type: "INTEGER", nullable: false),
 088                    ActivityName = table.Column<string>(type: "TEXT", nullable: true),
 089                    ActivityNodeId = table.Column<string>(type: "TEXT", nullable: false),
 090                    Timestamp = table.Column<string>(type: "TEXT", nullable: false),
 091                    Sequence = table.Column<long>(type: "INTEGER", nullable: false),
 092                    EventName = table.Column<string>(type: "TEXT", nullable: true),
 093                    Message = table.Column<string>(type: "TEXT", nullable: true),
 094                    Source = table.Column<string>(type: "TEXT", nullable: true),
 095                    SerializedActivityState = table.Column<string>(type: "TEXT", nullable: true),
 096                    SerializedPayload = table.Column<string>(type: "TEXT", nullable: true)
 097                },
 098                constraints: table =>
 099                {
 0100                    table.PrimaryKey("PK_WorkflowExecutionLogRecords", x => x.Id);
 0101                });
 102
 0103            migrationBuilder.CreateTable(
 0104                name: "WorkflowInboxMessages",
 0105                columns: table => new
 0106                {
 0107                    Id = table.Column<string>(type: "TEXT", nullable: false),
 0108                    ActivityTypeName = table.Column<string>(type: "TEXT", nullable: false),
 0109                    Hash = table.Column<string>(type: "TEXT", nullable: false),
 0110                    WorkflowInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 0111                    CorrelationId = table.Column<string>(type: "TEXT", nullable: true),
 0112                    ActivityInstanceId = table.Column<string>(type: "TEXT", nullable: true),
 0113                    CreatedAt = table.Column<string>(type: "TEXT", nullable: false),
 0114                    ExpiresAt = table.Column<string>(type: "TEXT", nullable: false),
 0115                    SerializedBookmarkPayload = table.Column<string>(type: "TEXT", nullable: true),
 0116                    SerializedInput = table.Column<string>(type: "TEXT", nullable: true)
 0117                },
 0118                constraints: table =>
 0119                {
 0120                    table.PrimaryKey("PK_WorkflowInboxMessages", x => x.Id);
 0121                });
 122
 0123            migrationBuilder.CreateIndex(
 0124                name: "IX_ActivityExecutionRecord_ActivityId",
 0125                table: "ActivityExecutionRecords",
 0126                column: "ActivityId");
 127
 0128            migrationBuilder.CreateIndex(
 0129                name: "IX_ActivityExecutionRecord_ActivityName",
 0130                table: "ActivityExecutionRecords",
 0131                column: "ActivityName");
 132
 0133            migrationBuilder.CreateIndex(
 0134                name: "IX_ActivityExecutionRecord_ActivityNodeId",
 0135                table: "ActivityExecutionRecords",
 0136                column: "ActivityNodeId");
 137
 0138            migrationBuilder.CreateIndex(
 0139                name: "IX_ActivityExecutionRecord_ActivityType",
 0140                table: "ActivityExecutionRecords",
 0141                column: "ActivityType");
 142
 0143            migrationBuilder.CreateIndex(
 0144                name: "IX_ActivityExecutionRecord_ActivityType_ActivityTypeVersion",
 0145                table: "ActivityExecutionRecords",
 0146                columns: new[] { "ActivityType", "ActivityTypeVersion" });
 147
 0148            migrationBuilder.CreateIndex(
 0149                name: "IX_ActivityExecutionRecord_ActivityTypeVersion",
 0150                table: "ActivityExecutionRecords",
 0151                column: "ActivityTypeVersion");
 152
 0153            migrationBuilder.CreateIndex(
 0154                name: "IX_ActivityExecutionRecord_CompletedAt",
 0155                table: "ActivityExecutionRecords",
 0156                column: "CompletedAt");
 157
 0158            migrationBuilder.CreateIndex(
 0159                name: "IX_ActivityExecutionRecord_HasBookmarks",
 0160                table: "ActivityExecutionRecords",
 0161                column: "HasBookmarks");
 162
 0163            migrationBuilder.CreateIndex(
 0164                name: "IX_ActivityExecutionRecord_StartedAt",
 0165                table: "ActivityExecutionRecords",
 0166                column: "StartedAt");
 167
 0168            migrationBuilder.CreateIndex(
 0169                name: "IX_ActivityExecutionRecord_Status",
 0170                table: "ActivityExecutionRecords",
 0171                column: "Status");
 172
 0173            migrationBuilder.CreateIndex(
 0174                name: "IX_ActivityExecutionRecord_WorkflowInstanceId",
 0175                table: "ActivityExecutionRecords",
 0176                column: "WorkflowInstanceId");
 177
 0178            migrationBuilder.CreateIndex(
 0179                name: "IX_StoredBookmark_ActivityInstanceId",
 0180                table: "Bookmarks",
 0181                column: "ActivityInstanceId");
 182
 0183            migrationBuilder.CreateIndex(
 0184                name: "IX_StoredBookmark_ActivityTypeName",
 0185                table: "Bookmarks",
 0186                column: "ActivityTypeName");
 187
 0188            migrationBuilder.CreateIndex(
 0189                name: "IX_StoredBookmark_ActivityTypeName_Hash",
 0190                table: "Bookmarks",
 0191                columns: new[] { "ActivityTypeName", "Hash" });
 192
 0193            migrationBuilder.CreateIndex(
 0194                name: "IX_StoredBookmark_ActivityTypeName_Hash_WorkflowInstanceId",
 0195                table: "Bookmarks",
 0196                columns: new[] { "ActivityTypeName", "Hash", "WorkflowInstanceId" });
 197
 0198            migrationBuilder.CreateIndex(
 0199                name: "IX_StoredBookmark_CreatedAt",
 0200                table: "Bookmarks",
 0201                column: "CreatedAt");
 202
 0203            migrationBuilder.CreateIndex(
 0204                name: "IX_StoredBookmark_Hash",
 0205                table: "Bookmarks",
 0206                column: "Hash");
 207
 0208            migrationBuilder.CreateIndex(
 0209                name: "IX_StoredBookmark_WorkflowInstanceId",
 0210                table: "Bookmarks",
 0211                column: "WorkflowInstanceId");
 212
 0213            migrationBuilder.CreateIndex(
 0214                name: "IX_StoredTrigger_Hash",
 0215                table: "Triggers",
 0216                column: "Hash");
 217
 0218            migrationBuilder.CreateIndex(
 0219                name: "IX_StoredTrigger_Name",
 0220                table: "Triggers",
 0221                column: "Name");
 222
 0223            migrationBuilder.CreateIndex(
 0224                name: "IX_StoredTrigger_WorkflowDefinitionId",
 0225                table: "Triggers",
 0226                column: "WorkflowDefinitionId");
 227
 0228            migrationBuilder.CreateIndex(
 0229                name: "IX_StoredTrigger_WorkflowDefinitionVersionId",
 0230                table: "Triggers",
 0231                column: "WorkflowDefinitionVersionId");
 232
 0233            migrationBuilder.CreateIndex(
 0234                name: "IX_WorkflowExecutionLogRecord_ActivityId",
 0235                table: "WorkflowExecutionLogRecords",
 0236                column: "ActivityId");
 237
 0238            migrationBuilder.CreateIndex(
 0239                name: "IX_WorkflowExecutionLogRecord_ActivityInstanceId",
 0240                table: "WorkflowExecutionLogRecords",
 0241                column: "ActivityInstanceId");
 242
 0243            migrationBuilder.CreateIndex(
 0244                name: "IX_WorkflowExecutionLogRecord_ActivityName",
 0245                table: "WorkflowExecutionLogRecords",
 0246                column: "ActivityName");
 247
 0248            migrationBuilder.CreateIndex(
 0249                name: "IX_WorkflowExecutionLogRecord_ActivityNodeId",
 0250                table: "WorkflowExecutionLogRecords",
 0251                column: "ActivityNodeId");
 252
 0253            migrationBuilder.CreateIndex(
 0254                name: "IX_WorkflowExecutionLogRecord_ActivityType",
 0255                table: "WorkflowExecutionLogRecords",
 0256                column: "ActivityType");
 257
 0258            migrationBuilder.CreateIndex(
 0259                name: "IX_WorkflowExecutionLogRecord_ActivityType_ActivityTypeVersion",
 0260                table: "WorkflowExecutionLogRecords",
 0261                columns: new[] { "ActivityType", "ActivityTypeVersion" });
 262
 0263            migrationBuilder.CreateIndex(
 0264                name: "IX_WorkflowExecutionLogRecord_ActivityTypeVersion",
 0265                table: "WorkflowExecutionLogRecords",
 0266                column: "ActivityTypeVersion");
 267
 0268            migrationBuilder.CreateIndex(
 0269                name: "IX_WorkflowExecutionLogRecord_EventName",
 0270                table: "WorkflowExecutionLogRecords",
 0271                column: "EventName");
 272
 0273            migrationBuilder.CreateIndex(
 0274                name: "IX_WorkflowExecutionLogRecord_ParentActivityInstanceId",
 0275                table: "WorkflowExecutionLogRecords",
 0276                column: "ParentActivityInstanceId");
 277
 0278            migrationBuilder.CreateIndex(
 0279                name: "IX_WorkflowExecutionLogRecord_Sequence",
 0280                table: "WorkflowExecutionLogRecords",
 0281                column: "Sequence");
 282
 0283            migrationBuilder.CreateIndex(
 0284                name: "IX_WorkflowExecutionLogRecord_Timestamp",
 0285                table: "WorkflowExecutionLogRecords",
 0286                column: "Timestamp");
 287
 0288            migrationBuilder.CreateIndex(
 0289                name: "IX_WorkflowExecutionLogRecord_Timestamp_Sequence",
 0290                table: "WorkflowExecutionLogRecords",
 0291                columns: new[] { "Timestamp", "Sequence" });
 292
 0293            migrationBuilder.CreateIndex(
 0294                name: "IX_WorkflowExecutionLogRecord_WorkflowDefinitionId",
 0295                table: "WorkflowExecutionLogRecords",
 0296                column: "WorkflowDefinitionId");
 297
 0298            migrationBuilder.CreateIndex(
 0299                name: "IX_WorkflowExecutionLogRecord_WorkflowDefinitionVersionId",
 0300                table: "WorkflowExecutionLogRecords",
 0301                column: "WorkflowDefinitionVersionId");
 302
 0303            migrationBuilder.CreateIndex(
 0304                name: "IX_WorkflowExecutionLogRecord_WorkflowInstanceId",
 0305                table: "WorkflowExecutionLogRecords",
 0306                column: "WorkflowInstanceId");
 307
 0308            migrationBuilder.CreateIndex(
 0309                name: "IX_WorkflowExecutionLogRecord_WorkflowVersion",
 0310                table: "WorkflowExecutionLogRecords",
 0311                column: "WorkflowVersion");
 312
 0313            migrationBuilder.CreateIndex(
 0314                name: "IX_WorkflowInboxMessage_ActivityInstanceId",
 0315                table: "WorkflowInboxMessages",
 0316                column: "ActivityInstanceId");
 317
 0318            migrationBuilder.CreateIndex(
 0319                name: "IX_WorkflowInboxMessage_ActivityTypeName",
 0320                table: "WorkflowInboxMessages",
 0321                column: "ActivityTypeName");
 322
 0323            migrationBuilder.CreateIndex(
 0324                name: "IX_WorkflowInboxMessage_CorrelationId",
 0325                table: "WorkflowInboxMessages",
 0326                column: "CorrelationId");
 327
 0328            migrationBuilder.CreateIndex(
 0329                name: "IX_WorkflowInboxMessage_CreatedAt",
 0330                table: "WorkflowInboxMessages",
 0331                column: "CreatedAt");
 332
 0333            migrationBuilder.CreateIndex(
 0334                name: "IX_WorkflowInboxMessage_ExpiresAt",
 0335                table: "WorkflowInboxMessages",
 0336                column: "ExpiresAt");
 337
 0338            migrationBuilder.CreateIndex(
 0339                name: "IX_WorkflowInboxMessage_Hash",
 0340                table: "WorkflowInboxMessages",
 0341                column: "Hash");
 342
 0343            migrationBuilder.CreateIndex(
 0344                name: "IX_WorkflowInboxMessage_WorkflowInstanceId",
 0345                table: "WorkflowInboxMessages",
 0346                column: "WorkflowInstanceId");
 0347        }
 348
 349        /// <inheritdoc />
 350        protected override void Down(MigrationBuilder migrationBuilder)
 351        {
 0352            migrationBuilder.DropTable(
 0353                name: "ActivityExecutionRecords");
 354
 0355            migrationBuilder.DropTable(
 0356                name: "Bookmarks");
 357
 0358            migrationBuilder.DropTable(
 0359                name: "Triggers");
 360
 0361            migrationBuilder.DropTable(
 0362                name: "WorkflowExecutionLogRecords");
 363
 0364            migrationBuilder.DropTable(
 0365                name: "WorkflowInboxMessages");
 0366        }
 367    }
 368}

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

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Runtime;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Runtime
 11{
 12    [DbContext(typeof(RuntimeElsaDbContext))]
 13    [Migration("20231024160948_Initial")]
 14    partial class Initial
 15    {
 16        /// <inheritdoc />
 17        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 18        {
 19#pragma warning disable 612, 618
 020            modelBuilder.HasAnnotation("ProductVersion", "7.0.11");
 21
 022            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.ActivityExecutionRecord", b =>
 023                {
 024                    b.Property<string>("Id")
 025                        .HasColumnType("TEXT");
 026
 027                    b.Property<string>("ActivityId")
 028                        .IsRequired()
 029                        .HasColumnType("TEXT");
 030
 031                    b.Property<string>("ActivityName")
 032                        .HasColumnType("TEXT");
 033
 034                    b.Property<string>("ActivityNodeId")
 035                        .IsRequired()
 036                        .HasColumnType("TEXT");
 037
 038                    b.Property<string>("ActivityType")
 039                        .IsRequired()
 040                        .HasColumnType("TEXT");
 041
 042                    b.Property<int>("ActivityTypeVersion")
 043                        .HasColumnType("INTEGER");
 044
 045                    b.Property<string>("CompletedAt")
 046                        .HasColumnType("TEXT");
 047
 048                    b.Property<bool>("HasBookmarks")
 049                        .HasColumnType("INTEGER");
 050
 051                    b.Property<string>("SerializedActivityState")
 052                        .HasColumnType("TEXT");
 053
 054                    b.Property<string>("SerializedException")
 055                        .HasColumnType("TEXT");
 056
 057                    b.Property<string>("SerializedOutputs")
 058                        .HasColumnType("TEXT");
 059
 060                    b.Property<string>("SerializedPayload")
 061                        .HasColumnType("TEXT");
 062
 063                    b.Property<string>("StartedAt")
 064                        .IsRequired()
 065                        .HasColumnType("TEXT");
 066
 067                    b.Property<string>("Status")
 068                        .IsRequired()
 069                        .HasColumnType("TEXT");
 070
 071                    b.Property<string>("WorkflowInstanceId")
 072                        .IsRequired()
 073                        .HasColumnType("TEXT");
 074
 075                    b.HasKey("Id");
 076
 077                    b.HasIndex("ActivityId")
 078                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityId");
 079
 080                    b.HasIndex("ActivityName")
 081                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityName");
 082
 083                    b.HasIndex("ActivityNodeId")
 084                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityNodeId");
 085
 086                    b.HasIndex("ActivityType")
 087                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType");
 088
 089                    b.HasIndex("ActivityTypeVersion")
 090                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityTypeVersion");
 091
 092                    b.HasIndex("CompletedAt")
 093                        .HasDatabaseName("IX_ActivityExecutionRecord_CompletedAt");
 094
 095                    b.HasIndex("HasBookmarks")
 096                        .HasDatabaseName("IX_ActivityExecutionRecord_HasBookmarks");
 097
 098                    b.HasIndex("StartedAt")
 099                        .HasDatabaseName("IX_ActivityExecutionRecord_StartedAt");
 0100
 0101                    b.HasIndex("Status")
 0102                        .HasDatabaseName("IX_ActivityExecutionRecord_Status");
 0103
 0104                    b.HasIndex("WorkflowInstanceId")
 0105                        .HasDatabaseName("IX_ActivityExecutionRecord_WorkflowInstanceId");
 0106
 0107                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 0108                        .HasDatabaseName("IX_ActivityExecutionRecord_ActivityType_ActivityTypeVersion");
 0109
 0110                    b.ToTable("ActivityExecutionRecords");
 0111                });
 112
 0113            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredBookmark", b =>
 0114                {
 0115                    b.Property<string>("BookmarkId")
 0116                        .HasColumnType("TEXT");
 0117
 0118                    b.Property<string>("ActivityInstanceId")
 0119                        .HasColumnType("TEXT");
 0120
 0121                    b.Property<string>("ActivityTypeName")
 0122                        .IsRequired()
 0123                        .HasColumnType("TEXT");
 0124
 0125                    b.Property<string>("CorrelationId")
 0126                        .HasColumnType("TEXT");
 0127
 0128                    b.Property<string>("CreatedAt")
 0129                        .IsRequired()
 0130                        .HasColumnType("TEXT");
 0131
 0132                    b.Property<string>("Hash")
 0133                        .IsRequired()
 0134                        .HasColumnType("TEXT");
 0135
 0136                    b.Property<string>("SerializedMetadata")
 0137                        .HasColumnType("TEXT");
 0138
 0139                    b.Property<string>("SerializedPayload")
 0140                        .HasColumnType("TEXT");
 0141
 0142                    b.Property<string>("WorkflowInstanceId")
 0143                        .IsRequired()
 0144                        .HasColumnType("TEXT");
 0145
 0146                    b.HasKey("BookmarkId");
 0147
 0148                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_StoredBookmark_ActivityInstanceId");
 0149
 0150                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_StoredBookmark_ActivityTypeName");
 0151
 0152                    b.HasIndex(new[] { "ActivityTypeName", "Hash" }, "IX_StoredBookmark_ActivityTypeName_Hash");
 0153
 0154                    b.HasIndex(new[] { "ActivityTypeName", "Hash", "WorkflowInstanceId" }, "IX_StoredBookmark_ActivityTy
 0155
 0156                    b.HasIndex(new[] { "CreatedAt" }, "IX_StoredBookmark_CreatedAt");
 0157
 0158                    b.HasIndex(new[] { "Hash" }, "IX_StoredBookmark_Hash");
 0159
 0160                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_StoredBookmark_WorkflowInstanceId");
 0161
 0162                    b.ToTable("Bookmarks");
 0163                });
 164
 0165            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.StoredTrigger", b =>
 0166                {
 0167                    b.Property<string>("Id")
 0168                        .HasColumnType("TEXT");
 0169
 0170                    b.Property<string>("ActivityId")
 0171                        .IsRequired()
 0172                        .HasColumnType("TEXT");
 0173
 0174                    b.Property<string>("Hash")
 0175                        .HasColumnType("TEXT");
 0176
 0177                    b.Property<string>("Name")
 0178                        .IsRequired()
 0179                        .HasColumnType("TEXT");
 0180
 0181                    b.Property<string>("SerializedPayload")
 0182                        .HasColumnType("TEXT");
 0183
 0184                    b.Property<string>("WorkflowDefinitionId")
 0185                        .IsRequired()
 0186                        .HasColumnType("TEXT");
 0187
 0188                    b.Property<string>("WorkflowDefinitionVersionId")
 0189                        .IsRequired()
 0190                        .HasColumnType("TEXT");
 0191
 0192                    b.HasKey("Id");
 0193
 0194                    b.HasIndex("Hash")
 0195                        .HasDatabaseName("IX_StoredTrigger_Hash");
 0196
 0197                    b.HasIndex("Name")
 0198                        .HasDatabaseName("IX_StoredTrigger_Name");
 0199
 0200                    b.HasIndex("WorkflowDefinitionId")
 0201                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionId");
 0202
 0203                    b.HasIndex("WorkflowDefinitionVersionId")
 0204                        .HasDatabaseName("IX_StoredTrigger_WorkflowDefinitionVersionId");
 0205
 0206                    b.ToTable("Triggers");
 0207                });
 208
 0209            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowExecutionLogRecord", b =>
 0210                {
 0211                    b.Property<string>("Id")
 0212                        .HasColumnType("TEXT");
 0213
 0214                    b.Property<string>("ActivityId")
 0215                        .IsRequired()
 0216                        .HasColumnType("TEXT");
 0217
 0218                    b.Property<string>("ActivityInstanceId")
 0219                        .IsRequired()
 0220                        .HasColumnType("TEXT");
 0221
 0222                    b.Property<string>("ActivityName")
 0223                        .HasColumnType("TEXT");
 0224
 0225                    b.Property<string>("ActivityNodeId")
 0226                        .IsRequired()
 0227                        .HasColumnType("TEXT");
 0228
 0229                    b.Property<string>("ActivityType")
 0230                        .IsRequired()
 0231                        .HasColumnType("TEXT");
 0232
 0233                    b.Property<int>("ActivityTypeVersion")
 0234                        .HasColumnType("INTEGER");
 0235
 0236                    b.Property<string>("EventName")
 0237                        .HasColumnType("TEXT");
 0238
 0239                    b.Property<string>("Message")
 0240                        .HasColumnType("TEXT");
 0241
 0242                    b.Property<string>("ParentActivityInstanceId")
 0243                        .HasColumnType("TEXT");
 0244
 0245                    b.Property<long>("Sequence")
 0246                        .HasColumnType("INTEGER");
 0247
 0248                    b.Property<string>("SerializedActivityState")
 0249                        .HasColumnType("TEXT");
 0250
 0251                    b.Property<string>("SerializedPayload")
 0252                        .HasColumnType("TEXT");
 0253
 0254                    b.Property<string>("Source")
 0255                        .HasColumnType("TEXT");
 0256
 0257                    b.Property<string>("Timestamp")
 0258                        .IsRequired()
 0259                        .HasColumnType("TEXT");
 0260
 0261                    b.Property<string>("WorkflowDefinitionId")
 0262                        .IsRequired()
 0263                        .HasColumnType("TEXT");
 0264
 0265                    b.Property<string>("WorkflowDefinitionVersionId")
 0266                        .IsRequired()
 0267                        .HasColumnType("TEXT");
 0268
 0269                    b.Property<string>("WorkflowInstanceId")
 0270                        .IsRequired()
 0271                        .HasColumnType("TEXT");
 0272
 0273                    b.Property<int>("WorkflowVersion")
 0274                        .HasColumnType("INTEGER");
 0275
 0276                    b.HasKey("Id");
 0277
 0278                    b.HasIndex("ActivityId")
 0279                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityId");
 0280
 0281                    b.HasIndex("ActivityInstanceId")
 0282                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityInstanceId");
 0283
 0284                    b.HasIndex("ActivityName")
 0285                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityName");
 0286
 0287                    b.HasIndex("ActivityNodeId")
 0288                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityNodeId");
 0289
 0290                    b.HasIndex("ActivityType")
 0291                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType");
 0292
 0293                    b.HasIndex("ActivityTypeVersion")
 0294                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityTypeVersion");
 0295
 0296                    b.HasIndex("EventName")
 0297                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_EventName");
 0298
 0299                    b.HasIndex("ParentActivityInstanceId")
 0300                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ParentActivityInstanceId");
 0301
 0302                    b.HasIndex("Sequence")
 0303                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Sequence");
 0304
 0305                    b.HasIndex("Timestamp")
 0306                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp");
 0307
 0308                    b.HasIndex("WorkflowDefinitionId")
 0309                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionId");
 0310
 0311                    b.HasIndex("WorkflowDefinitionVersionId")
 0312                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowDefinitionVersionId");
 0313
 0314                    b.HasIndex("WorkflowInstanceId")
 0315                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowInstanceId");
 0316
 0317                    b.HasIndex("WorkflowVersion")
 0318                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_WorkflowVersion");
 0319
 0320                    b.HasIndex("ActivityType", "ActivityTypeVersion")
 0321                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_ActivityType_ActivityTypeVersion");
 0322
 0323                    b.HasIndex("Timestamp", "Sequence")
 0324                        .HasDatabaseName("IX_WorkflowExecutionLogRecord_Timestamp_Sequence");
 0325
 0326                    b.ToTable("WorkflowExecutionLogRecords");
 0327                });
 328
 0329            modelBuilder.Entity("Elsa.Workflows.Runtime.Entities.WorkflowInboxMessage", b =>
 0330                {
 0331                    b.Property<string>("Id")
 0332                        .HasColumnType("TEXT");
 0333
 0334                    b.Property<string>("ActivityInstanceId")
 0335                        .HasColumnType("TEXT");
 0336
 0337                    b.Property<string>("ActivityTypeName")
 0338                        .IsRequired()
 0339                        .HasColumnType("TEXT");
 0340
 0341                    b.Property<string>("CorrelationId")
 0342                        .HasColumnType("TEXT");
 0343
 0344                    b.Property<string>("CreatedAt")
 0345                        .IsRequired()
 0346                        .HasColumnType("TEXT");
 0347
 0348                    b.Property<string>("ExpiresAt")
 0349                        .IsRequired()
 0350                        .HasColumnType("TEXT");
 0351
 0352                    b.Property<string>("Hash")
 0353                        .IsRequired()
 0354                        .HasColumnType("TEXT");
 0355
 0356                    b.Property<string>("SerializedBookmarkPayload")
 0357                        .HasColumnType("TEXT");
 0358
 0359                    b.Property<string>("SerializedInput")
 0360                        .HasColumnType("TEXT");
 0361
 0362                    b.Property<string>("WorkflowInstanceId")
 0363                        .HasColumnType("TEXT");
 0364
 0365                    b.HasKey("Id");
 0366
 0367                    b.HasIndex(new[] { "ActivityInstanceId" }, "IX_WorkflowInboxMessage_ActivityInstanceId");
 0368
 0369                    b.HasIndex(new[] { "ActivityTypeName" }, "IX_WorkflowInboxMessage_ActivityTypeName");
 0370
 0371                    b.HasIndex(new[] { "CorrelationId" }, "IX_WorkflowInboxMessage_CorrelationId");
 0372
 0373                    b.HasIndex(new[] { "CreatedAt" }, "IX_WorkflowInboxMessage_CreatedAt");
 0374
 0375                    b.HasIndex(new[] { "ExpiresAt" }, "IX_WorkflowInboxMessage_ExpiresAt");
 0376
 0377                    b.HasIndex(new[] { "Hash" }, "IX_WorkflowInboxMessage_Hash");
 0378
 0379                    b.HasIndex(new[] { "WorkflowInstanceId" }, "IX_WorkflowInboxMessage_WorkflowInstanceId");
 0380
 0381                    b.ToTable("WorkflowInboxMessages");
 0382                });
 383#pragma warning restore 612, 618
 0384        }
 385    }
 386}