| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Elsa.Persistence.EFCore.Modules.Management; |
| | | 4 | | using Microsoft.EntityFrameworkCore; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 7 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 8 | | |
| | | 9 | | #nullable disable |
| | | 10 | | |
| | | 11 | | namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Management |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(ManagementElsaDbContext))] |
| | | 14 | | [Migration("20240329200734_V3_1")] |
| | | 15 | | partial class V3_1 |
| | | 16 | | { |
| | | 17 | | /// <inheritdoc /> |
| | | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 19 | | { |
| | | 20 | | #pragma warning disable 612, 618 |
| | 0 | 21 | | modelBuilder.HasAnnotation("ProductVersion", "7.0.14"); |
| | | 22 | | |
| | 0 | 23 | | modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowDefinition", b => |
| | 0 | 24 | | { |
| | 0 | 25 | | b.Property<string>("Id") |
| | 0 | 26 | | .HasColumnType("TEXT"); |
| | 0 | 27 | | |
| | 0 | 28 | | b.Property<byte[]>("BinaryData") |
| | 0 | 29 | | .HasColumnType("BLOB"); |
| | 0 | 30 | | |
| | 0 | 31 | | b.Property<string>("CreatedAt") |
| | 0 | 32 | | .IsRequired() |
| | 0 | 33 | | .HasColumnType("TEXT"); |
| | 0 | 34 | | |
| | 0 | 35 | | b.Property<string>("Data") |
| | 0 | 36 | | .HasColumnType("TEXT"); |
| | 0 | 37 | | |
| | 0 | 38 | | b.Property<string>("DefinitionId") |
| | 0 | 39 | | .IsRequired() |
| | 0 | 40 | | .HasColumnType("TEXT"); |
| | 0 | 41 | | |
| | 0 | 42 | | b.Property<string>("Description") |
| | 0 | 43 | | .HasColumnType("TEXT"); |
| | 0 | 44 | | |
| | 0 | 45 | | b.Property<bool>("IsLatest") |
| | 0 | 46 | | .HasColumnType("INTEGER"); |
| | 0 | 47 | | |
| | 0 | 48 | | b.Property<bool>("IsPublished") |
| | 0 | 49 | | .HasColumnType("INTEGER"); |
| | 0 | 50 | | |
| | 0 | 51 | | b.Property<bool>("IsReadonly") |
| | 0 | 52 | | .HasColumnType("INTEGER"); |
| | 0 | 53 | | |
| | 0 | 54 | | b.Property<bool>("IsSystem") |
| | 0 | 55 | | .HasColumnType("INTEGER"); |
| | 0 | 56 | | |
| | 0 | 57 | | b.Property<string>("MaterializerContext") |
| | 0 | 58 | | .HasColumnType("TEXT"); |
| | 0 | 59 | | |
| | 0 | 60 | | b.Property<string>("MaterializerName") |
| | 0 | 61 | | .IsRequired() |
| | 0 | 62 | | .HasColumnType("TEXT"); |
| | 0 | 63 | | |
| | 0 | 64 | | b.Property<string>("Name") |
| | 0 | 65 | | .HasColumnType("TEXT"); |
| | 0 | 66 | | |
| | 0 | 67 | | b.Property<string>("ProviderName") |
| | 0 | 68 | | .HasColumnType("TEXT"); |
| | 0 | 69 | | |
| | 0 | 70 | | b.Property<string>("StringData") |
| | 0 | 71 | | .HasColumnType("TEXT"); |
| | 0 | 72 | | |
| | 0 | 73 | | b.Property<string>("ToolVersion") |
| | 0 | 74 | | .HasColumnType("TEXT"); |
| | 0 | 75 | | |
| | 0 | 76 | | b.Property<bool?>("UsableAsActivity") |
| | 0 | 77 | | .HasColumnType("INTEGER"); |
| | 0 | 78 | | |
| | 0 | 79 | | b.Property<int>("Version") |
| | 0 | 80 | | .HasColumnType("INTEGER"); |
| | 0 | 81 | | |
| | 0 | 82 | | b.HasKey("Id"); |
| | 0 | 83 | | |
| | 0 | 84 | | b.HasIndex("IsLatest") |
| | 0 | 85 | | .HasDatabaseName("IX_WorkflowDefinition_IsLatest"); |
| | 0 | 86 | | |
| | 0 | 87 | | b.HasIndex("IsPublished") |
| | 0 | 88 | | .HasDatabaseName("IX_WorkflowDefinition_IsPublished"); |
| | 0 | 89 | | |
| | 0 | 90 | | b.HasIndex("IsSystem") |
| | 0 | 91 | | .HasDatabaseName("IX_WorkflowDefinition_IsSystem"); |
| | 0 | 92 | | |
| | 0 | 93 | | b.HasIndex("Name") |
| | 0 | 94 | | .HasDatabaseName("IX_WorkflowDefinition_Name"); |
| | 0 | 95 | | |
| | 0 | 96 | | b.HasIndex("UsableAsActivity") |
| | 0 | 97 | | .HasDatabaseName("IX_WorkflowDefinition_UsableAsActivity"); |
| | 0 | 98 | | |
| | 0 | 99 | | b.HasIndex("Version") |
| | 0 | 100 | | .HasDatabaseName("IX_WorkflowDefinition_Version"); |
| | 0 | 101 | | |
| | 0 | 102 | | b.HasIndex("DefinitionId", "Version") |
| | 0 | 103 | | .IsUnique() |
| | 0 | 104 | | .HasDatabaseName("IX_WorkflowDefinition_DefinitionId_Version"); |
| | 0 | 105 | | |
| | 0 | 106 | | b.ToTable("WorkflowDefinitions"); |
| | 0 | 107 | | }); |
| | | 108 | | |
| | 0 | 109 | | modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowInstance", b => |
| | 0 | 110 | | { |
| | 0 | 111 | | b.Property<string>("Id") |
| | 0 | 112 | | .HasColumnType("TEXT"); |
| | 0 | 113 | | |
| | 0 | 114 | | b.Property<string>("CorrelationId") |
| | 0 | 115 | | .HasColumnType("TEXT"); |
| | 0 | 116 | | |
| | 0 | 117 | | b.Property<string>("CreatedAt") |
| | 0 | 118 | | .IsRequired() |
| | 0 | 119 | | .HasColumnType("TEXT"); |
| | 0 | 120 | | |
| | 0 | 121 | | b.Property<string>("Data") |
| | 0 | 122 | | .HasColumnType("TEXT"); |
| | 0 | 123 | | |
| | 0 | 124 | | b.Property<string>("DataCompressionAlgorithm") |
| | 0 | 125 | | .HasColumnType("TEXT"); |
| | 0 | 126 | | |
| | 0 | 127 | | b.Property<string>("DefinitionId") |
| | 0 | 128 | | .IsRequired() |
| | 0 | 129 | | .HasColumnType("TEXT"); |
| | 0 | 130 | | |
| | 0 | 131 | | b.Property<string>("DefinitionVersionId") |
| | 0 | 132 | | .IsRequired() |
| | 0 | 133 | | .HasColumnType("TEXT"); |
| | 0 | 134 | | |
| | 0 | 135 | | b.Property<string>("FinishedAt") |
| | 0 | 136 | | .HasColumnType("TEXT"); |
| | 0 | 137 | | |
| | 0 | 138 | | b.Property<int>("IncidentCount") |
| | 0 | 139 | | .HasColumnType("INTEGER"); |
| | 0 | 140 | | |
| | 0 | 141 | | b.Property<bool>("IsSystem") |
| | 0 | 142 | | .HasColumnType("INTEGER"); |
| | 0 | 143 | | |
| | 0 | 144 | | b.Property<string>("Name") |
| | 0 | 145 | | .HasColumnType("TEXT"); |
| | 0 | 146 | | |
| | 0 | 147 | | b.Property<string>("ParentWorkflowInstanceId") |
| | 0 | 148 | | .HasColumnType("TEXT"); |
| | 0 | 149 | | |
| | 0 | 150 | | b.Property<string>("Status") |
| | 0 | 151 | | .IsRequired() |
| | 0 | 152 | | .HasColumnType("TEXT"); |
| | 0 | 153 | | |
| | 0 | 154 | | b.Property<string>("SubStatus") |
| | 0 | 155 | | .IsRequired() |
| | 0 | 156 | | .HasColumnType("TEXT"); |
| | 0 | 157 | | |
| | 0 | 158 | | b.Property<string>("UpdatedAt") |
| | 0 | 159 | | .IsRequired() |
| | 0 | 160 | | .HasColumnType("TEXT"); |
| | 0 | 161 | | |
| | 0 | 162 | | b.Property<int>("Version") |
| | 0 | 163 | | .HasColumnType("INTEGER"); |
| | 0 | 164 | | |
| | 0 | 165 | | b.HasKey("Id"); |
| | 0 | 166 | | |
| | 0 | 167 | | b.HasIndex("CorrelationId") |
| | 0 | 168 | | .HasDatabaseName("IX_WorkflowInstance_CorrelationId"); |
| | 0 | 169 | | |
| | 0 | 170 | | b.HasIndex("CreatedAt") |
| | 0 | 171 | | .HasDatabaseName("IX_WorkflowInstance_CreatedAt"); |
| | 0 | 172 | | |
| | 0 | 173 | | b.HasIndex("DefinitionId") |
| | 0 | 174 | | .HasDatabaseName("IX_WorkflowInstance_DefinitionId"); |
| | 0 | 175 | | |
| | 0 | 176 | | b.HasIndex("FinishedAt") |
| | 0 | 177 | | .HasDatabaseName("IX_WorkflowInstance_FinishedAt"); |
| | 0 | 178 | | |
| | 0 | 179 | | b.HasIndex("IsSystem") |
| | 0 | 180 | | .HasDatabaseName("IX_WorkflowInstance_IsSystem"); |
| | 0 | 181 | | |
| | 0 | 182 | | b.HasIndex("Name") |
| | 0 | 183 | | .HasDatabaseName("IX_WorkflowInstance_Name"); |
| | 0 | 184 | | |
| | 0 | 185 | | b.HasIndex("Status") |
| | 0 | 186 | | .HasDatabaseName("IX_WorkflowInstance_Status"); |
| | 0 | 187 | | |
| | 0 | 188 | | b.HasIndex("SubStatus") |
| | 0 | 189 | | .HasDatabaseName("IX_WorkflowInstance_SubStatus"); |
| | 0 | 190 | | |
| | 0 | 191 | | b.HasIndex("UpdatedAt") |
| | 0 | 192 | | .HasDatabaseName("IX_WorkflowInstance_UpdatedAt"); |
| | 0 | 193 | | |
| | 0 | 194 | | b.HasIndex("Status", "DefinitionId") |
| | 0 | 195 | | .HasDatabaseName("IX_WorkflowInstance_Status_DefinitionId"); |
| | 0 | 196 | | |
| | 0 | 197 | | b.HasIndex("Status", "SubStatus") |
| | 0 | 198 | | .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus"); |
| | 0 | 199 | | |
| | 0 | 200 | | b.HasIndex("SubStatus", "DefinitionId") |
| | 0 | 201 | | .HasDatabaseName("IX_WorkflowInstance_SubStatus_DefinitionId"); |
| | 0 | 202 | | |
| | 0 | 203 | | b.HasIndex("Status", "SubStatus", "DefinitionId", "Version") |
| | 0 | 204 | | .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus_DefinitionId_Version"); |
| | 0 | 205 | | |
| | 0 | 206 | | b.ToTable("WorkflowInstances"); |
| | 0 | 207 | | }); |
| | | 208 | | #pragma warning restore 612, 618 |
| | 0 | 209 | | } |
| | | 210 | | } |
| | | 211 | | } |